Skip to main content
Level 2
Nov 1, 2024 9:13 AM UTC
Solved

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

{
    "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.
Harveer_SinghGi1
Harveer_SinghGi1Accepted solution
Adobe Champion, Community Advisor, UG Leader
Dec 24, 2024 10:18 AM UTC

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, Community Advisor, UG Leader
Harveer_SinghGi1Adobe Champion, Community Advisor, UG LeaderAccepted solution
Adobe Champion, Community Advisor, UG Leader
Dec 24, 2024 10:18 AM UTC

Hi @esakkidevi ,

You need to update the settings attribute as below,

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

 

Translate
Level 2
Dec 24, 2024 11:58 AM UTC

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.

Translate