Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

REST - ImportAccountEntJSON - Concatenate two fields as one to import entitlements

adriencosson
Valued Contributor
Valued Contributor

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 ?

Regards,
Adrien COSSON
2 REPLIES 2

NM
Esteemed Contributor
Esteemed Contributor

Hi @adriencosson you can use CONST

${return response.CompanyCode.key+'_'+response.salesOrganization}

If it doesn't works try removing return and keeping the rest.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

adriencosson
Valued Contributor
Valued Contributor

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

 

Regards,
Adrien COSSON