Sorry, Just saw this. But have you checked the version of your app to make sure that it is the most recent version? I have tested all of the templates and have got this working. I do plan on releasing a follow up video next week about template building using the Jinja files next week. Hopefully that will help?!
Original Message:
Sent: Wed October 18, 2023 03:54 PM
From: Nick B
Subject: Outbound Email inline template macros
Hey Nick, Thanks for your response.
So, I ended up doing exactly what you did in your notes template. Unfortunately, it throws a nonetype error (no attribute 'lower') which isn't present when using the other macros.
------------------------------
Nick B
Original Message:
Sent: Wed October 18, 2023 01:00 AM
From: Nick Mumaw
Subject: Outbound Email inline template macros
Sounds good. Started playing around again with the templates since you asked and I created a few more which include both Notes and Artifacts. It appears that there is capability to do dataTables too, but I am currently missing something on that. When I get that template created, I will upload it to the GitHub as well. But for now check out my templates here.
https://github.com/TheIRGurus/Playbooks/tree/main/Outbound%20Email%20Playbooks
------------------------------
Nick Mumaw, GPEN, GPYC
Cyber Security Specialist - SOAR
IBM - Security
Original Message:
Sent: Tue October 17, 2023 05:26 PM
From: Nick B
Subject: Outbound Email inline template macros
Thanks a lot for your help, Nick. Your videos are super helpful.
The template worked out great, looks like I just needed to add the macros and drop the .format portion at the end of the script. The only issue I'm running into now is incorporating the notes macro in the template.
------------------------------
Nick B
Original Message:
Sent: Tue October 10, 2023 12:03 AM
From: Nick Mumaw
Subject: Outbound Email inline template macros
I have created a new template that will work with inline. Check the link. If you want to customize the template at all, change lines between 328 and 350. This is where you will be able to add your own fields and such like John mentioned above.
Thanks!
------------------------------
Nick Mumaw, GPEN, GPYC
Cyber Security Specialist - SOAR
IBM - Security
Original Message:
Sent: Wed October 04, 2023 03:57 PM
From: Nick B
Subject: Outbound Email inline template macros
Hey Community,
I'm attempting to adopt @Nick Mumaw's example email template written in CSS/HTML. The primary issue I'm running into is rendering macros within the inline email template in a playbook.
For example, I want to generate the incident URL within the email template using the V2 function, however, SOAR is unable to interpret the following macro as suggested in the app's documentation.
{% set inc_url = template_helper.generate_incident_url(incident.id) %}
<a target='_blank' href='{ inc_url }'>{ incident.id }: { incident.name }</a>
Are macros not supported for HTML formats? No issues implementing these in a standard jinja format.
------------------------------
Nick B
------------------------------