Skip to main content
Solved

Webhooks and Data Streaming

  • December 9, 2025
  • 4 replies
  • 40 views

pkno
Contributor
Forum|alt.badge.img+5

Hello everyone,

I am trying to create a FME Flow workspace which can be triggered via webhook and want to pass the result back to the initiating application for the user to download.

 

The plan is more or less like this: 

In a webmap application, the user can create a bounding box. In the background the FME Flow workspace is triggered which then sends some HTTP-Requests to an OGC API, gets an xml response and parses that response into a more user friendly GeoPackage. That GeoPackage is then provided to the user via download. 

 

Now that process already works partway. I managed to trigger the workspace via webhook and create the GeoPackage according to the parameters provided in the webhook message/body but I am struggling on how to now pass on the created file to the user/back to the webmap.

The data is created within the shared_resources folders where I can access it but I cant seem to find any way akin to the data download or data streaming options that would work using webhooks. 

Any help?   

Best answer by david_r

Webhooks are primarily used as very simple triggers, and I don’t think you can add anything to the reply returned by FME, it will only reply with an http status code, e.g. “200 OK”

https://support.safe.com/hc/en-us/articles/25407742962189-Working-with-FME-and-Webhooks

https://docs.safe.com/fme/html/FME-Flow/WebUI/Automations-Triggers/Trigger-Webhook.htm

A fairly common pattern, however, is to provide your own webhook service for the webmap. When you trigger the FME webhook, you include a URL to the webmap webhook, which FME can trigger when the download is ready, including the download URL.

4 replies

david_r
Celebrity
  • Best Answer
  • December 9, 2025

Webhooks are primarily used as very simple triggers, and I don’t think you can add anything to the reply returned by FME, it will only reply with an http status code, e.g. “200 OK”

https://support.safe.com/hc/en-us/articles/25407742962189-Working-with-FME-and-Webhooks

https://docs.safe.com/fme/html/FME-Flow/WebUI/Automations-Triggers/Trigger-Webhook.htm

A fairly common pattern, however, is to provide your own webhook service for the webmap. When you trigger the FME webhook, you include a URL to the webmap webhook, which FME can trigger when the download is ready, including the download URL.


birgit
Influencer
Forum|alt.badge.img+24
  • Influencer
  • December 9, 2025

I don't really know if this is possible since I think the webmap application(if we are talking about esri) also doesn't have any real standard interface to receive a custom answer from Flow back so I think you will always need to build some sort of custom widget if you want the result link in the webmap. Another option if you are using ArcGIS webmaps and the users are all logged in is to see if you can send the user email to Flow and have Flow mail the user directly. This is the solution I generally use though I have also used datastreaming service sporadically too but it is way harder.


pkno
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • December 9, 2025

Thanks for the quick replies. The web app won’t be based on esri and the functionality I descriped above will be build specifically for our use case. Since I am the one working with FME on our side, I will have to provide the information needed for programming. So what kind of input FME Flow needs (webhook trigger already seems to work) and what kind of output FME Flow delivers (this is where I am struggling).


pkno
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • December 9, 2025

A fairly common pattern, however, is to provide your own webhook service for the webmap. When you trigger the FME webhook, you include a URL to the webmap webhook, which FME can trigger when the download is ready, including the download URL.

 

I think this might be it.