Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
MichaelMM
Regular Visitor

Dynamic Data Source Error / RelativePath / Cursor Pagination / Headers

Hi, 

 

I need help updating my data source in the cloud.

The problem is that it is a dynamic data source with headers and Cursor pagination.
I have investigated the use of RelativePath but cannot get it to work on the following.
Can anyone help find the error or an alternative solution.

 

Some of the headings are in Danish but the coding is in English.

 

XXX is the token 

 

let
Kilde = List.Numbers(250000,160,1000),
#"Konverteret til tabel" = Table.FromList(Kilde, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Ændret type" = Table.TransformColumnTypes(#"Konverteret til tabel",{{"Column1", type text}}),
#"Tilføjet brugerdefineret" = Table.AddColumn(#"Ændret type", "Brugerdefineret", each Json.Document(Web.Contents("https://apis.e-conomic.com/bookedEntriesapi/v3.2.0/booked-entries?cursor="&[Column1], [Headers=[#"X-AppSecretToken"="XXX", #"X-AgreementGrantToken"="XXX"]]))),

 

4 REPLIES 4
v-nmadadi-msft
Community Support
Community Support

Hi @MichaelMM ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the suggestions  provided by the community members for the issue worked. Please feel free to contact us if you have any further questions.

 

Thanks and regards

v-nmadadi-msft
Community Support
Community Support

Hi @MichaelMM 

May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


Thank you

v-nmadadi-msft
Community Support
Community Support

Hi @MichaelMM 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.


Thank you.

OwenAuger
Super User
Super User

Hi @MichaelMM 

I tinkered around a bit and I was able to "Test connection" in the Power BI Service with this version of the query:

let
  Kilde = List.Numbers(250000, 160, 1000),
  #"Konverteret til tabel" = Table.FromList(Kilde, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
  #"Ændret type" = Table.TransformColumnTypes(#"Konverteret til tabel", {{"Column1", type text}}),
  #"Tilføjet brugerdefineret" = Table.AddColumn(
    #"Ændret type",
    "Brugerdefineret",
    each Json.Document(
      Web.Contents(
        "https://apis.e-conomic.com",
        [
          RelativePath = "bookedEntriesapi/v3.2.0/booked-entries",
          Query        = [cursor = [Column1]],
          Headers      = [#"X-AppSecretToken" = "XXX", #"X-AgreementGrantToken" = "XXX"]
        ]
      )
    )
  ),
//...

Does this work for you?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors