Convert A Macro To A Subroutine Needs Finder Selection

Appreciated.

I learnt something new. It is gone!

Appreciated.

I will check but it is my understanding that one uses double underscores for variables that appear in Prompt For Input actions so that the "Local" does not appear. I will re-read the WiKi to make sure this is correct and adjust accordingly.

Agreed, I feel I am there! No doubt! Really just trying to learn the finer points.

I accept the challenge which I understand to be to trigger the macro via the URL trigger.

Stay tuned!

That used to be the case, but KM's got a lot smarter in parsing out scope and name for "Prompt for User Input":

So pick whichever you like but stay with that format wherever possible because:

  1. You've enough to think about without remembering whether to use none, one, or two underscores in a particular Variable name
  2. Staying consistent lets you automate things easily. Here's my "variables" text expansion:

KM Variable.kmmacros (5.7 KB)

Image

Ahhh, the WiKi must not have been updated because U certainly did not di that without reading it somewhere.

Question -- and I know I can test this -- but I am super curious and need to jump on a Teams call, does one still need the "__" when using Prompt With List to separate what is displayed in the dropdown box and what is acted upon?

Super cool, smart and foolproof!

Yes.

Stripping scope labels for a "pretty Prompt" only has to worry about a limited set of reserved words -- "Global", "Instance", and so on -- whereas the number of values possible in a value__friendlyLabel formatted is list is pretty much infinite so a defined structure is required.

Ahh, makes perfect sense!

Thank you.