I'm trying to create a PowerAutomate flow that creates and assigns a unique prefixed ID to a custom document set content type when that document set is created in a SharePoint library. It initially worked but then I realised, it would assign this special prefixed ID to every document added to the document set (which I don't want - only the document set should have this prefixed ID).
So I've updated the flow to now have an "And" condition, so that only when the custom document set content type is created, the prefixed ID is assigned. The flow "runs successfully", but doesn't actually assign the prefixed ID in the end. I can't seem to see what is wrong (and Copilot doesn't help either). And I'm confident that the ContentTypeID value is correct and there are no extra spaces, etc. (third image).