Convert time zone from IST to US/Eastern
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi Community,
Here my requirement is for the caller x, if created 25 incidents per day as per US/ eastern time zone then it should trigger the notification. Here i am using this business rule, but it's not triggering the notification , can anyone please help me on this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
@Nilesh Pol it should only trigger when count is 25 not more than 25
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
@Nilesh Pol can you please say how can we do testing part for this to test whether it's working as expected or not
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
@tulasi8 You can add additional logging (using gs.info() or gs.log()) to output key variables and execution points to the system logs for easier debugging.
additionally, Create the specified number of incidents (e.g., 5 for testing) to trigger the business rule.
Observe the system logs for entries related to the business rule execution and verify that the event is triggered as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
To also help you move forward with your question, I would suggest that you skip the time conversion altogether, and rework your query to check for records created within a given time frame instead.
Something like this;
someGlideRecordObject.addEncodedQuery('sys_created_onRELATIVEGT@hour@ago@24');
// will get all records from within the last 24 hours
