Make related records inactive

dscov22
Tera Contributor

Hello, 

 

I am trying to write a BR that runs when a product is deleted and makes queries related to that product inactive.

 

dscov22_0-1695158103137.png

dscov22_1-1695158113813.png

 

 

For some reason this is not working, any help appreciated

 

Thank you

 

 

 

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

Hi @dscov22  you are missing gr.update(); use it after gr.setValue() method, 

 

Also active is Boolean type field then you should set active as false. 

 

 

 

View solution in original post

2 REPLIES 2

Harsh Vardhan
Giga Patron

Hi @dscov22  you are missing gr.update(); use it after gr.setValue() method, 

 

Also active is Boolean type field then you should set active as false. 

 

 

 

dscov22
Tera Contributor

Thank you very much