Leveraging Intelligent Recommendations for Operational Transformation. AMS Partners click HERE | EMEA/APJ Partners click HERE |
01/07/2024 03:45 AM - edited 01/07/2024 03:48 AM
Hi,
We have a use case where we have to send entitlement for approval based on difference between the end and start date.
if enddate-startdate is greater then 2 months send to user group for approval otherwise to manager for approval.
I tried with request_access.startdate - request_access.enddate but that doesn't seem to work (No request is getting submitted)
Can someone please provide a sample to use enddate and startdate in workflow?
Thanks
01/07/2024 08:20 AM
com.saviynt.ecm.workflow.Request_Access.get(new Long(requestaccesskey)).startdate.format("HH").toInteger()>17
01/07/2024 11:07 AM - edited 01/07/2024 11:12 AM
Hi Rushikesh,
Tried with the one provided by you in if else block it doesn't seem to work, Received below error message.
"Script evaluation error"
Expression language selected is "Groovy"
Condition
01/07/2024 03:55 PM
Above one was sample please change as per your requirements
01/07/2024 07:36 PM
I will make the changed as per the requirement but the above provided one also doesn't work. Do I need to add something else to make it work?
Thanks
01/07/2024 08:04 PM
com.saviynt.ecm.workflow.Request_Access.get(new Long(requestaccesskey)).startdate.format('HH').toInteger()>17
01/07/2024 08:20 PM
I have tried this but gives an error and mentioned the same in my previous comment..
01/07/2024 08:58 PM
com.saviynt.ecm.workflow.Request_Access.get(new Long(requestaccesskey)).startdate.format('HH').toInteger().equals('17')