web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to update Content ...
Power Apps
Unanswered

How to update Content Type for a new item created from PowerApps Form

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

 

I have a SharePoint list with multiple content types. The list has a PowerApps form, and I have a collection that contains all values of the content types. I have a dropdown in the form that allows users to select the content type, which is then used in the form for column visibility.

 

How do I update the content type in the list with the selected one, currently it takes the default content type that's been set in the list? I've tried using a Patch function with LastSubmit and Defaults, but it updates the SharePoint item with no value (I can see a new version, but no update).

 

Content Type Collection in PowerApps

ClearCollect(ContentTypes, {Id:"0x01001D0D916AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX3FC8F50AB5FAA17", ContentTypeName:{Value:"Name"}, Name:"ContentTypeName"})

 

 

Content Type Dropdown - OnChange property:

 

Set(SelectedContentType, First(Self.SelectedItems))

 

 

Patch function I used:

 

Patch(

LISTNAME,

SharePointForm1.LastSubmit,

{

'Content type': SelectedContentType

}

)

 

 

There is nothing in the Default property or DefaultSelectedItems for the content type dropdown.


Please help me with this.

Thanks in advance!
Divya

 

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard