Why this Business Rule Script not working fro me?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2023 12:05 AM
(function executeRule(current, previous /*null when async*/) {
// Add your code here
current.addEncodedQuery('sys_created_onNOTONLastyear@javascript:gs.beginningOfLastYear()@javascript:gs.endOfLastYear()');
})(current, previous);
10 REPLIES 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2023 01:28 AM
Hi,
Try below query:
current.addEncodedQuery("sys_created_onONLast year@javascript:gs.beginningOfLastYear()@javascript:gs.endOfLastYear()");
Added screenshot to avoid colon representation conversion issue.
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande
Thanks
Anil Lande