Scheduled Scripts

Priyanka Ghosh
Giga Guru

The field changes made through the "Scheduled script execution" are not getting logged/updated in the work notes. Any specific reason behind it?

 

My script updates the 'state' field on a Change form under a specified condition. The script works but I don't see the work notes being updated after the execution.

 

Any help/suggestion would be appreciated.

 

-Thanks

1 ACCEPTED SOLUTION

AshishKM
Kilo Patron
Kilo Patron

Hi @Priyanka Ghosh , 

Please share the script, are you using any of following code line in script.

 

gr.setWorkflow(false);
gr.autoSysFields(false);

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

2 REPLIES 2

AshishKM
Kilo Patron
Kilo Patron

Hi @Priyanka Ghosh , 

Please share the script, are you using any of following code line in script.

 

gr.setWorkflow(false);
gr.autoSysFields(false);

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Priyanka Ghosh
Giga Guru

Yeah I used gr.setWorkflow(false); in the script which I believe caused the issue. I removed the line and ran the script and it successfully updated the work notes.

 

-Thanks.