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

need help in formating of httpsparams

venkat
New Contributor III
New Contributor III

i am trying to use the rest connector.  I need to create a string value for jobtitle key.  The string should concatenate a few properties.  it fails with errors. 

Can you help in creating the string for me.  if i put only user.customproperty1.substring(0,1).toUpperCase() only it works . i append the other parts. it fails

 

below is the Http params and i am trying to populate a value on jobtitle

"httpParams":"{\"accountEnabled\":true,\"displayName\":\"${user.firstname+', '+user.lastname}\",\"mailNickname\":\"${user.username+'CS'}\",\"employeeid\":\"${user.username}\",\"jobTitle\":\"${user.customproperty1.substring(0,1).toUpperCase()+user.customproperty1.substring(1,2).tolowerCase()+user.customproperty3+user.customproperty3.toString().substring(user.customproperty3.length()-3)}\",\"userPrincipalName\":\"${user?.customproperty29+'CS'}@xxxx.com\",\"officeLocation\":\"${user.location}\",\"givenName\":\"${user.firstname}\",\"surname\":\"${user.lastname}\",\"passwordProfile\":{\"forceChangePasswordNextSignIn\":true,\"ForceChangePasswordNextSignInWithMfa\":true,\"password\":\"${xxxx#xxxx}\"}}"

1 REPLY 1

rushikeshvartak
All-Star
All-Star

${user.customproperty1.substring(0,1).toUpperCase() + user.customproperty1.substring(1).toLowerCase() + user.customproperty3 + user.customproperty3.substring(user.customproperty3.length - 3)


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