We are trying to use FME Server/Desktop to achieve the following:
1. Intercept Survey123 submissions using webhooks - this works well.
2. Conditionally send an email containing submitted data - this works as well.
3. Include any photos attached to the survey submission - this part we can't get to work. Most submissions do not include photos. We are novices with FME.
Surely someone has had this requirement before. If so, can you please share your solution?
We faced the same challenge in a customer project. Here is what we did:
A Webhook payload itself doesn’t include the photos but the name (and in the latest version of Survey123) also the complete url to the referenced photos. That allows you to use other transformers in FME to fetch the photo (HTTPCaller or ImageFetcher). Going this direction you have to authorize against your Portal within FME first. This can be done by an additional HTTPCaller. To learn how this works you can download any ArcGISOnline transformer from FME Hub e.g. ArcGISOnlineWebhookDataGetter: https://hub.safe.com/?page=1&page_size=10&order=relevance&query=ArcGIS
Please feel free to contact firstname.lastname@example.org in case you need further support with FME.
As I mentioned, we are novices with FME. I have downloaded the ArcGISOnlineWebhookDataGetter transformer and opened in FME Desktop, and installed the custom transformer. Presumably I have to use the HTTP caller to get the authentication token from our portal first, then pass the token into the ArcGISOnlineWebhookDataGetter.