Expand my Community achievements bar.

Add predefined No of days to Current Date

Avatar

Level 2

Hello All,

I have a form in workspace, When the approver approves the form a email will be sent to some X person.

In the email i need to populate a date in the email body i.e 5 days adding to the Current date. If there is any saturday and sunday in between then i need to ignore that.

Please let me know how to achieve the above in workbench.

Thanks.

1 Reply

Avatar

Employee Advisor

Though LiveCycle has Business Calender feature to be used with Assigned Tasks but for your use case, you can calculate the required date using Java API (e.g. Calender etc.), store it in a variable using Execute Script

In message body editor of "Send with document" operation use the variable using Xpath.

Hope this helps.

-Wasil