Obsidian Sync and Shortcuts advice needed

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

I am using Obsidioan Sync and my vault – let’s call it My Vault – syncs to a remote vault on my MacBook eg My Vault Remote MPB and one which my iPhone accesses called My Vault Remote.
THis arrangement works well – I think it was what I was instructed to do when I set up Obsidian Sync, but feel free to comment.
I am trying to construct a Shortcut to work with the Advanced URL plugin and save a selection to my Obsidian Daily Note.
The shortcut runs and seems OK but nothing appears on my Daily Note.
My immediate question is: Do I make the vault name in the Shortcut script the actual vault eg My%20Vault – or do I set it to the remote that the device saves to eg My%20Vault%20Remote?
In which case the shortcut will only work on one device.
I have tried the variants in the script and none of them work.

Things I have tried

Use the name of the vault on the local device, not the name of the remote vault on Obsidian’s servers.

You can probably use an if-then action to set the URL depending on which device the shortcut is being run on.

I name each vault identically on every device.

I think your terms here are confused, which makes it hard to understand your setup. A “remote vault” only exists on Obsidian’s servers, acting as a sort of post office between local vaults. A “local vault” is a vault on any of your devices. You interact directly with local vaults. You don’t interact directly with remote vaults; Sync sends/receives changes to/from them, and that’s it. (I don’t want to sound pedantic; this is just a case where using the right words makes it much easier to communicate. It also helps prevent setup errors, tho if Sync is working as expected then you probably set it up correctly.)

CawlinTeffid has the key point: the Advanced URI needs the local vault name on the device running the shortcut. One extra thing to check is encoding and the daily-note path separately. Try a very small URL first, for example opening a known note by , before adding append text/date logic. If that works on the Mac but not iPhone, make the local vault names identical on both devices; that avoids needing device-specific Shortcut branches.

I have been confused. Thank you for this clarity.