Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

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

Avatar

Level 1
{
    "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.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi @Esakkidevi ,

You need to update the settings attribute as below,

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

 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

Hi @Esakkidevi ,

You need to update the settings attribute as below,

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

 

Avatar

Level 1

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.