Please help configuring email post function [IMPORTANT]

Issue #735 resolved
Natanael Aubert created an issue

Hi,

I am currently validating your add-ons, and I have a case.

I want to make a email containing custom field multi select checkbox named “document requirements” The “document requirements” have options: A, B, C, D, E.

If the selected options are A, C, and D, I want The email body is like this:

Document Requirement: A Yes B No C Yes D Yes E No

How to make this happen? Thanks.

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi @natanaelobet,

    You should use "Copy a parsed text to a field" post-function BEFORE "Send an email" post-function, in order to compose the HMTL for the table you want to include in your email and store it in field "Ephemeral string 1". Then you can use field code for "Ephemeral string 1" in your emails body.

    This is the configuration for "Copy a parsed text to a field" you should use:

    Captura de pantalla 2017-08-15 a las 11.56.37.png

    String expression is:

    "<table border='1'>" +
    toString(textOnStringList(availableItems(%{nnnnn}), "<tr><td width='50%'>" + ^% + "</td><td>" + (^% in %{nnnnn} ? "Yes" : "No") + "</td></tr>"), "") +
    "</table>"
    

    replacing nnnnn with field code for "Document requirements" custom field.

  2. Log in to comment