Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/20/2024 12:02 AM
Hello,
We have an application that must be integrated through REST Connector.
We need to import the Entitlements which are retrieved as below :
One entitlement is the combination of the companyCode and the salesOrganization keys.
{
"rows":[
{
"companyCode":{
"key":"ABCD"
},
"salesOrganization":{
"key":"1234"
}
}
]
}
Hence the entitlement_value and entitlementID of the same must be - with the given example, ABCD-1234.
Is there a way to achieve this in ImportAccountEntJSON ?
Solved! Go to Solution.
08/20/2024 12:11 AM
Hi @adriencosson you can use CONST
${return response.CompanyCode.key+'_'+response.salesOrganization}
If it doesn't works try removing return and keeping the rest.
08/20/2024 12:26 AM
Hi @NM ,
Thanks for the insight !
I did managed to do it using the below formula, neat !
#CONST#${String companyCode = response.companyCode.key; String salesOrg = response.salesOrganization.key; ret = companyCode + '-' + salesOrg; return ret}~#~char