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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / what are the latest ap...
Power Automate
Unanswered

what are the latest approaches to call Graph api inside our automated flows

(0) ShareShare
ReportReport
Posted on by 1,811 Super User 2024 Season 1

I want to initiate many api calls to graph api.. but not sure which connections we can use to do so, i find those 2 connections:-

 

1) Send HTTP Request, as follow:-

 

johnjohnPter_2-1708088457750.png

 

 

 

 

2) Invoke Http Request Preauthorized, as follow:-

 

johnjohnPter_1-1708088307290.png

 

 

 

so what are the differences between the 2 approaches? my main aim is to create a new Planner Plan , new Team Channel and show the Planner Plan as a tab inside the Team channel.. so which action best suites my needs and why?

 

Thanks

Categories:
I have the same question (0)
  • ivan_apps Profile Picture
    2,187 Moderator on at

    From what I understand the HTTP with Microsoft Entra ID is for requests that live within your Azure tenant, and are able to connect via the Entra ID. It will allow you to pass your user ID for authentication in a couple fewer connections/authorizations. You will still need an app registration with the necessary permissions.  Common things this is good for is connecting to GraphAPI.

    https://learn.microsoft.com/en-us/connectors/webcontents/

     

    The other HTTP request is basically to make a request to any other outside resources that may have an API that doesn't recognize Entra ID.  This can do the same things as the other one, but you will have to configure the App Registration as well as the initial authentication separately.  I believe the difference here is that for governance reasons, a tenant admin may want to block the generic HTTP connection so users can't exfiltrate data.  However if you're simply connecting to local resources in the Azure tenant, then they can allow the HTTP with Entra ID connector.

  • johnjohnPter Profile Picture
    1,811 Super User 2024 Season 1 on at

    @ivan_apps Thanks for the reply. but if we use the "HTTP with Microsoft Entra ID", then we do not have to register an app registration with the necessary permissions.. as you mentioned.. am i correct?

  • ivan_apps Profile Picture
    2,187 Moderator on at

    No, sorry if it was confusing - you will still need an app registration with the appropriate permissions in Entra ID. That's what will still allow you to specify specific access rights so you don't over-permission a user.

  • johnjohnPter Profile Picture
    1,811 Super User 2024 Season 1 on at

    @ivan_apps but i tested the Invoke Http request and i were able to create a test Planner Plan, without having to register an App on AD, i just login using the service account username/password, as follow:-

     

    johnjohnPter_0-1708093650810.png

     

     

    so do you mean the app registration will be done behind the scenes?

     

    Thanks

  • ivan_apps Profile Picture
    2,187 Moderator on at

    So with the preauthorized http action an app registration will be created behind the scenes and granted admin consent. Note that this has changed recently so the API permissions must be granted by an admin. Text below:

     

    With the existing connector, there is no need for administrators to explicitly grant consent for actions to be executed by the application on behalf of the user. However, we released a new version of this connector. The new version of the connector uses a new application without any preauthorization. This allows an administrator to grant discrete consent.”


    so you’re good for now if you can do it, but know that in the future it may require explicit consent on the App Registration before it starts working.

     

  • bwtwma Profile Picture
    25 on at

    The action doesn't work for me - would someone mind demoing how it is meant to be set up? The MSFT learn is useless.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard