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
  • 2 replies
  • 838 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%\"}]}}"

 

2 replies

Harveer_SinghGi1
Adobe Champion and Community Advisor
Harveer_SinghGi1Adobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
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.