3 Replies Latest reply on Jan 26, 2018 3:34 PM by pmartin

    can I use parameters in content json?

    gregor.vilkner

      Can parameters be used in content json? or is this limited to Resource? Say I want to put the Id of a newly created element into an attribute field...

      The snippet below works, but the attribute gets set to {1} - so the parameter replacement does not happen. Because it's a string inside a string?

      Kind regards,

      Gregor

       

      "setAttributesXYZ": {

          "Method": "PUT",

          "Resource": "https://piwebapi/piwebapi/attributes/{0}/value",

          "Content": "{\"Value\":\"{1}\"}",

          "Parameters": [

            "$.getAttributesXYZ.Content.Items[0].WebId",

            "$.getElement.Content.WebId"

          ],

          "ParentIds": [

            "getElement",

            "getAttributesXYZ"

          ]

        }