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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Berty
Frequent Visitor

Adding rows to a table for powerbi embed using Nuget

For posting rows using Nuget (for powerbi embedded), what are the differences between the two parameters below, and what should I provide for them? An example for requestMessage and customHeaders will be helpful. Thanks 🙂 


requestMessage, type: Object

customHeaders, type: Dictionary<String, List<String>>

 

Documentation for posting rows can be found here:

https://docs.microsoft.com/en-us/dotnet/api/microsoft.powerbi.api.v1.idatasets.postrowswithhttpmessa...

3 REPLIES 3
Mexicoder
Frequent Visitor

as far as i know the requestMessage is the object used for the data you want to add.

the way i did this was took a newtonsoft JSON object and deserialized it to an object: (data being my JSON object)

object dataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<Object>(data.ToString());

 as for the customHeaders as far as i know its for adding to the header of the http request that the api will create. i think it can be used to add scope, roles and others configurations but I'm not 100% sure because the documentation is still very much lacking. Also note that its only optional.

 

Berty
Frequent Visitor

For the Power BI embedded REST API, how do I add rows to a table? 

Eric_Zhang
Microsoft Employee
Microsoft Employee

@Berty

AFAIK, there's no REST API to add rows for Power BI Embedded, you can submit your idea at Power BI Ideas and vote it up.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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