Efficient way to ask for a list to update using webhooks

GiladB

Member
I have a set of 2 macros, one set up on a few devices and the main macro set up on one device.
I have been using primarily variables but don't know how to pass an array and make it update.
I want to be able to update an array for all of the devices, so the first macro will ask for an update using a webhook that will trigger the main macro which will send the array using another webhook.

I love MacroDroid, thank you
 

GiladB

Member
You could use this action block to convert your array to string: https://www.macrodroidlink.com/macrostore?id=14909

Then send it, save it into string and use text manipulation > Split to array, and use the same separator/delimiter you used before.

Just avoid using some special characters like &, ? or + as separators.
Took me a few tries and playing around with preventing other things triggering all together, but I did it! Thank you very much! I left a star.
 
Last edited:

GiladB

Member
A variable constraint.
If (extracted string) contains : (text)
That's what I was doing. I hope I got it right now. Apparently, the problem was that I used the webhook without blocking next actions until complete and then cleared the extracted variable, essentially before the webhook sent the string. Thanks.
 

Endercraft

Moderator (& bug finder :D)
That's what I was doing. I hope I got it right now. Apparently, the problem was that I used the webhook without blocking next actions until complete and then cleared the extracted variable, essentially before the webhook sent the string. Thanks.
I don't think it should matter ? because the url is already constitued.
 
Top