Unable to Update Image in DOCX File Using "FortiSOAR MS Word Report Templating" Integration
- September 29, 2024
- 4 replies
- 1488 views
Dear Community,
I am trying to update an image in a DOCX file using the "FortiSOAR MS Word Report Templating" integration, but I am unable to update the image. I have attached the playbook and a reference link for your review.
Use Case:
I need to take a manual input of an image from an analyst and update the image in the DOCX file as evidence, then send this file to the relevant recipients. To meet this requirement, I created a sample DOCX file and attached it in FortiSOAR attachment module. Then developed a playbook that finds the attachment using the "Find Record" action, retrieves the image input from the analyst, and creates this image in the /temp/ directory using Python code. After creating the image, we update it in the DOCX file using the "FortiSOAR MS Word Report Templating" integration, then we sent the email to the relevant recipient and deleted the image from /tmp/.
Reference link: https://docxtpl.readthedocs.io/en/latest/
If anyone has a solution to this problem, please let me know.
Thanks.
