We are running into an issue trying to automatically create service items to be requested via the IT Shop. The customer has an application that is controlled by AD groups, and any time a new group shows up in a particular OU, they want that to be automatically requestable. The process we built does the following:
1. When seeing the new group appear in ADSGroup, an entry is created in UNSGroupB
2. When the UNSGroupB entitlement is created for this particular target, a process is triggered to create a Business Role
3. Once the Business Role is created, a process is triggered to create an AccProduct
4. Once the AccProduct is created, a process is triggered to create a Requestable Resource
5. Once hte Requestable Resource is created, a process is triggered to create the ITShopOrg and ITShopOrgHasRessource records
Everything seems to be working great until the end when we see the following tasks show up:
The update step fails due to having duplicate alternate keys. If we execute the Delete processes, then kick off the update, the update runs fine. If you notice, the Delete jobs are dated ahead of the update by 5 minutes, so they fail consistently. We also have an issue that our original ITShopOrg record gets deleted, and it has a unique identifier in a custom field so that we can track it back to the objectGuid of the ADGroup.
Any thoughts on what we can do to resolve this? Should we take a different approach, or is there something we can tweak?