FortiSOAR Discussions
doubleohseven
New Contributor II

How to trigger a manual playbook from a comment

Hi all,

 

I'm working on a playbook that contains a host using Crowdstrike. Running the playbook updates a comment saying the host was contained. I want to include a link in the comment that will say something like "click here to lift containment" and when clicked, will run a the lift containment playbook. 
Does anyone have any experience doing such a thing?

Thanks in advance,

 

Nelson

1 REPLY 1
mnaili
Staff
Staff

Hi Nelson, you can create a link to run a playbook as follows:
"<button id="triggerPlaybook-[PLAYBOOK_UUID]" class="btn-primary">[BUTTON_TITLE]</button>
where, <PLAYBOOK_UUID>, is the UUID of the playbook (manual trigger or reference) that you want to trigger, and BUTTON_TITLE is the actual name of the button.

Dashboards, Templates, and Widgets | FortiSOAR 7.4.3 | Fortinet Document Library