How can i set variables in adobe launch using postman API json? | Community
Skip to main content
Level 2
November 1, 2024
Solved

How can i set variables in adobe launch using postman API json?

  • November 1, 2024
  • 1 reply
  • 815 views
{
    "data": {
        "attributes": {
            "delegate_descriptor_id": "adobe-analytics::actions::set-variables",
            "name": "set-variables",
            "settings": "{\"eVar1\": \"%dataelement%\"}"

        },
        "relationships": {
            "extension": {
                "data": {
                    "id": "{{extension}}",
                    "type": "extensions"
                }
            },
            "rules": {
                "data": [
                    {
                        "id": "{{rule}}",
                        "type": "rules"
                    }
                ]
            }
        },
        "type": "rule_components"
    }
}
I am trying to set variables by calling a data element in Adobe Launch using the Postman API, but I am encountering a 'schema-validation-error'. Could anyone please help me resolve this issue? Additionally, if there are any relevant documentation links, please share.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Harveer_SinghGi1

Hi @esakkidevi ,

You need to update the settings attribute as below,

"settings": "{\"trackerProperties\":{\"eVars\":[{\"name\":\"eVar1\",\"type\":\"value\",\"value\":\"%dataelement%\"}]}}"

 

1 reply

Harveer_SinghGi1
Community Advisor and Adobe Champion
Harveer_SinghGi1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
December 24, 2024

Hi @esakkidevi ,

You need to update the settings attribute as below,

"settings": "{\"trackerProperties\":{\"eVars\":[{\"name\":\"eVar1\",\"type\":\"value\",\"value\":\"%dataelement%\"}]}}"

 

Level 2
December 24, 2024

Hi Harveer,
Thank you for your response. I tried implementing the suggested settings, and I am pleased to inform you that they are working perfectly as intended.