and more in a single search tool across platforms. Read the announcement here. |
01/28/2024 10:23 PM
Hi Saviynt Team,
Could you please suggest, what json format should i use to pass the date format to end system via the disablement JSON. We want to update enddate or current date with below format.
end system accept this date format : 2024-01-20T00:00:00.00Z
i tried with all way but its giving an error that date format is not correct.
we tried below data format
A. ${user.enddate..format('yyyyMMddHHmmss')'Z',TimeZone.getTimeZone('Etc/UTC')}",
B. ${Calendar.getInstance().getTime().format('yyyyMMddHHmmss')}Z
C. ${user.enddate.format('yyyy-MM-dd'T'HH:mm:ss'Z'')}
D. ${user.enddate}
here is json request body
"httpParams": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\":\"add\",\"path\":\"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:terminationDate\",\"value\":\"${user.enddate.format('yyyy-MM-dd'T'HH:mm:ss'Z'')}\"}]}"
ERROR MESSAGE
Thanks
Solved! Go to Solution.
01/29/2024 02:02 AM
What is the target system here?
01/29/2024 02:44 AM
SAP Concur V4 API Version
01/29/2024 11:17 PM
Hi @bhuvanesh
Please try with the below
{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\":\"add\",\"path\":\"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:terminationDate\",\"value\":\"${user.enddate.format('yyyy-MM-ddTHH:mm:ssZ')}\"}]}
Thank you
Vedanth
01/30/2024 07:14 AM
Hello @Vedanth-BK @adarshk
We tried but still getting same error message.
{"call1":{"headers":null,"message":{"status":400,"schemas":["urn:ietf:params:scim:api:messages:2.0:Error","urn:ietf:params:scim:api:messages:concur:2.0:Error"],"urn:ietf:params:scim:api:messages:concur:2.0:Error":{"messages":[{"code":"BAD_INPUT","type":"error","schemaPath":"/urn:ietf:params:scim:schemas:extension:enterprise:2.0:User/terminationDate","message":"Date-time string must have the format YYYY-MM-DD'T'hh:mm:ss'Z'"}]},"scimType":"invalidSyntax","detail":"Invalid schema","meta":null},"statusCode":400,"description":null,"status":"Failed"}}
Thanks
01/30/2024 10:14 PM
@bhuvanesh can you try this :
yyyy-MM-dd'T'HH:mm:ss.ssZ
01/30/2024 10:32 PM
Hello @Manu269
Still Getting Same error message
{"call1":{"headers":null,"message":{"status":400,"schemas":["urn:ietf:params:scim:api:messages:2.0:Error","urn:ietf:params:scim:api:messages:concur:2.0:Error"],"urn:ietf:params:scim:api:messages:concur:2.0:Error":{"messages":[{"code":"BAD_INPUT","type":"error","schemaPath":"/urn:ietf:params:scim:schemas:extension:enterprise:2.0:User/terminationDate","message":"Date-time string must have the format YYYY-MM-DD'T'hh:mm:ss'Z'"}]},"scimType":"invalidSyntax","detail":"Invalid schema","meta":null},"statusCode":400,"description":null,"status":"Failed"}}
Here is the Response body
"httpParams": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\":\"replace\",\"path\":\"active\",\"value\":false},{\"op\":\"add\",\"path\":\"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:terminationDate\",\"value\":\"${user.enddate.format('yyyy-MM-dd'T'HH:mm:ss.ssZ')}\"},{\"op\":\"remove\",\"path\":\"entitlements\",\"values\":[\"Travel\"]}]}"
Thanks
01/30/2024 10:45 PM
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{
"op": "replace",
"path": "active",
"value": false
},
{
"op": "add",
"path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:terminationDate",
"value": "${user.enddate.format('yyyy-MM-dd'T'HH:mm:ss.SSZ')}"
},
{
"op": "remove",
"path": "entitlements",
"values": ["Travel"]
}
]
}
01/30/2024 11:22 PM
Hello @rushikeshvartak
Still same error
Thanks
02/01/2024 10:35 PM
Hi @bhuvanesh try with below
02/06/2024 02:51 AM
Hi @navneetv
it works, Thank you for working on it.