Created on 05-16-2018 11:10 PM - edited 08-18-2019 12:05 AM
I have a business case where the user wants to send a personalized email to a group of recipients and attach a PDF to the email.
I already had a working flow for him that took the list of emails and recipient names in a csv file, parsed those out row-by-row, converted to json, evaluated the json to assign values to attributes, and then send the email (see image), but I'm having trouble with the attachment part since the PDF isn't part of the flowfile.
Is there a way to pull the PDF into NiFi and assign the attributes needed from perhaps a map file or something? or replace the flowfile with the PDF and maintain the attributes? Once the attributes are assigned, I don't need the .csv data anymore.
Any help would be appreciated!
Created on 05-17-2018 12:59 AM - edited 08-18-2019 12:05 AM
Want to get a detailed solution you have to login/registered on the community
Register/LoginCreated on 05-17-2018 12:59 AM - edited 08-18-2019 12:05 AM
Want to get a detailed solution you have to login/registered on the community
Register/LoginCreated 05-17-2018 05:03 PM
Thank you! I knew there had to be simple answer - I used the first method and it worked great! Thanks again for your help.
Created 02-11-2021 10:00 PM
@Shu_ashu How to configure the flow if EvaluateJsonPath Processor flow have recipient mail id and FetchFile has the file path. I have configured as below but two mails are getting triggered. Could you help to modify the flow so that only one mail with attachment will trigger ?