PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

json mapping for account creation

myasin
New Contributor II
New Contributor II

in the CreateAccountJson for AD how can i reference the value associated to a customproperty4 of a target account associated to the user.
For example, below what would be the syntax to get employeeID value that is listed as customattribute 4 of APP1 for the user

"mail":"${if(user.email == null){''} else {user.email}}",
"name":"${user.displayname}",
"title":"${if(user.title == null){''} else {user.title}}",
"employeeID":" ? "

Thanks

3 REPLIES 3

pmahalle
All-Star
All-Star

Hi @myasin ,

Try below expression to get value of CP4 from the account assigned to same user on endpoint "APP1".

${userAccount.get('APP1').customproperty4} 


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

myasin
New Contributor II
New Contributor II

when I add :

"employeeID":"${userAccount.get('APP1').customproperty4}",

I get the below error:

Error while creating account in AD - No such property: userAccount for class: SimpleTemplateScript18856

 

Hi @myasin ,

You can use sav4sav to copy value from user’s account custompropertyX to user’s custompropertyX.

Once user’s custompropertyX is updated, you can push that value on other target accounts as well using update rule with action update account tasks.

Let me know if it helps.


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂