Feb 04 2022 11:35 AM - edited Feb 04 2022 03:46 PM
Since grouping by 'Content Type' is apparently not supported, I'm creating a 'work around' Flow on a list to update a simple text field 'ContentType' with the 'Content Type name".
Setting it to fire on new records is easy using modified=created, however, using the technique "Get changes for an item or a file (properties only)" doesn't seem to provide the column in a condition "Has Columns Changed:.........". All other fields are there EXCEPT "Content Type name", "Content Type Id" etc.
So Content Types are a big thing in SharePoint, but you can't group on them and you can't tell using standard techniques if it's changed or not.
Am I missing something? Is there some other technique my research has not revealed?
So I ran the flow and because I can't insert the clause in the flow that checks if Has Changed: "Content Type name" the flow keeps looping and looping.
Thanks
May 26 2022 05:42 PM
@Carl_Williams If by grouping, you mean in the modern Content Type Gallery page, this is now possible from the Category column header:
If you don't want to have to do that every time, just save the View (like in a SharePoint list):
May 26 2022 05:51 PM
May 26 2022 06:21 PM
@Carl_Williams Ah, ok. I thought you wanted to group the Content Type definitions in the Gallery, or that you wanted to group items/documents by Content Type in a View, which is also possible:
I thought that the reason you wanted to trigger on the Content Type changing was so that you could populate a custom column with the value of Content Type so that you could group on it.
I'd be interested to hear your work-around, since I can't think of a way to determine that it was the Content Type of the file/item that was changed...
May 26 2022 07:16 PM
@Jim Duncan Sure, I'll have to dig it up on my PC tomorrow hopefully.
May 27 2022 03:25 AM
@Carl_Williams If you are using SharePoint online modern experience, you can group list/library view by Content Type. Follow below steps:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
May 27 2022 08:01 AM
@ganeshsanap That's pretty much what I just said...
May 27 2022 11:57 AM
@ganeshsanap Thanks, Ganeshanap, however, it had nothing to do with modern lits at all, this is all purely in Power Automate BASED on a Content Type change in a list.
May 28 2022 01:21 PM
May 28 2022 01:38 PM
Hey thanks for the super helpful reply. I'm not sure how I missed that thread. I haven't quite mastered the search function on here. I think I'll pass with him this time around. If i want any further guideline we will contact you here https://techcommunity.microsoft.com/t5/sharepoint/has-lunchtime-changed-quot-content-type-name-quot-not-available/td-p/3118826