Skip to main content

I would like to use Flow to send an email once a record is being added to a survey123-form in Arcgis Online. This email should contain the record fields and attachment (image file, 1 for every record). When using a webhook + workspace in Flow I am able to sent an email with the record fields using the emailer transformation.

However, I am not sure how to send the attachment (without placing it on the server first). I am not sure what I should fill out in the 'source file' field in the Emailer transformer.

I tried:

  • inserting the attachment url
  • first converting (with RasterExtractor) and then using the rasterblob.

Both send the items to rejected.

What should I fill out here?

Or is this not possible without first downloading the image?

Not sure if this can be done without downloading the attachment first.

How I do this:

  • TempPathNameCreator to create a folder in the temp files.
  • HTTPCaller to download the attachment to the temp path.
  • Emailer to mail the attachment.

Thanks. If I run the workbench in Flow, how should  use the HttpCaller?  I tried setting ImageFetcher > RasterExtractor (png) > TempPathNameCreator >  HttpCaller.

But what should I enter in the HttpCaller and which parameter should I enter in the Emailer?

I tried:

  • request Url: _pathname
  • HTTP Method: PUT
  • Upload Data: Upload from file
  • Upload File: _rasterBlob
  • Content Type: PNG (image/png)

Which results in rejected: error: HTTP/FTP Transfer: Failed to open file [blob] for resource upload

 


If you can use the ImageFetcher to download the attachment that will do.

TempPathNameCreator  → ImageFetcher → Emailer.

Use the generated path from the TempPathNameCreator in the ImageFetcher to save the file and use this path for the emailer as well.

If you struggle with setting up the TempPathNameCreator, try first to get it working using a local path and if it works, change to the path from the TempPathNameCreator.


To add a couple of options to streamline the download and temp storage of that attachment.

Avoid the HTTPCaller configuration by using the ESRI ArcGIS Connector package from FME Hub and its ArcGISAttachmentConnector transformer to download the attachments.

Consider also using your workspace Temp Resources folder in FME Flow as your temporary storage for the downloaded pictures. They get deleted every 24 hours.


Thanks both! I opted for a temppathnamecreator → arcgisattachmentconnector → emailer using this howto.