guided setup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I am creating a Guided setup .. and I got to know that it is itself a playbook.
So, Can someone know? that How to call a script action in playbook?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Using the "Run Script" Action
- In your Playbook, add an action step
- Search for and select "Run Script" action
- In the script field, write your JavaScript code
- You can access playbook context variables using the inputs object
(function execute(inputs, outputs) { // Your script logic here var result = inputs.input_variable; // Process your logic gs.info('Processing: ' + result); // Set outputs if needed outputs.output_variable = 'some value'; })(inputs, outputs);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You can trigger by inserting a playbook_trigger record (e.g. in a UI Action or any ), and then inside the Playbook use a declarative action of type server script (on your playbook card or stage) to run your custom logic using the current object, this lets you run any script include or server logic in a low code way inside the Playbook........
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
