My logic app has an HTTP trigger. Whenever I run the logic app manually or just copy and paste the URL on the browser it works as expected. However, when I use my QueueTriggered azure function to make a call to the logic app URL, the logic app just skips the send email action.
Loggic app design (shows skipped actions)
Here is the code I have for my function app:
public static async Task Run([QueueTrigger("messages", Connection = "ConnectionString")]string myQueueItem, ILogger log)
{
var httpClient = HttpClientFactory.Create();
var url = "logicAppUri";
await httpClient.GetAsync(url);
}
The content of the message is just a plain string like "test" for example.
I also tried changing the function app trigger to "When there are messages in the queue" but that also did not work.
"When there are messages in the queue" trigger
I got the same error message from Azure in both cases.
{"code":"ActionConditionFailed","message":"The execution of template action 'Send_email_(V2)' is skipped: there are no items to repeat."}
Which it doesn't make sense since there were messages in the queue.
Any idea why that's happening?
async void
useasync Task
. Consider adding some logging perhaps an error is being thrown – pinkfloydx33