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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to refresh Web Contents using Power Query without the Query parameter in header?

Hi Team, I am currently working on Tempo Timesheet API integrated with JIRA. I am successfully able to refresh Time sheet data in Power BI cloud extracted from Tempo worklogs using the below Query. let Source = Json.Document(Web.Contents("https://api.tempo.io", [Headers=[Authorization="Bearer xxxxxxxxxxxxxxx"],RelativePath="rest-legacy/tempo-timesheets/3/worklogs", Query=[projectKey = "HSI",diffOnly="true",addApprovalStatus="true"]])) in Source My next requirement is to create relationship between Tempo Teams Table and worklogs Table. I am using the below API call to get the Teams Data but unable to schedule the same in Power BI cloud. Can you please suggest me the correct approach to create a schedule using the below API call. let Source = Json.Document(Web.Contents("https://api.tempo.io", [Headers=[Authorization="Bearer TXwZRhrKlBP2l85xDsDo7LCV6FlVsD"],RelativePath="/rest-legacy/tempo-teams/2/team/34/member"])) in Source Many Thanks, Arjun
2 REPLIES 2
blopez11
Resident Rockstar
Resident Rockstar

Can you provide a screenshot of the error you are seeing when refreshing in the service? Would it be possible to post the M code for each of your queries, you can anonymize any data deemed private Thanks,

Maybe this article contains the solution: https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power...

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors