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 Connector || Pass System Date in Create Account

Manu269
All-Star
All-Star

Hello team,

We are working on an integration (REST API).

As a part of create account operation, we need to pass the system date as hireDate attribute.

Application team is requesting to pass the system date as this attribute.

The expected format is YYYY-MM-DD.

Can someone share the sample for same .

Also how will it behave in case the request submitted is today and post all approvals the task got created after 2 days?

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.
2 REPLIES 2

Raghu
All-Star
All-Star

@Manu269  try like below based on key pass value

ex:

\"ABC\":\"${new Date().format('yyyy-MM-dd')}\"


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

rushikeshvartak
All-Star
All-Star
\"hireDate\":\"${task?.requestKey?.requestDate?.format('yyyy-MM-dd')}\"

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