Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17878

Batch add rows via Logic App Connector?

$
0
0

Hey Guys.  I currently am trying to create a logic app that pushes ~50 items every 10 seconds into PowerBi via the logic app connector.  Due to the connectors limitations ill constantly hit the cap very quickly.  Looking at the Connector information there seems to be a "code only" optional parameter called "Payload" that I can use rather than the single row form that automatically displays.


However, in logic app's code designer I have tried setting Payload as an object variable, so its output would match your REST API call:

"Payload" : 
{
  "rows": 
            [ 
                {"ProductID":1,"Name":"Adjustable Race","Category":"Components","IsCompete":true,"ManufacturedOn":"07/30/2014"}, 
                {"ProductID":2,"Name":"LL Crankarm","Category":"Components","IsCompete":true,"ManufacturedOn":"07/30/2014"}, 
                {"ProductID":3,"Name":"HL Mountain Frame - Silver","Category":"Bikes","IsCompete":true,"ManufacturedOn":"07/30/2014"} 
            ] 
}


  As well as modify the variable to that of an array, so the connector's output would look like this:

"Payload": [ 
{"ProductID":1,"Name":"Adjustable Race","Category":"Components","IsCompete":true,"ManufacturedOn":"07/30/2014"}, 
{"ProductID":2,"Name":"LL Crankarm","Category":"Components","IsCompete":true,"ManufacturedOn":"07/30/2014"}, 
{"ProductID":3,"Name":"HL Mountain Frame - Silver","Category":"Bikes","IsCompete":true,"ManufacturedOn":"07/30/2014"} 
]

However both variations do not work.  As this functionality has been in Power BI's REST API for awhile, on top of the fact that the url string in the logic app connector itself goes to the same url as your REST API I can't imagine this cannot be done? 


Viewing all articles
Browse latest Browse all 17878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>