I came across an interesting (and unexpected) challenge today and thought I would share my solution in case there are others out there who may be facing a similar set of requirements.
The Business Scenario
We have a document library with Document Sets enabled and there is a WF that runs on each Doc Set. At a certain point in the WF there is a requirement to find all documents inside the doc set that are a certain content type and create a new PDF document in the Doc Set.
Turns out, it was not as straightforward as I was thinking it would be. Allow me to explain…