Unable to send updated cost center to the vendor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi Community,
We have a Vendor ↔ Servicenow integration where order and asset updates are exchanged between ServiceNow and the vendor. Currently, when a user's Project Number/Cost Center changes, an existing Business Rule updates the Cost Center on already created hardware assets and successfully generates an outbound SN-Vendor.asset.update - Integration transaction.
The issue occurs when the Cost Center changes after the order is sent to the vendor but before the asset is created. Since no asset exists at the time of the change, the existing logic cannot update anything. When the vendor creates the asset later, it may contain an outdated Cost Center.
We tested Flow Designer and Business Rule approaches that update the Cost Center after asset creation, but no outbound transaction was generated because the asset is created/updated by 'system', which is excluded by ServiceNow's loop-prevention logic. Every time vendor creates an asset record, the field 'updated by' is 'system' and hence gets ignored by integration logic to avoid loops.
Looking for a recommended design pattern to handle Cost Center changes between order placement and asset creation, while ensuring the vendor receives the updated Cost Center without modifying core integration safeguards or introducing integration loops.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi,
Are you using Rest API from Business Rules to call the Vendor API? In this case if you have two different BR and are async, then you will face this challenge. In this case, you need to either try to move both API call in same BR or convert the Business rule responsible for cost center to after update BR to avoid this issue.
Let me know if you follow a different approach to invoke the APIs
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @ShaibaazFaheem,
Wouldn't be sending an order-update with the new cost center to the vendor the straight way forward?
Hope this helps!
