Hookay. So I've just about exhausted my brain trying to figure this one out on my own and I've searched around a bunch and can't seem to find anyone trying to do something similar. So I bring this one to you.
I have a solution I'm building that starts with a document library at a site collection. A project manager creates a docset which holds project documentation and, at some point, indicates on this docset that there are work area impacts. For my purposes, I decided to use a managed metadata field called Impacts (but I could use a regular multiselect or anything else, honestly).
What I want to do is have a workflow that runs when those MM terms are added that goes to an already created subsite matching the MM term and builds a document set for the work stream in a document library in the subsite. This works awesome if there's only a single impacted workstream. But multiple? Yeah, I just can't figure this out. I know this involves looping over the selections, but I can't for the life of me figure out how one would pull that MM field and count the number of entries.
Thanks, in advance, for your help.