The CreatorCon Call for Content is officially open! Get started here.

Why this Business Rule Script not working fro me?

1dusjhyahnt
Tera Contributor
(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

Anil Lande
Kilo Patron

Hi,

Try below query:

current.addEncodedQuery("sys_created_onONLast year@javascript:gs.beginningOfLastYear()@javascript:gs.endOfLastYear()");

Screenshot 2023-12-20 at 2.56.50 PM.png

 

 

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