@bjagpal @jeiden @ScruffR
I’m looking for some help creating a webhook with Custom JSON data that will send data to Microsoft’s Power BI Streaming DataSet so it can be used in custom dashboards which also databases 200,000 data points in a FIFO style.
Microsoft Power BI has a REST API for pushing data into Streaming Datasets that update in real time and that is what I need help with getting set up right.
So in Microsoft Power BI’s web interface you can create Streaming Dataset’s quickly using the window shown in the screen shots below:

The link to the API Info you see in the screenshot above takes you here if you’re interested: https://go.microsoft.com/fwlink/?linkid=822594
Once you do that you end up with this page:
Here is the push URL if you want to try this out:
https://api.powerbi.com/beta/36d257ec-bec7-4daf-9c2b-dc77d8b6da0f/datasets/ce1d5cff-61ef-458f-b486-d5a5571981f7/rows?key=PSyMJSlHZ%2F%2B8zQlOz2UxNpE2jgE2DUVwftPDEJBBfc62vfZ3ZvhdbdCbK438PPlRCcBm3jtgWOS0WNCrm4%2Fi4Q%3D%3D
Now I created a webhook that looks like this and I think it’s correct.

Now when I hit the Test Button I get Error 500 as you can see in the screenshot below:
The Particle Console shows this when I hit the Test Webhook button:
After saying all that what I really want help with is writing the Particle.Publish function code so the Voltage and SOC data is properly injected and sent over to the Power BI Streaming Dataset.
I tried this code which I edited from the Particle Sparkfun Weathersheild code example.
I do not think the publish code is structured right and I need help with this:
void loop() {
delay(5000);
// Measure Relative Humidity from the HTU21D or Si7021
float v = 5.0;
// Measure Temperature from the HTU21D or Si7021
float soc = 100;
// Temperature is measured every time RH is requested.
// It is faster, therefore, to read it from previous RH
// measurement with getTemp() instead with readTemp()
char payload[255];
snprintf(payload, sizeof(payload), "{ \"v\":\"v\", \"s\":\"s\", }");
Particle.publish("SDT", payload, PRIVATE);
}