web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Flow to...
Power Automate
Unanswered

Power Automate Flow to Handle Emails via API

(0) ShareShare
ReportReport
Posted on by 171

Hello Power Automate Community,

I'm currently working on a project that involves creating a Flow to automate an email categorization and distribution process. I'm  new to Power Automate with APIs, so I'm hoping to find some guidance here.

The task at hand involves picking up categorized emails from an API and sending them to the corresponding Managers based on the category.

The main area where I need help is with the API integration, specifically setting up the HTTP request and handling the response. I understand that the specifics of the API will influence the setup, but at this point, I'm primarily looking for general guidance or best practices to get started.

For instance,
how do I appropriately set up the HTTP request within Power Automate?
How should I handle and parse the response to extract necessary data like the email content and category?
If the API returns multiple emails, how should I loop through them in the Flow?

If anyone could provide some advice, tips, or point me towards useful resources for handling such a scenario, I would greatly appreciate it. Any information would be helpful and would go a long way in helping me learn.

Thank you for your time and help!

Cheers 
Angela
@RezaDorrani @ALIREZAALIABADI 

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at
    Re: Power Automate Flow to Handle Emails via API

    Hi @Poma1 

    Basically you need the following:

    1) Use HTTP action to query the API:

    1.1) You need to know the exact URL and some parameters you may need.

    1.1) You might need to add some security information (cliend id and client secret, for example)

    2) Probably the results will be in JSON, so you need to parse them

    3) Just before parsing the results, you should check the status of the HTTP call (200 means OK).

    4) Once you parse the JSON results, you will have the information (list of emails in your case). You can loop through all the emails using an apply to each action.

    I would recommend reading the following article: How to use an API with Power Automate - Forward Forever

    Hope that helps!

    Ferran

    5) In you 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard