Forum Discussion
Has Changed: "Content Type name" Not Available?
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
9 Replies
- BrynBeaulieuCopper Contributor
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-https://gosloto.co/uk-49s-lunchtime-results/-changed-quot-content-type-name-quot-not-available/td-p/3118826
Carl_Williams If you are using SharePoint online modern experience, you can group list/library view by Content Type. Follow below steps:
- Show/Include "Content Type" field in your list/library view
- Click on "Content Type" column header or dropdown next to column header
- Select Group by Content Type option (Check below image)
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.
- Carl_WilliamsIron Contributor
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.
- Jim DuncanIron Contributor
ganeshsanap That's pretty much what I just said...
- Jim DuncanIron Contributor
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):
- Carl_WilliamsIron ContributorThanks Jim. No I'm specifically talking about checking if the content type was changed. Checking it using the "Has Changed" property in Power Automate. All fields are there except 'Cobtent Type'. 😕
I've figured out a 'workaround'. Surprise- Jim DuncanIron Contributor
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...