Hello,
I‘ve been using the workflow from here: http://www.wapshere.com/missmiis/generate-unique-attribute-activity to generate unique accountName. Everything seems to work, except, it‘s not using one thread. That is – while for the first user it is calling the enumerateResourceActivity, then for the second user it starts another workflow (even if for the first user workflow is not finished). And when for the second user the search for unique values is made in the portal, the changes for the first one (generated unique accountName) may still not be submitted, so the same accountName will be generated for the second user.
What changes should I make to the workflow to force to start the workflow for the next user only when the workflow is finished for the current one?
I've tried to put the whole workflow in synchronizationScopeActivity, but after changes my workflow is not loaded at all.