Custom Business Rule is not working in Service Operations Workspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 05:26 AM
Custom Business Rule is not working in Service Operations Workspace.
We've a custom Business Rule on Interaction table to redirect to Catalog Item whenever Type is selected as 'Request' and custom field 'Catalog Item' to pick from active items.
We're configuring the service Operations Workspace, So that ITIL user can perform all the activities from Workspace. When we're verifying the all functionality that 'custom Business Rule on Interaction table to redirect to Catalog Item' is not working in the Interaction table
.
Any thoughts on how we can call the getcart() function on the Workspace side?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 11:14 AM
Hi Vinisha,
Were you able to find an answer to this problem? Looking for a similar answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 11:44 AM
Hi @Vinisha ,
Hope you are doing great.
To enable the execution of the custom Business Rule on the Interaction table and call the getcart() function on the Service Operations Workspace, we need to make sure the following steps are properly implemented:
- Verify the Custom Business Rule First, ensure that the custom Business Rule on the Interaction table is correctly set up. The Business Rule should trigger whenever the Type field is selected as 'Request,' and the 'Catalog Item' field should be populated with active items from the catalog.
- Configure Service Operations Workspace Next, make sure the Service Operations Workspace is properly configured for ITIL users to perform all the necessary activities. Ensure that the Workspace has the required permissions to execute the custom Business Rule and access the getcart() function.
- Check Business Rule Execution Verify if the custom Business Rule is indeed getting executed by creating a test Interaction record with the Type set as 'Request' and a valid 'Catalog Item' selected. Check the logs or the Business Rule execution history to ensure that the rule is triggering as expected.
- Call getcart() function in the Workspace To call the getcart() function in the Service Operations Workspace, you can use the following approach:
1.Locate the relevant part of the Workspace where the action to call getcart() should be performed. This might be a button, link, or any other user interface element.
2. Add an event listener or an action handler to the UI element, triggering a function when the user interacts with it.
3.Inside the function, use ServiceNow API methods to call the getcart() function or any related server- side code that handles cart functionality.
Regards,
Riya Verma