Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Javascript options in ImportAccountEntJSON

angela
New Contributor III
New Contributor III

Hello,

We have a scenario where we need to split/parse out the entitlementID and are running into problems.

 
                        "listField": "items",
                        "keyField": "entitlementID",
                        "colsToPropsMap": {
                            "entitlementID": "#CONST#${_meta.href.split('/')[5]}~#~char",
                            "entitlement_value": "name~#~char"
                        },
 
angela_0-1655917156862.png
We have tried a handful of ways but haven't been able to find a solution:
"entitlementID": "${_meta.href.split('/').pop()}~#~char",
"entitlementID": "${_meta.href.split('/')[5]}~#~char",
"entitlementID": "#CONST#${_meta.href.split('/')[5]}~#~char",
"entitlementID": "_meta.href.split('/')[5]~#~char",
 
DEBUG rest.RestUtilService - Exception in RestUtil.getAt : groovy.lang.MissingPropertyException: No such property: split('/') for class: java.lang.String
 
Is there a way we can use javascript the ImportAccountEntJSON?
 
Please let me know!
2 REPLIES 2

rushikeshvartak
All-Star
All-Star

String functions are not supported in REST Connection ImportAccountEntJSON


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

UwarajWaman
New Contributor III
New Contributor III

@angela Try this -

"entitlementID": "#CONST#${return response._meta.href.split(\"/\")[5];}~#~char"