This seems so basic yet I cannot work it out for the life of me! So who better to turn to than my lovely community friends?
I have a document library, with document sets, each with documents inside. I have a review workflow that simply asks for review of a document. In the email I want to reference the Document Set name and a link to the document set. I cannot see how to do this. Can anyone help?
We previously did some work for a client that addressed this, but I no longer have access. IIRC, I think we had to some work to pull the item's URL, parse it, and then query SP to find the corresponding item based on the URL. I'll see if I can mock up an example.
yes, that's what I did once. I hated it. You have to trim/substring/regex the life out of it. there are a few shortcuts though, you can trim out the beginning of the url up to the list name because the workflow has context of the list name and relative URL. Get those out of the way and assume the next words up to the next / is the document set/folder name.
Or, you can simply add the name of the document set, or its url as a metadata value that you share down to its documents. Then you simply query that field on the document.