After BR on cmdb_ci_computer table is not working for all the records .

Shivangi Singh2
Tera Contributor

I had an requirement for that I wrote an After BR, it was to update records after they are discovered by or we can say updated by SCCM integration. We had to make sure that assigned to should be the same ,then only BR should trigger .

But it's not behaving properly ,it's executing partially. I am not even able to find out any relation between records it's not executing for.

 

Any help is appreciated , I would provide more information if needed.

5 REPLIES 5

sunil maddheshi
Tera Guru

@Shivangi Singh2 

Try adding a condition in script:

current.assigned_to == previous.assigned_to

then only your script should execute.

 

Please mark correct/helpful if this helps you!

 

Aniket1498
Giga Guru

Hi @Shivangi Singh2 ,

Can you elaborate more as what you meant by "We had to make sure that assigned to should be the same ,then only BR should trigger"?
Please share the when to run condition and the script that you have written so that the correct answer can be provided.


Mark this as helpful if it solves your issue. Thanks!


Warm Regards,
Aniket Dey

Ankur Bawiskar
Tera Patron
Tera Patron

@Shivangi Singh2 

you didn't share how your BR looks, screenshots etc

in which case it's working and in which case not working?

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

Shivangi Singh2
Tera Contributor

Hi All,

Sorry for not sharing my code earlier .

@sunil maddheshi I have already added that condition.

here's my code and condtion : I have wrote an After BR

ShivangiSingh2_0-1742561347673.pngShivangiSingh2_1-1742561477370.png

@Ankur Bawiskar I am not able to find out the pattern when it isn't working yet. Even though the record is saying updated on today and updated by Sccm integration ,still for few BR is not executing. 

With few I mean it's updating 200+ items but not working for some around 200 again in a cycle . 

 

I tried , but I am not able to find any pattern in the records which are not getting updated ,for them also all the conditions are getting met.

 

If there are any suggestion to even help me find the pattern of the issue it would be great.