Skip to main content
Question

Outlook Pipeline

  • May 23, 2023
  • 0 replies
  • 19 views

Forum|alt.badge.img+4

We need to be able to send multiple documents, if they are attached or not.  I have this working, but if the middle document is blank, it will error out.   If the first two have attachments but the 3rd doesn't, it's fine.   Any thoughts?

Attachment Name:
{% if a.well_report_document.file_name is not none %}{{a.well_report_document.file_name}}{% endif %}
{% if a.mud_report_attachment.file_name is not none %}{{a.mud_report_attachment.file_name}}{% endif %}
{% if a.survey_attachment.file_name is not none %}{{a.survey_attachment.file_name}}{% endif %}
{% if a.additional_attachment.file_name is not none %}{{a.additional_attachment.file_name}}{% endif %}

URL:
{% if a.well_report_document.file_transfer_handle is not none %}{{a.well_report_document.file_transfer_handle}}{% endif %}
{% if a.mud_report_attachment.file_transfer_handle is not none %}{{a.mud_report_attachment.file_transfer_handle}}{% endif %}
{% if a.survey_attachment.file_transfer_handle is not none %}{{a.survey_attachment.file_transfer_handle}}{% endif %}
{% if a.additional_attachment.file_transfer_handle is not none %}{{a.additional_attachment.file_transfer_handle}}{% endif %}



------------------------------
Jeff Hughes
------------------------------
This topic has been closed for replies.