Forum Discussion
Berty
9 years agoFrequent 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 wil...
Mexicoder
8 years agoFrequent 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.