- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 03:10 PM
Hello,
I was wondering if anyone knew how to run a business rule as "System" or if there is a way to run a Business Rule NOT as the person triggering it.
I'm trying to create a Round-Robin ticket distribution system for my organization, and I was thinking of using a Business Rule/Script Include combo here. The conditions are, Before insert on the Incident Table, If the assignment group is "A" and assigned to is null, call Script Include to determine who from "A" is next in line to be assigned the ticket and set that user.
The problem I believe I am having is if the user is creating the ticket from Service Portal (not fulfiller licensed), the script include doesn't completely execute because the submitting user doesn't have the access to run the queries on the tables in the script include. This setup runs and executes otherwise.
Any help or insight would be greatly appreciated. Cheers.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 03:36 AM
Hello @LouisG ,
Instead of doing it through business rule you can achieve it through workflows , Just write the business rule logic in the run script activity of workflow and from there you can call your script include logic and just before the Run Script activity add one timer of 5~10 sec .By doing so you script logic will be trigger as "System" instead of user.
If my response helps you to resolve the issue close the question by ✅Accepting solution and hit 👍thumb icon. From Correct answers others will get benefited in future.
Thanks,
Ankit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2023 04:07 AM
You're welcome! I'm glad I could help.