cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
williamchau
New Member

Content Type when submitting

Hi, I am building a Ticket System with SharePoint Discussion Board. In Discussion Board there are two content type: "Discussion" and "Message". Discussion is used for raise ticket and Message is used for the reply on the Ticket. And they both record on the same SharePoint List.

When I want to build a PowerApps to integrate with this list. I find I cannot create a record with content type "Message". Every time I create a new record, it is a "Discussion" record. Even though I fill in the value "Message" to the content type column on the list. It still returns to Discussion after submission. Is there any way to submit without the default content type in PowerApps?

 

Thank You.

=========

Content Types in SharePoint:

sharepoint_content_type.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @williamchau,

 

So far SharePoint list content types are not supported in PowerApps. 

 

There are a few related ideas submitted before, please add your comments here: 

https://powerusers.microsoft.com/t5/PowerApps-Ideas/native-support-for-different-Content-Types-REST-...

https://powerusers.microsoft.com/t5/PowerApps-Ideas/Filtering-by-Content-Type-amp-by-Name-of-WorkFlo...

https://powerusers.microsoft.com/t5/PowerApps-Ideas/SharePoint-Content-Types-PowerApps-integration/i...

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hello @williamchau,

as fas as I know there is no way how the PowerApps could perform operations with various content types, but actually there can be a workaround - you can set flow / workflow to be triggered after new record is made to load all datas from the form and transfer it to the correct content type.

 

 

v-monli-msft
Community Support
Community Support

Hi @williamchau,

 

So far SharePoint list content types are not supported in PowerApps. 

 

There are a few related ideas submitted before, please add your comments here: 

https://powerusers.microsoft.com/t5/PowerApps-Ideas/native-support-for-different-Content-Types-REST-...

https://powerusers.microsoft.com/t5/PowerApps-Ideas/Filtering-by-Content-Type-amp-by-Name-of-WorkFlo...

https://powerusers.microsoft.com/t5/PowerApps-Ideas/SharePoint-Content-Types-PowerApps-integration/i...

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi,
I think, it can be done by having two forms.

The first one shoud have like a drop down list which by default has the first content type selected and you can make it unvisiable.

The second form shoould have like also a drop down list but it should be default has the second content type selected and also you can make it unvisiable.

 

shankar82
Frequent Visitor

Please follow this

Step 1: Store the record type in the variable

Set(_SelectedcontentType,
{
Id:"0x0100155F20CEA473B841873C1363974AE46B004646506E5261284782F77D924CE7B575",
Name:"Message"
});

Step 2: Pass it in collect/patch based on your need

Collect(Service_Requests,{'{ContentType}':_SelectedcontentType,
Title:DataCardValue1.Text,Description:DataCardValue2.Text,Requested_x0020_By:DataCardValue11.Selected,Owners:DataCardValue6.SelectedItems});
Now the data will be stored in message/Discussion content type based on the value which you are using it in Step 1. Kindly mark it as Answer. 

B1ake
New Member

Hello, 

 

I am having this same issue has anyone found a fix for this error?

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,298)