After BR on cmdb_ci_computer table is not working for all the records .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2025 05:15 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2025 05:20 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2025 05:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2025 05:39 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2025 06:29 AM
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
@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.