Skip to main content
Question

Provide specific response body to Webhook POST from 3rd party app


mpittinger
Contributor
Forum|alt.badge.img+4

Hello everyone-

Hoping that someone may be able to help with this question!

Is there a way to provide a specific required JSON Response body (for example:  {“status”:”OPERATION_OK}  ) to a 3rd party application in response to a successful post to an FME Flow Automation with a Webhook trigger?

 

I feel like I’m missing something obvious here….

Any help would be greatly appreciated!

Mike

4 replies

hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • March 17, 2024

I don’t think you can customise the Automations to that extent (although I haven't used them much so I might be wrong).

What you could do is instead of calling the Automation, call a workbenchs that is setup:

  • As a streaming service, with a textwriter writing the appropriate JSON
  • To call/trigger the automation

It does add an extra link in the chain, but may be the only way to achieve what you’re after….

 


mpittinger
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 22, 2024

Thanks for the feedback!  Not wanting to impose, but could you provide a basic schematic of what the workbench might look like?


siennaatsafe
Safer
Forum|alt.badge.img+10

Hi ​@mpittinger

I had to build a similar workflow for ArcGIS online. I’ll attach my workspace here. 

This workspace is trigged from a data streaming webhook.  See this article for details as well: https://support.safe.com/hc/en-us/articles/25407519445901-Submitting-a-Job-through-an-FME-Flow-Webhook-URL

Important notes:
 

  • This workflow needed a different response based on a GET or POST method. You can delete the TestFilter if that’s not needed.
  • I used a Text Writer to send the JSON back to the source. When publishing this workflow, make sure that this writer is registered to the data streaming service when published to Flow. 
  • I used the FMEFlowNotifier to send data to an automation. 

 


mpittinger
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • December 10, 2024

Thank you, so much for the feedback and help!  Sincerely appreciated!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings