calculate business duration based on start date & end data via after business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 07:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 07:49 AM
If you change your BR to run 'Before', no current.update(); will be needed. Please specify the table your BR is defined on. Seems your script logic is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 09:21 AM
tried before br also log is not getting for this -gs.info("business_duration"+current.business_duration);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 09:23 AM
Do you have conditions on the BR for work_start and work_end not being empty? I tested the script logic on the incident table and it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 08:13 PM
yes i have the condition the start date is not empty & end date is not empty.can you share your script .how its working for you