PowerApps and Content Types

%3CLINGO-SUB%20id%3D%22lingo-sub-34501%22%20slang%3D%22en-US%22%3EPowerApps%20and%20Content%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-34501%22%20slang%3D%22en-US%22%3EDoes%20anyone%20know%20if%20it%20is%20possible%20to%20either%20select%20or%20set%20the%20Content%20Type%20from%20a%20PowerApp%20attached%20to%20a%20SharePoint%20List%3F%20I%20am%20building%20a%20PowerApp%20on%20alist%20that%20has%20multiple%20list%20item%20Content%20Types%3F%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-34501%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-140356%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20PowerApps%20and%20Content%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140356%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20issue%20may%20be%20slightly%20different.%20I%20have%20an%20Intake%20List%20with%20multiple%20content%20types.%20I%20have%20successfully%20used%20visibility%20formulas%20to%20hide%20the%20fields%20that%20do%20not%20apply%20to%20the%20content%20type.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20default%20SharePoint%20forms%2C%20the%20user%20select%20New%2C%20then%20the%20Content%20Type%20desired%20e.g.%20%22New%20Employee%20Onboarding%22%20or%20%22Employee%20Termination%22%2C%20or%20%22New%20Hardware%20or%20Software%20Request%22.%20Then%20the%20form%20opens%20with%20the%20content%20type%20already%20set%20and%20the%20correct%20fields.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20PowerApps%2C%20it%20opens%20without%20setting%20the%20Content%20Type.%20I%20suppose%20I%20can%20hide%20all%20the%20fields%20except%20the%20Content%20Type%20field%20as%20a%20drop%20down%20list%20and%20then%20show%20the%20appropriate%20fields%20after%20that%20selection%20has%20been%20made.%20Going%20to%20try%20that%2C%20but%20if%20anyone%20has%20a%20better%20idea%2C%20let%20me%20know.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-36035%22%20slang%3D%22en-US%22%3ERE%3A%20PowerApps%20and%20Content%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36035%22%20slang%3D%22en-US%22%3E%3CP%3EI%20do%20not%20believe%20you%20can%20explicitly%20select%20a%20content%20type%20as%20a%20data%20connection.%20However%2C%20when%20you%20connect%20to%20a%20SharePoint%20List%20you%20are%20given%20all%20the%20columns%20for%20all%20the%20content%20types%20that%20have%20data%20in%20the%20list%2C%20irrelevant%20of%20content%20type.%20So%20you%20will%20be%20able%20to%20use%20them%20in%20your%20galleries%20and%20formulas.%20Normally%201%20content%20type%20has%20a%20column%20value%20that%20another%20doesn't%2C%20so%20you%20can%20use%20filters%20in%20your%20formulas%20to%20ensure%20only%20the%20right%20content%20type%20is%20shown%20on%20the%20form%20or%20gallery%20for%20example.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20feel%20there%20is%20a%20use%20case%20for%20limiting%20a%20data%20connection%20to%20only%201%20content%20type%2C%20please%20post%20that%20idea%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FPowerApps-Ideas%2Fidb-p%2FPowerAppsIdeas%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FPowerApps-Ideas%2Fidb-p%2FPowerAppsIdeas%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-771616%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20PowerApps%20and%20Content%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-771616%22%20slang%3D%22en-US%22%3E%3CP%3EAny%20luck%20on%20your%20endeavor%3F%26nbsp%3B%20I'm%20about%20to%20look%20at%20adding%20the%20content%20type%20to%20a%20form%20and%20swapping%20visibility.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1056286%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20PowerApps%20and%20Content%20Types%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1056286%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20any%20update%20on%20this%3F%20I%20have%20exactly%20the%20same%20scenario.%20Please%20let%20me%20know%20if%20you%20made%20any%20progress.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable
Does anyone know if it is possible to either select or set the Content Type from a PowerApp attached to a SharePoint List? I am building a PowerApp on alist that has multiple list item Content Types?
4 Replies

I do not believe you can explicitly select a content type as a data connection. However, when you connect to a SharePoint List you are given all the columns for all the content types that have data in the list, irrelevant of content type. So you will be able to use them in your galleries and formulas. Normally 1 content type has a column value that another doesn't, so you can use filters in your formulas to ensure only the right content type is shown on the form or gallery for example.

 

If you feel there is a use case for limiting a data connection to only 1 content type, please post that idea here: https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

My issue may be slightly different. I have an Intake List with multiple content types. I have successfully used visibility formulas to hide the fields that do not apply to the content type.

 

With default SharePoint forms, the user select New, then the Content Type desired e.g. "New Employee Onboarding" or "Employee Termination", or "New Hardware or Software Request". Then the form opens with the content type already set and the correct fields. 

With PowerApps, it opens without setting the Content Type. I suppose I can hide all the fields except the Content Type field as a drop down list and then show the appropriate fields after that selection has been made. Going to try that, but if anyone has a better idea, let me know. 

 

Any luck on your endeavor?  I'm about to look at adding the content type to a form and swapping visibility.

Hello, any update on this? I have exactly the same scenario. Please let me know if you made any progress.