question

JianyingHuang-9069 avatar image
0 Votes"
JianyingHuang-9069 asked JianyingHuang-9069 answered

Run job only once

Hi,

In Logic Apps, there are couple of HTTP triggers
(1) HTTP - has to provide recurrence, i.e. how often to call
(2) When a HTTP request is received - Request

How can I create a "HTTP get - process" flow and make it run only once? Azure doc has an example that uses (2) which auto-generates a callback URL. How can I use a fixed URL instead of a generated one?

Thank you,
Jianying

azure-logic-apps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT commented

Hi @JianyingHuang-9069

Welcome to Microsoft Q&A! Thanks for posting the question.

There are two connectors i.e. Native Request/Response that has trigger "When a HTTP request is received" and another Native HTTP connector that have different action and trigger.

To answer your query, you can not make the Native HTTP connector "HTTP" trigger to run once as there is an Interval field that is required which monitor a service endpoint for your website by checking that endpoint on a specific schedule.

For the "When a HTTP request is received" you cannot auto-generate the logic app callback URL as this is auto-populated from the logic app end once you save your workflow.

Hope this clears things up. Feel free to get back to me if you have any queries/concerns.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Since both have limitations, any other ways that I can achieve run job once?

0 Votes 0 ·

@JianyingHuang-9069 You can leverage Scheduler: Run once jobs template if this is something that can help you with your scenario.
Note: The template still uses "When a HTTP request is received" trigger while will still have auto-populated callback URL along with other actions.

0 Votes 0 ·

The problem with that is
1) the generated URL is subscription/pod/deployment specific. If we deploy this Logic Apps to different pod, we would get different callback URL, isn't it?
2) how can we expose this endpoint so it can be used by end user?

0 Votes 0 ·
Show more comments
JianyingHuang-9069 avatar image
0 Votes"
JianyingHuang-9069 answered

We want to provide a microservice so user can create their own webjobs (pull data from a data source) using a scheduler and allow ad-hoc run as well. I am thinking to create a nested HTTP logic apps which can be 1) called by the scheduler type of logic apps (registered at runtime) as well as 2) kicked off for ad-hoc. If we can use fixed URL, we could reference it directly

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.