Unable to programmatically start Playbook – Script Include, Business Rule, or Flow attempts not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I’ve been trying to programmatically start a Playbook in ServiceNow and wanted to check if anyone has successfully done this using:
- Script Includes
- Business Rules
- Flow Designer (Flow / Subflow / Custom Action)
So far, none of my attempts have worked as expected.
1) sn_playbook.PlaybookExperience.triggerPlaybook(playbookScopedName, current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
but why to trigger from script?
Let it trigger from field update based on matching condition
I could see this link, see if that helps
How to trigger playbook using button from workspace?
💡 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
yesterday
Based on which RITM is created → start the correct playbook (Playbook1, Playbook 2, Playbook 3…).
I'm starting it from request because I'm calling it when order guide is created and it normally comes with 3 or more request item attached to the request. The trigger condition is only allowing me to call 1.
Playbook1 to start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @John24
To programmatically start a Playbook in ServiceNow , you can use the PlaybookExperience - Scoped API
Refer:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I already tried that. I already called that method, nothing happens. It's not starting the playbook. My codes are in scoped application.
