setValue of a field is not working in async insert/update Business rule

Renu9
Tera Contributor

Hi All,

I am writing an async Insert/Update business rule to update a field value(Ex: TestA) on RITM based on RITM's Approval field value.

If Approval field value is either approved/rejected, then only I need to populate some value in  'TestA' 

There are few RITM's with approver and few with no-approvers

Async Insert/Update

current.setValue('TestA', time);

(or)
        current.TestA = time;

Both the above methods are not working in async BR, Please guide

 

10 REPLIES 10

Taranjeet Singh
Giga Expert

Hi Renu,

 

Create an after Business Rule on sc_req_item with below conditions:

find_real_file.png

and in script add code as:

 

current.TestA = time;

current.update();

 

Please mark reply as Helpful/Correct, if applicable. Thanks!

Taranjeet