How to set due date in Ask for approval action in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 04:45 AM - edited 04-25-2023 04:48 AM
Can anyone suggest how to set due date for ask for approval in flow designer without auto-approve auto-reject or auto-cancel? I tried with adding calculate catalog task due date action but getting one error
class com.glide.glideobject.GlideDateTime cannot be cast to class java.lang.String (com.glide.glideobject.GlideDateTime is in unnamed module of loader com.snc.orbit.container.tomcat8.Tomcat8$OrbitTomcat8ClassLoader @ae40e9; java.lang.String is in module java.base of loader 'bootstrap')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2025 08:50 PM
Can you try this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 09:23 AM
Its type cast error. Share screenshot for your logic to help you better.
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 09:31 AM
This is the script I wrote
var gdt = new GlideDateTime();
gdt.addDaysUTC(2);
return gdt;
I tried with this too
var gdt = new GlideDateTime();
var time=gdt.toString();
time=time.split(' ');
gdt.addDaysUTC(2);
var gdt1=new GlideDateTime(gdt.getDate()+' '+time[1]);
return gdt1;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 10:21 AM
We did a flow for approvals that checks if its approved or not, then after X amount of days auto rejects
It sends a reminder to the approver, then checks, then sends another reminder, then closes its out.