Comparing a user's department against the current Business Owning BU or Platform of a business app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
In the Service Catalogue, I'm trying to create a new catalogue item for maintaining a business application. The requirement is that if the user proposes a change to the Business Owner then check the 'Department' field on the new owner's User record.
If the path to this department does not align to the current Business Owning BU or Business owning Platform then inform the user that the proposed business owner does not sit within the current Business owning Business Unit and/or Platform.
I've tried to build the logic in a script include and client script. However, even if the new owner's department is correctly align the below message still appears.
I'm using the following functions in my script include:
The code in my client script is: