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 connection Json

Geetha_k
New Contributor
New Contributor

Hi,

I'm trying to add createdate to  CreateAccountJSON and getting below error:

{"headers":null,"statusCode":555,"description":null,"status":"Failed"}}

below is json

{ "accountIdPath": "accountName", "call": [{ "name": "call1", "connection": "acctAuth", "url":"urlhere", "httpMethod": "POST", "httpParams": "{ \"XGUID\": \"${user.customproperty21}\", \"S3_USER_ID\": \"${user.username}\", \"PERSON_STATUS\":\"${if(user?.customproperty49.equals('Active')){'ACT'}else if(user?.customproperty49.equals('Separation')){'SEP'}else {'INA'}}\", \"LAST_NAME\": \"${user.lastname}\", \"FIRST_NAME\": \"${user.firstname}\", \"EMAIL\": \"${user.email}\", \"S3_EMPLOYEE_TYPE\": \"${user.employeeType}\", \"COUNTRY_CODE\": \"${if(user?.customproperty3.equals('AD')){'AND'} else if(user?.customproperty3.equals('AE')){'ARE'} else if(user?.customproperty3.equals('AF')){'AFG'} else {user?.customproperty3}}\", \"COMPANY\": \"${user.companyname}\", \"STREET\": \"${user.street}\", \"STATE\": \"${user.state}\", \"POSTAL_CODE\": \"${user.region}\", \"MANAGER_NAME\": \"${com.saviynt.ecm.identitywarehouse.domain.Users.get(user?.manager)?.displayname}\", \"MANAGER_XGUID\": \"${com.saviynt.ecm.identitywarehouse.domain.Users.get(user?.manager)?.customproperty21}\", \"TIME_STAMP\": \"${Calendar.instance.format('dd-MMM-yy hh:mm:ss')}\", \"RECORD_TYPE\": \"NEW\", \"SOR\": \"${user.customproperty15}\", \"FEED_PK\": \"${user.customproperty40}\", \"PERSONNEL_NUMBER\": \"${user.employeeid}\",\"HIRE_DATE\": \"${user.CREATEDATE}\"}", "httpHeaders": { "Authorization": "${access_token}" }, "httpContentType": "application/x-www-form-urlencoded", "successResponses": { "statusCode": [200] } }] }

 

0 REPLIES 0