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
ldroguett
Frequent Visitor

Api Rest Method Post Problems with de automatic update in the power bi service.

Hi guys, i have this problems.

 

in power bi desktop, i no have problems , but in the power bi services yes, when I want to have a scheduled update.

 

So in Desktop, a have this api key method post..

 

 

Advance editor:

 

let
fechaI = Date.ToText(DateTime.Date(DateTime.LocalNow()),"yyyy-MM-dd'T'HH:mm:ss"),
fechaT = Replacer.ReplaceText(fechaI,"T00:00:00","T23:59:59"),
url = "https:/api-url.....",
body = "{""apiKey"":""apikey....."", ""inicio"":"""&fechaI&""", ""termino"":"""&fechaT&""", ""identificador"": null}",
Source = Json.Document(Web.Contents(url,[ Headers =[#"Content-Type"="application/json"], Content = Text.ToBinary(body)])),

in

Source

 

Then, power bi forces me to put these accesses..

Web -> Anonymous -> Public.

 

1.png

 

So far no problem. In the Desktop Version.

Then I publish it in my workspace to schedule an update. And have this problem.

 

 

2.png

3.png

 

So in Power BI Desktop 0 Problems, in Services Problems.

This is my GateWay.

 

4.png

 

Help!!!!!

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @ldroguett ,

 

Currently, the Personal gateway works fine, right?

 

How about to change the privacy from Public to None?

 

Could you please show us the error message in English language?

 

You may refer to thisr thread https://community.powerbi.com/t5/Desktop/Using-a-REST-API-as-a-data-source-POST-Method-Only/td-p/244... .

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

@v-xicai It has already changed from public to none and so with todod and gives me the same result.
My gateway is green.

 

I am afraid that I will not be able to send you the message in English.

Sin título.png

 

 

dds.png

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