Power Automate Heros,
I'm a bit of a newbie at Power Automate and am trying to delete an MS Planner Plan using Graph and using the "Send an HTTP Request" in Office365 Groups. I've been through the documentation (which partially makes sense to me) but am unable to figure out the right syntax for the If-Match header. I'm also unsure if it's the planner id that goes in the If-Match header or something else.
Could someone please walk me through, step by step, how to configure this part of the flow?
Thank you.
Solved! Go to Solution.
Hi @karimabdelrazek,
You would need to retrieve the e-tag value. That is required in the If-Match header. You can use a GET request to retrieve the current e-tag value and use that in the DELETE request.
Below is an example how you could delete a plan
Properly test this. I have only tested it in my own dev.
CustomHeader1 value
If-Match: @{outputs('Send_an_HTTP_request')?['body']['@Odata.etag']}
Hi @karimabdelrazek,
You would need to retrieve the e-tag value. That is required in the If-Match header. You can use a GET request to retrieve the current e-tag value and use that in the DELETE request.
Below is an example how you could delete a plan
Properly test this. I have only tested it in my own dev.
CustomHeader1 value
If-Match: @{outputs('Send_an_HTTP_request')?['body']['@Odata.etag']}
@Expiscornovus . Thank you for your quick reply. It's not working at my end. I've tried rebuilding your formula in the expression editor and it's giving me an error that says "The expression is invalid". What am I missing?
It worked! My mistake was that I accidently chose the "Send an HTTP Request V2" instead of the regular "Send an HTTP Request". Thank you!
User | Count |
---|---|
27 | |
16 | |
15 | |
12 | |
11 |
User | Count |
---|---|
43 | |
30 | |
28 | |
24 | |
23 |