-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DIsplayHtmlWithImages: added the dynamic section script #26945
DIsplayHtmlWithImages: added the dynamic section script #26945
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
…pe/CRTX-81882/Add_dynamic_section_for_html_images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see comment for now. I'm running a few more tests
email_cc = custom_fields.get('emailcc') | ||
email_to = custom_fields.get('emailto') | ||
email_subject = custom_fields.get('emailsubject') | ||
email_html = custom_fields.get('renderedhtmll', '') or \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix renderedhtmll
to be renderedhtml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that if all fields are empty it's showing some data. It should be empty instead:
Also when Rendered HTML was empty and Email HTML had data, the dynamic section showed all the "None" values and only then displayed the data that it was supposed to display:
Other than this it looked fine in my tests, great job
…pe/CRTX-81882/Add_dynamic_section_for_html_images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Related Issues
fixes: https://jira-hq.paloaltonetworks.local/browse/CRTX-81822
Description
Added a new dynamic-section script in order to display HTML with image reference as
cid:image_id
Screenshots
Minimum version of Cortex XSOAR