Does anyone have an example of assigning a user role inside “scripted decision node”
A conventional method of setting attribute throws an error regarding incorrect format for “relationship” attribute type.
Here is an example another thing that I tried:
var myArray = new Array();
myArray.push(‘{“_ref”: “managed/alpha_role/myRoleName”}’);
var object = sharedState.get(“objectAttributes”)
object.roles = myArray;
Here is the error:
errorMessage=Invalid value format for relationship array