What's new in Customer Journeys?

Connect and learn more! ×
Approval Rules - Convert a Date into Day of month — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Approval Rules - Convert a Date into Day of month

Received Response
edited Nov 28, 2023 8:11AM in Workforce Management 1 comment

Requirement to set up approval rule and to check the day of the month for an Absence start date in order to apply some logic.

Eg If Absence start day <15 then...

So need to convert absencesApprovalsRequest.absenceStartDate into the Day of the month integer.

In "configure rule conditions", the following parses "OK"

(absencesApprovalsRequest.absenceStartDate.GregorianCalendar.DAY_OF_MONTH < 15)

But then when save rule, receive following error: RUL-05720: data type mismatch for test "<": java.util.GregorianCalendar < String

** UPDATE **

Now resolved - Have to do via BPM worklist.

Formula : (absencesApprovalsRequest.absenceStartDate.day between 1 and 15)

This can now be closed


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!