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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Specifying headers in ...
Power Apps
Answered

Specifying headers in Office365Groups HttpRequests

(0) ShareShare
ReportReport
Posted on by 149

Greetings:

 

The Graph APIs often allow you to set/get properties not available in a connector. In my case, the Planner API does not allow me to update a task priority whereas the Graph API does.  I'm sure that I can do this via a flow but I was hoping to do it directly in the app itself, using something like this:

 

 

 

Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/planner/tasks/" & Text(TaskListGallery_1.Selected.id_1),
 "PATCH",
 { "Content-Type": "application/json",
 "If-Match": "W/""JzEtV...snip...AQEBAQEBAQEBAQEBBaCc=""",
 "title":"This is my new title!",
 "priority":10
 }
)

 

 

 

Thsi PATCH request requires the If-Match header and I can't find documentation that shows me how to include headers in such a request. Also, the above code has a syntax error: " The formula contains 'Content-Type' whre 'Ident' is expected."  So, I have two questions:

  1.  What does the "'Ident' is expected" error mean?
  2. How do you include specialized headers in  formula like this?

Thanks!

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Baltner ,

     

    Please try to use powerapps to invoke flow to call the api.

    vxiaochenmsft_0-1677812711812.png

    This is a very simple way.

    If you want to call oob http action in powerapps directly, it will be tricky.

    For your reference:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Office365Groups-HttpRequest-Formula/td-p/1436902

     

    Best Regards,

    Wearsky

  • Baltner Profile Picture
    149 on at

    I was hoping to do it without a flow but punted on that and now have it working.  Thanks for guiding me in that direction.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard