cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mkosh
Frequent Visitor

canvas app: setting content type on creation of new items in SP list

I am attempting to add a new item of a particular content type to a list using a canvas powerapp. I have managed to pass the content type name as a parameter and I am setting the content type column. However, the form won't save - it gives me an error for invalid data source. When I removed the content type column I was able save successfully. 

 

Please advise.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @mkosh ,

I'm very glad that you've solved your problem.

Do you have any other question?
If not, could you change your issue's status to "Answered"?

Thanks!

 

Best regards,

Community Support Team _ Phoebe Liu
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

3 REPLIES 3
rebeccas
Community Champion
Community Champion

Is this going to SharePoint? What is your data source? And if it is SharePoint what type of column is it that your having trouble with?

mkosh
Frequent Visitor

Hi,

 

Yes, its going to a SharePoint list. The column isa choice column; the app is now working after I passed the content type Id instead of the name! Thanks for much for your interest.

 

Hi @mkosh ,

I'm very glad that you've solved your problem.

Do you have any other question?
If not, could you change your issue's status to "Answered"?

Thanks!

 

Best regards,

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,897)