value is not updating in the field on form & column in table

SNOW Learner09
Tera Guru

Hi, 

To update a field value through after business rule using current.update, field value is not getting updated. Value is not updating in the field when we open the record, in list view also value is not appearing and in the backend table also value is not populating. However, if we print the current value of the field using gs.info & gs.addInfoMessage I can see the sys_id of the value successfully. Can anyone help with it.

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @SNOW Learner09 ,

Pease try to use before Business Rule. In after business rule it is not recommended to use current.update() because it goes in loop, so please try with before BR and in before BR you didn'y want to use current.update().

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak

View solution in original post

4 REPLIES 4

Community Alums
Not applicable

Hi @SNOW Learner09 ,

Pease try to use before Business Rule. In after business rule it is not recommended to use current.update() because it goes in loop, so please try with before BR and in before BR you didn'y want to use current.update().

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak

Yeah tried with Before BR and it worked. This also eliminates the need of current.update. Thank you.

Bert_c1
Kilo Patron

post your script, and as @Community Alums says, set your BR to run Before. Use an order value > 100. No 'current.update();' is needed in BRs that run Before.

 

BusinessRules

 

swathisarang98
Giga Sage
Giga Sage

Hi @SNOW Learner09 ,

 

Could you please share code of BR which you have written and explain what you are trying achieve with some screen shot ?

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang