State is not getting changed

Devansh1
Tera Contributor

Hi All,

There is a BR which check the condition if the assignment group is not empty and assigned to is empty the state should be assigned it is working fine in the workspace, but if record is created via record producer the state is not changing after updating some value it is getting updated. Even in some cases just saving the record it is getting updated,

 

image.png

 

what could be the reason..

 

Thanks,

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Devansh1 

the BR is before insert/update?

Are you updating assignment group from record producer and assigned to is empty when Record producer is submitted?

if BR conditions match then BR should work fine

Also are you setting state field via record producer script etc?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

We are updating assignment group from Lookup Rules and setting the state from BR.

@Devansh1 

so it means the BR and Lookup rule is conflicting and Lookup rule is running after before BR and hence BR condition is not getting satisfied.

Ensure your BR is with order less than 1000

AnkurBawiskar_0-1757072833101.png

OR

Try setting the group from record producer script itself and let Lookup rule set it again. with this your BR will trigger and do the necessary action

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

GlideFather
Tera Patron

Hi @Devansh1

 

please share the BR.

It might be the checkbox on create/update or anything else, please share

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */