Expand my Community achievements bar.

SOLVED

Update variable does not update XDM

Avatar

Level 1

Hi,

I have set up a rule with WebSDK, however the 'Update Variable' action is not updating values in XDM, there are the same values as they have been defined in XDM Data Element.

Rule:

kamil_tagging_0-1726507037477.png
Example:

XDM:
prop24 = 1

Update variable:
prop24 = abc


What can be a reason of the issue?


Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can only use the update variable on variable data elements. For this you can use either the XDM or Data type. And both you can use either in the XDM or data payload of the Web SDK send event interface.

 

just make sure you are using the right variable in the right field

Cheers from Switzerland!


View solution in original post

6 Replies

Avatar

Level 9

consider below if works @kamil_tagging 

- Validate that the Edge Configuration includes the correct XDM schema and fields. 

- Data collection /Tag are published and implemented on site, on the environment ur testing 

- validate XDM mapping and data type for value 

- Use AEP debugged to see if any error on the console 

Avatar

Community Advisor

Hi @kamil_tagging 

could you add screenshots of your actions and the network request?

Thx

Cheers from Switzerland!


Avatar

Level 1

Hi,


Update variable action:

kamil_tagging_0-1726559916509.png


Send event action:

kamil_tagging_1-1726559955528.png


XDM Data element configuration:

kamil_tagging_2-1726560054256.png


XDM variable data element:

kamil_tagging_3-1726560134618.png

 

AEP debugger:

kamil_tagging_4-1726560401034.png



So please correct me if I'm wrong, in this above case the value for prop24 should be updated by Update Variable action from prop24 = 1 to prop24 = abc.




Avatar

Community Advisor

Hi @kamil_tagging 

you're updating a different XDM variable than you are sending as it seems?

 

Update is on: WEB SDK - Variable - XDM
Send is with: WEB SDK - XDM - CountrySelect

Cheers from Switzerland!


Avatar

Level 1

Hi @bjoern__koth 

Ok, now I got it.


I thought that there is also an option to update XDM object Data Element using 'Update Variable' action, but what I understood we can only update the Variable Data Element.

Thanks for help!

Avatar

Correct answer by
Community Advisor

You can only use the update variable on variable data elements. For this you can use either the XDM or Data type. And both you can use either in the XDM or data payload of the Web SDK send event interface.

 

just make sure you are using the right variable in the right field

Cheers from Switzerland!