The trigger is an incoming IMAP email with potentially more than one attachment. I wasn’t able to use the “Send Event As JSON” option because the email body is being delivered as HTML which fouls up the JSON parser in FME Flow. So I’m sending individual components of the email to a workbench
+From:{email.from}+Subject:{email.subject}+Sent:{email.sent}+BodyType:{email.contentType}+Attachments:{email.attachments}+Body:{email.body}
I’m splitting up the individual sections of the delivered data in the workbench using StringSearchers with Regex. I wind up with a string with the location that email attachments have been saved to in Flow, which is something like this:
$(FME_SHAREDRESOURCE_TEMP)20250121124721-IMAP_Email_Testing-FW_Attachment_test-98e024d4-2316-4cd5-9905-1eb756d02a09
I’ve been struggling with what to do with this string in order to access the attachments to save them somewhere on the network. The ultimate goal is to have the inbound email trigger a workbench that automatically creates a Work Order in our asset management system (Cityworks), saves some of the email content in the Comments section of the Work Order, and attaches to the Work Order any files that were included as attachments to the email.
I’ve been able to sort out all of those steps except how to access the attachments and save them to the network. Screenshot below of workbench thus far.
Thanks in advance for any guidance.
