- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- I have a Record Producer based on a custom table (let’s call it
table_x). - One of the variables is a Select Box called action.
- One of the choices in that select box is add_restricted_access.
- The user also selects an assignment group (reference to
sys_user_group).
- Finds all records in
table_xthat match the chosenassignment_group. - Updates the field
u_restricted_read_accessto false for all those matching records.
So basically we want to restrict reading access records on table table_xfor the assignment group chosen through the record producer.
And if so, what is the recommended approach or best practice for doing this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @ronro2 ,
As per my understanding, Yes you can initiate a subflow but,
don’t try to invoke the subflow directly from the Record Producer script. Instead, let the record creation event trigger a Flow, and let that Flow call the subflow. This separation of concerns is the cleanest, most scalable approach.
Refer this :
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2657568
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you can trigger flow based on Record producer submission
In process engine you can associate the published flow
OR
You can use after insert BR on that target table and then call subflow from it and pass that record sysId as input and then handle it
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @ronro2 ,
Best approach is to create a flow with triggering condition as 'created or updated' on table_x based on required condition and that flow will have subflow inside.
Otherwise, if want to trigger the subflow directly, you can try using FlowAPI, triggered from a server side script(BR). Please have a look at the blog post for the relevant FlowAPIs.
If this address your question, please don't forget to mark this response correct by clicking on Accept as Solution and/or Kudos.
You may mark this helpful as well if it helps you.
Thanks,
Animesh Das
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @ronro2
As others also have stated, I would advise to trigger det flow from record producer which then calls the subflow by input/output.
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
