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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kalemstorm
Regular Visitor

Push data to dataset from Javascript/Typescript

Hello!

I've created a dashboard and a streaming dataset on https://app.powerbi.com/.  When I try to push data from C#/Python to that dataset it works perfectly, but if I try to use Typescript, it keeps giving me the 404 NOT FOUND, on the same streaming dataset push URL.

 

 public sendPowerBi(url: string, data: any) {

      return this.http
        .put(url, JSON.stringify(data), { headers: this.headers }).subscribe();
    }

where

this.headers = new Headers({
      'Content-Type': 'application/json',
    });

Here I don't have an access token.  Can you please give me a suggestion?

5 REPLIES 5
Kalemstorm
Regular Visitor

Hello!

I've created a dashboard and a streaming dataset on https://app.powerbi.com/.  When I try to push data from C#/Python to that dataset it works perfectly, but if I try to use Typescript, it keeps giving me the 404 NOT FOUND, on the same streaming dataset push URL.

 

public sendPowerBi(url: string, data: any) {

      return this.http
        .put(url, JSON.stringify(data), { headers: this.headers }).subscribe();
    }

where

this.headers = new Headers({
      'Content-Type': 'application/json',
    });

Here I don't have an access token.  Can you please give me a suggestion?

Hi @Kalemstorm,

 

Could you try using POST requests instead of PUT to push your data to Power BI streaming data dataset you created to see if it works? Smiley Happy

public sendPowerBi(url: string, data: any) {

      return this.http
        .post(url, JSON.stringify(data), { headers: this.headers }).subscribe();
    }

Regards

I've already tried that. Actually, I've tried it before PUT and I've asked the question only after...

Salfii
Advocate IV
Advocate IV

Hey @Kalemstorm,

 

you should possibly move this to the "Developer" Forum, not "Desktop".

Thank you! I've asked the question there

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.