Business Rule to calculate the days pending
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2024 11:08 AM
Hello,
I have created a business rule that is supposed to fill a table column on my called Days Pending. Then I created a Business rule with the script below that needs to calculate todays date minus the lastUpdate. I need it to return just the number of days to my new column days_pending. Can someone take a look at the script below and let me know what I am missing to have it prefill the number of days to my table column please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2024 02:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 10:11 AM
Thank you, I appreciate the share.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2024 02:46 PM
The subtract method returns result in microseconds. To get the number of days, you need to divide it with 1000/number of secs/number if minutes/number of hours.
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 02:04 PM
@Annette Kitzmil Did you try this solution?
Please mark this response as correct or helpful if it assisted you with your question.