Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi all,
I try to get list of headers, but there are only 5 of them in response. I need to get all. For example, "Link" should be used to retrieve the next page of results.
Anyone would have a tip to get all headers?
let
// Define the headers
headers = [
#"Content-Type" = "application/json",
#"X-Shopify-Access-Token" = "{password}"
],
// Original API request code generated by Power Query
source = Web.Contents("https://{shop}.myshopify.com/admin/api/2023-04/products.json?limit=250", [Headers=headers]),
// Retrieve response headers
responseHeaders = Value.Metadata(source),
// Retrieve response headers
Headers = responseHeaders[Headers]
in
Headers
Postman:
Power Query:
Many thanks in advance!
The only way to get all headers (as opposed to a subset) is to use a custom connector.
Upvote suggestion to get all headers back here: https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=e47d7520-1509-ed11-b5cf-281878de6c19
What's in the rest of the API response? If you need Link to control paging then the API will return that somewhere.
Phil
Proud to be a Super User!
I've noticed that the link is only in Response header.
I want to make sure that I can't get all headers in Power Query.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 6 | |
| 5 |