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

Push enddate to SAP application on termination

sonali_dhulap
New Contributor
New Contributor

Hi All,

We have a requirement to push enddate to SAP application when user is terminated in Saviynt. We tried below syntaxes to push enddate/sysdate however it did not work.

1.

{ "LOGONDATA": { "GLTGB": "${user.enddate}" } }

2.

{"LOGONDATA":{
"GLTGB": "99991231"
}

3. 

{"LOGONDATA":{
"GLTGB": "${java.time.LocalDate.now()}"
}
}

4. 

{"LOGONDATA":{
"GLTGB": "${new java.text.SimpleDateFormat('yyyyMMdd').format(Calendar.getInstance().getTime())}"
}
}
}

Please help us with correct syntax if anyone has worked on same requirement.

Thanks,

Sonali

4 REPLIES 4

dgandhi
All-Star
All-Star

Can you give try to below and check if it works?

new java.text.SimpleDateFormat('yyyyMMdd').format(user.enddate)

Thanks

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

Sivagami
Valued Contributor
Valued Contributor

Could you try something like this?

"GLTGB": "${(new java.text.SimpleDateFormat('yyyyMMdd')).format(new Date())}",

 -Siva

rushikeshvartak
All-Star
All-Star

what is type of task

 


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

Type of task is update account task.

Thanks,

Sonali