Hi,
I am trying to build a flow that updates certain excel files (dynamically called) using the Graph API, since the excel connector has issues and won't do batch updates to excel files nor dynamic addressed files.
However while i have figured out a way to access the files no problem, the issue i have is to dynamically build the "batch body content" for the HTTP request.
The issue is that i will have lets say 25+ rows in a batch and the GRAPH API expects the body to be for the update of the table in the file:
{
"values" : [
[a, b, c, ... <matching columns>],
[d, e, f, ... <matching columns>],
... and so on
]
}
I can't seem to build it properly using either a "String Variable" nor a "Array Variable" as the output would be wrong.
Aka if I use a "String" Variable i can get to the body to be:
{
"values" : [
"[a,b, c, ... <matching columns>],[d, e, f, ... <matching columns>],...]"
]
}
Thus not working as it has quotation around the string and thinks it is one value and failing on column count.
On an array i may be able to get closer, but still having the same issue with using strings as a array can't seem to do a object of type array with [].
{
"values" : [
"[a, b, c, ... <matching columns>]",
"[d, e, f, ... <matching columns>]",
... and so on
]
}
Thus while being able to see entries separately, it can't define the columns do to each entry being a string.
Anyone have any ideas?
S.