cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Retreive eTag Header in Invoke HTTP for AD action

I'm creating a Flow that creates a Task in Planner and then needs to add checkboxes to the task. Adding checkboxes isn't an available Flow action so I have to do this via Graph.

 

Part of the PATCH requires the If-Match header with the last eTag value, per https://docs.microsoft.com/en-us/graph/api/plannertaskdetails-update.

 

How do I get the current eTag value after creating the Task in Flow? My Flow consists of:

 

Manual input task

Create a task (Planner)

Get task details (Planner)

Invoke an HTTP Request (HTTP for AD) w/ PATCH to the previously created Planner task.

 

My assumption is I need to do another Invoke an HTTP Request action immediately prior to the PATCH using a GET, but how do I then filter for and store the eTag value?

When I use Graph Explorer, the format of the Response Headers is:

 

   cache-control: ...

   client-request-id: ...

   content-type: ...

   etag: ...

   request-id: ...

 

Using https://graph.microsoft.com/v1.0/planner/tasks/<taskid>/details?$select=etag yields an HTTP 400. But beyond that, how would I store that value for consumption in the subsequent Invoke HTTP Request action?

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @trevorseward ,

 

If you could use HTTP to get the specified response, you could try to refer to the following expression to get the contents of Headers output.

 

Image reference:

101.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-bacao-msft
Community Support
Community Support

 

Hi @trevorseward ,

 

If you could use HTTP to get the specified response, you could try to refer to the following expression to get the contents of Headers output.

 

Image reference:

101.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,949)