- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:17 AM
Hi All,
I have a catalog item "abc" with a variable called Termination Date. It generates one catalog task (sc_task). I want to create a report that shows the difference between the Termination Date (from RITM variable) and the task's closure date. What’s the best way to achieve this?
Thanks in Advance,
Sachin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:27 AM
1 easy way
1) store the termination date variable value in custom field on sc_task
2) then report on sc_task table and use function field to find the difference between the variable and task closure date/time
Function Fields in ServiceNow Reports: Calculate and Display Data on the Fly
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:48 AM
don't show that field on form, remove it from form view
You can enhance the BR to work only for particular sc task
For older records you can use fix script to update the custom field with variable value.
I believe I have answered your question with the approach and you can take it further from here.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:24 AM
Hi @Sachin G K1 ,
It's might not be possible but check this out
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:27 AM
1 easy way
1) store the termination date variable value in custom field on sc_task
2) then report on sc_task table and use function field to find the difference between the variable and task closure date/time
Function Fields in ServiceNow Reports: Calculate and Display Data on the Fly
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:31 AM
Hi @Ankur Bawiskar ,
How to "store the termination date variable value in custom field on sc_task"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:35 AM
you can use before insert business rule on sc_task and set it like this
current.u_custom_datetime = current.request_item.variables.terminationDateVariable;
OR
You can also use Flow Designer Catalog Task if you are using Flow and set the custom field value
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader