Scripting tips
Access IDM properties in scripts
User self-service journeys primarily use PingIDM nodes.
Nodes save data in the shared state of journeys. PingIDM nodes save data in the shared state differently than other nodes.
You can extend the functionality of journeys using scripts you write in the Scripted Decision node.
When you use a Scripted Decision node node to access properties saved in the shared state by PingIDM nodes, you must reference the IDM properties using the objectAttrbutes
object.
For example, to access the first name (givenName
) from the shared state, returned from an PingIDM node, you would use the syntax:
var firstName = objectAttributes.get("givenName").asString();
For information on how to access IDM properties in scripts and the shared state, refer to auth scripting.