Skip to main content
Solved

How to create an Automation App with Geometry Parameters and a Download URL


joy
Enthusiast
Forum|alt.badge.img+15
  • Enthusiast

Hello everyone,

I have some experience with Workspace apps, but not as much with Automation apps. In my previous work with Workspace apps, I created an app that is based on user input on a map. When a user clicks on the Run button, the "Running..." button appears. Once the script finishes successfully, the user can download a ZIP file by clicking on the Datadownload URL.

Now, I’m trying to build something similar using an Automation app, but I’ve found the process to be quite different.

Based on the following post, I’ve set up the following:

  • I have a manual trigger that includes a manual parameter called "Geometry" (GEOM).

  • This GEOM parameter is then used in the subsequent Workspace.

Similar to the Workspace app, I want to show a "Running..." button while the script is running, and once it finishes, makes a download URL available to the user. However, the only feedback to the user is the green "Automation Triggered." message.

There’s no further feedback for the user, that the script is running and the download URL is not shown—even though I made the Data Download available in the “Service” during publishing.

How can I make the download URL accessible in the Automation app and provide feedback to the user while the script is running?

 

Best answer by j.botterill

You can use the Flow REST api with a httpcaller after the Feature Writer that has the Data Download service published. You need the endpoint http://server/fmerest/v3/transformations/jobs/id/<id>/result shoud also give you the 'resultDatasetDownloadUrl'.

Alternative at the last step of publishing a workspace on that Data Download service, go to  Edit > Notify on Job Complete and set existing or a new TOPIC . Then an Automation in flow with a “Topic trigger” set to that topic. Each time the data download service runs, the trigger in the automation can be parse into another Run workspace which handles the JSON topic response and call the endpoint based on the job id to get the resultDataSetDownloadURL and send it via an emailer.

View original
Did this help you find an answer to your question?

3 replies

hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • June 4, 2025

I seem to recall a similar question being asked previously, and unfortunately there was no direct resolution - I can’t find the thread in question but i’ll keep looking!

One work around would be to request a users email address, then email them the link to download the result


joy
Enthusiast
Forum|alt.badge.img+15
  • Author
  • Enthusiast
  • June 5, 2025

@hkingsbury I would like to try out that method by sending the download link via mail. I now managed to use an emailer with the files included  as attachment, but my current solution is not ideal, since there is a limit size for the files that can be send via mail.
I tried generating a download url based on post /resources/connections/{resource}/directdownloadurl/{path} in  FMEFlow Rest API V3, but i get http error 415
Do you know which steps I can take to generate a download URL?


j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • Best Answer
  • June 6, 2025

You can use the Flow REST api with a httpcaller after the Feature Writer that has the Data Download service published. You need the endpoint http://server/fmerest/v3/transformations/jobs/id/<id>/result shoud also give you the 'resultDatasetDownloadUrl'.

Alternative at the last step of publishing a workspace on that Data Download service, go to  Edit > Notify on Job Complete and set existing or a new TOPIC . Then an Automation in flow with a “Topic trigger” set to that topic. Each time the data download service runs, the trigger in the automation can be parse into another Run workspace which handles the JSON topic response and call the endpoint based on the job id to get the resultDataSetDownloadURL and send it via an emailer.


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