Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cache all sub variables

I want to cache all sub variables. From what I have understod it is not possible from the built in policies but are it possible to do that from a JS script? Hopefully when we extract more data we would not need to update the policy/script.

If we take the following extraction as an example I would like to automatically cache a new variable that I add to this list to be extracted.

    <JSONPayload>
        <Variable name="var.id" type="string">
            <JSONPath>$.id</JSONPath>
        </Variable>
        <Variable name="var.id2" type="string">
            <JSONPath>$.roles[0].id2</JSONPath>
        </Variable>
        <Variable name="var.id3" type="string">
            <JSONPath>$.roles[0].id3</JSONPath>
        </Variable>
        <Variable name="var.id4" type="string">
            <JSONPath>$.roles[0].id4</JSONPath>
        </Variable>
    </JSONPayload>
0 4 248
4 REPLIES 4