Use Delivery Time from Catalog Item to set Due Date on Requested Item

Isak
Kilo Contributor

Hey,

I need to be able to set the due date of requested items using the delivery time field from the catalog item. I know that normally the due date is calculated from the workflow itself, but the customer is using the same generic workflow for a lot of different catalog item. 

1 ACCEPTED SOLUTION

Sumanth16
Kilo Patron

Hi ,

 

Please go through below link:

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

Please mark it as helpful if it helps.

 

Thanks,

Sumanth

View solution in original post

8 REPLIES 8

Manas Kandekar
Kilo Guru

Hi

IN workflow you can use 'run script' to set the due date.

current.due_date = current.variables.<variable_name_from_form>;

 

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

Kind regards,
Manas

the variable is on the back-end catalog item form (where you configure the catalog item), using that run script you said gives me the ability to pull in variables from the portal form that the customer fills out.

Suseela Peddise
Kilo Sage

Hi,

There is an OOB business rule called "Calculate Request Item Due Date" on RITM table, which is inactive by default. You can activate the business rule.

 

If I have answered your question, please mark my response as correct and/or helpful.

Thanks,

Suseela P.

I did activate that business rule and it still would not calculate the due date time.