Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Setting Due Date within Request form

Derek23
Kilo Contributor

Hello SN community, 

As per below, I am trying to fill in the due date of a request based on a date/time variable in the catalog form. How will I go about configuring it so that the Due Date = "When would you like this to be completed?". 

I am new to developing and scripting so please try keeping it simple. Thanks for your help in advance.

 

 

find_real_file.pngfind_real_file.png

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You could add a Run Script step to your workflow, which fills the due_date based on the input on your variable.

See (working) example below. In my example I named the variable "due_date".

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

 

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

6 REPLIES 6

Sindhu B1
Giga Expert

Hi ,

Please refer the below link .

https://community.servicenow.com/community?id=community_question&sys_id=aac84b61db5cdbc01dcaf3231f961935

 

Please mark it as correct answer 

Regards ,

Sindhu B

 

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You could add a Run Script step to your workflow, which fills the due_date based on the input on your variable.

See (working) example below. In my example I named the variable "due_date".

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

 

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi there,

Thank you for this response. I am having troubles making this work. Is there anything else you may suggest trying?

Zoso1
Tera Contributor

Hello,

 

Do you use a catalog item with a workflow or a record producer?