Skip to main content
Michael_Soprano
Level 10
August 24, 2026
Question

Web SDK - dynamic Data Element as Identity Namesspace

  • August 24, 2026
  • 4 replies
  • 19 views

I created a custom code for Identity Namespace in Web SDK. 

However it totally do not work. It do not return any errors - it treats my Data Element as STRING ( :D )

JS code is super simple - do not return any error in console in browser. 

Have you tried implementing Identity Namespace as a Data Element and it worked? 

 

4 replies

bjoern__koth
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
August 24, 2026

Question: are you using the Web SDK extension or custom code to send the data?

Using the extension and identity map data element, you should not need to write special code to determine which identityNamespace is used. If you configure identities and the referenced values do not exist, they will be removed before the call is made.

Cheers from Switzerland!
Michael_Soprano
Level 10
August 25, 2026

Web SDK extension. I am on a project with multi entity company. Depending on hostname specific Identity Namespace needs to treated as a primary. It has to be custom code. 

However my data element is treated as ‘string’. Tested multiple versions - still the same error. 

bjoern__koth
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
August 25, 2026

To clarify, you are using a custom code data element for the identityMap and not the extension? I mean technically if you return a JSON object and assign it in your XDM data structure, it should work.

by any chance, can you add screenshots?

Cheers from Switzerland!
Michael_Soprano
Level 10
August 25, 2026

Yes. 

  1. Identity map data element. Point 1 do not work. Point 2 works as expected  
  2. Identity Namespace code - super simple - based on a hostname of the page :)

    Even the console.log does not work ………..