Business Rule Not updating the field

kailashthiyagar
Kilo Guru

I have a "After" Business rule on "Insert/Update'

The below condition not setting the particular reference field.. I tried with setDisplayValue but it sounds like its not supported in scoped application, it seems..

current.development_team_developer = '2ed00a7b132e62008b5cb86f3244b0c8';

1 ACCEPTED SOLUTION

Well, it's an extra update.   If you know you want to execute the code why not do it before and not have extra updates occuring?



Also if it was a before rule, you wouldn't need current.update() in it.


View solution in original post

4 REPLIES 4

Jace Benson
Mega Sage

If you have are in an after rule, it doesn't automatically update the record.


you may have to place a current.update(); in there.



That's bad though because you now will have 2 updates to the record;


First things first, can this be a before rule?   Is so it should work


Are you sure its not set?   Goto the record, show XML and look for your field, does it have some value but no display?   That would be that way if the record didn't exist or the sys_id wasn't proper.


I missed the update.. i found in another thread and i m doing the changes now.. I m using the :"After" business rule and after using the update, it worked..



I didnt get the second part in your msg.. Should it be good to have "Before" BR?


Well, it's an extra update.   If you know you want to execute the code why not do it before and not have extra updates occuring?



Also if it was a before rule, you wouldn't need current.update() in it.


Yes, It should be a before BR