Thanks as always Mark. I think adding computed data to Jinja templates will make them much more useful but do understand the custom field workaround.
Original Message:
Sent: Tue July 16, 2024 09:39 AM
From: Mark Scherfling
Subject: Outbound Email App -
HI Ken,
You're correct, incident data is available for the Jinja template, in addition to all the notes and all the artifacts. If you have computed data to add your rendered template, it's possible to define an additional incident custom field which you can set just for the template. But I can image a future enhancement to support this capability too.
Regards,
------------------------------
Mark Scherfling
Original Message:
Sent: Mon July 15, 2024 07:43 PM
From: ken ching
Subject: Outbound Email App -
Hi -
The IBM SOAR Outbound Email App supports using JINJA templates in two manners (as I understand it):
- Embedded as a multi-line string in the function script; and
- Defined in the App configuration as separate files installed in the container with references to the files added to the APP.CONFIG under section heading
[fn_outbound_email:templates]
I want to be able to incorporate values from the Send Email Function script and from Playbook Activation Form Inputs, in addition to accessing Incident fields/notes/data tables.
I know that I can do this with the first approach, embedding as a string, by using the .FORMAT() method for string substitution in the Send Email Function script.
My question is: is there a way to get values from the Send Email Function script and from the Playbook Activation Form Inputs with the 2nd setup, when JINJA templates are stored in the container and defined in the APP.CONFIG?
Thanks in advance,
------------------------------
ken ching
------------------------------