Doc ID Bulk Replace in Automations

Dear Mimoans,

When a document is saved the id changes eg.

The automations then don’t work because their path is the old doc id eg.

I have to manually change all of these. Is there a way of using a variable of the doc id in the automations path so that whenever doc id changes we can bulk replace all these paths.

Perhaps I am missing something obvious!
All the best

Unfortunately it’s not obvious, but you can put in the layer ID only in the layerON() function call without the /api/va1/document-part:


If you want to switch on a certain layer variant, you can write it this way:


I hope this helps!