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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,995)