Send report mail with a generated document

0
I am trying to send a periodic email report with a document that I generate in the same microflow (pictured) where I send the email via template, it sends the emails, both periodic and with the template (created in the appropriate template generator), the only problem is that I can't attach the document to the email.I looked at all the documentation, but I can't apply it to my use case, as well as the other questions in the community.If someone could give us a correct interpretation I would be very grateful.
asked
2 answers
0

Hi,

In your email connector module there will be microflows to attach documents in pdf

i have highlighted the microflow set attachment , in which you have to pass email object and attachment list

image.png

answered
0

Riccardo,

It looks like you are using the Email Templates module.  If so, you can use microflow EmailTemplates.Sub_CreateAndSendEmail as an example of how to accomplish this.

 

In that microflow, you'll see these two Actions:

image.png

 

In order to create attachments, you'll pass a List of System.FileDoc (or a specialization) objects and the email to submicroflow Sub_CreateAttachments and then commit the returned list of Attachment objects.  

 

After doing that, you can call microflow IVK_SendEmail with the email object.

 

If you prefer to do this without using the microflows from the EmailTemplates module, make sure you create a list of EmailTemplate.Attachment objects and pass them into the SendEmailMessage microflow.

 

Hope that helps,

Mike

answered