Hello everyone,
I’m having some dificulties with the Glide API to set columns in multiple rows.
I’m working on a scenario that works as follow:
- I trigger a webhook from a glide app and send the selected items in Make
- Create a PDF including the items sent from Glide as a JSON Payload
- Edit the items in the glide tab with an HTTP module
I have some difficulties with step 3. If I have more than 1 item sent, only the first one is sent in my HTTM module and updated in my glide tab.
Here is an example of my JSON payload send in Make (2 items here) :
[{“Hours”:9.75,“Hourly_rate”:30,“Sent”:false,“Total”:292.5,“Task_title”:“Building Template”,“Project_name”:“OKR”,“id”:“VlRNOmHISlKM03Ww-ouQxw”}, {“Hours”:6.34,“Hourly_rate”:30,“Sent”:false,“Total”:190.2,“Task_title”:“Creating a desktop first template for the Agency.”,“Project_name”:“Real Estate Company”,“id”:“CGicV2ofRL-5GH1Mc4gZyg”}]
My items are defined by an ID, so I tried to “rearrange” the JSON payload to isolate the ids and find the corresponding items in glide but with no success.
The request in my HTTP module is as follow:
{
"appID": "nIbJG7XdNVN02TjSnsPF",
"mutations": [
{
"kind": "set-columns-in-row",
"tableName": "native-table-QPKijX8LgCShuqEeGsAN",
"columnValues": {
"5lvgu": {{true}},
"1gVag": "{{2.created_at}}",
"wYfmU": "{{5.webViewLink}}",
"lgjoN": {{false}}
},
"rowID": "{{26.id}}"
}
]
}
Thanks for the help!