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 / Collection stores Shar...
Power Apps
Answered

Collection stores SharePoint dropdown column value in table. How to fix this ?

(0) ShareShare
ReportReport
Posted on by 56


Hello @WarrenBelz , I followed your suggestions from the below post and wrote the code to Onchange Property of filed
https://powerusers.microsoft.com/t5/Building-Power-Apps/Editable-Gallery-DropDown-Value-Not-Updating-to-SharePoint/m-p/1833862

 

The below code works to get the value into the collection, but the Dropdown values are stored in the Table. How can I resolve this ?

 

domino_kart_0-1692196465962.png

 

 

 

If(
 ThisItem.ID in col_RACI_Objectives.ID,
 Update(
 col_RACI_Objectives,
 LookUp(
 col_RACI_Objectives,
 ID = ThisItem.ID
 ),
 {
 ID: ThisItem.ID,
 RACIDescription: Gallery_RACI_Description_Input.Text,
 RACIDeadline: {Value: Gallery_RACI_Deadline_Input.Selected.Value},
 RACIStatus: {Value: Gallery_RACI_Status_Input.Selected.Value},
 ScopeRAG: {Value: Gallery_Scope_RAG_Input.Selected.Value},
 ScheduleRAG: {Value: Gallery_Schedule_RAG_Input.Selected.Value},
 ResourceRAG: {Value: Gallery_Resource_RAG_Input.Selected.Value},
 RAIDRAG: {Value: Gallery_RAID_RAG_Input.Selected.Value},
 ChangeMgtRAG: {Value: Gallery_Change_Mgt_RAG_Input.Selected.Value}
 }
 ),
 Collect(
 col_RACI_Objectives,
 {
 ID: ThisItem.ID,
 RACIDescription: Gallery_RACI_Description_Input.Text,
 RACIDeadline: {Value: Gallery_RACI_Deadline_Input.Selected.Value},
 RACIStatus: {Value: Gallery_RACI_Status_Input.Selected.Value},
 ScopeRAG: {Value: Gallery_Scope_RAG_Input.Selected.Value},
 ScheduleRAG: {Value: Gallery_Schedule_RAG_Input.Selected.Value},
 ResourceRAG: {Value: Gallery_Resource_RAG_Input.Selected.Value},
 RAIDRAG: {Value: Gallery_RAID_RAG_Input.Selected.Value},
 ChangeMgtRAG: {Value: Gallery_Change_Mgt_RAG_Input.Selected.Value}
 }
 )
)

 

 

Please can you suggest me how to fix this issue ?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,275 Most Valuable Professional on at

    Hi @domino_kart ,

    I suspect ChangeMgtRAG and RACIDeadline are multi-choice columns, which are Tables ?

  • domino_kart Profile Picture
    56 on at

    @WarrenBelz : All are single select choice columns, I did reverify, Also, its issue with all the below choice columns

    • RACIDeadline
    • RACIStatus
    • ScopeRAG
    • ScheduleRAG
    • ResourceRAG
    • RAIDRAG
    • ChangeMgtRAG 
  • Verified answer
    WarrenBelz Profile Picture
    156,275 Most Valuable Professional on at

    @domino_kart ,

    I now see that is a collection view - you are actually making those fields Tables with your collection - you need to do this

    Collect(
     col_RACI_Objectives,
     {
     ID: ThisItem.ID,
     RACIDescription: Gallery_RACI_Description_Input.Text,
     RACIDeadline: Gallery_RACI_Deadline_Input.Selected.Value,
     RACIStatus: Gallery_RACI_Status_Input.Selected.Value,
     ScopeRAG: Gallery_Scope_RAG_Input.Selected.Value,
     ScheduleRAG: Gallery_Schedule_RAG_Input.Selected.Value,
     ResourceRAG: Gallery_Resource_RAG_Input.Selected.Value,
     RAIDRAG: Gallery_RAID_RAG_Input.Selected.Value,
     ChangeMgtRAG: Gallery_Change_Mgt_RAG_Input.Selected.Value
     }
    )

    and the same with the Patch

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • domino_kart Profile Picture
    56 on at

    @WarrenBelz : When I changed the code at the onChange of all the input fields, it says error as "Incompatible type: Collection can't contain the values of this type."

     

    domino_kart_0-1692261953565.png

     

     

     

    But the way I have defined the collection is like this. Is this correct for the App OnStart ??

    domino_kart_2-1692262101391.png

     

     

    ClearCollect(
     col_RACI_Objectives,
     ShowColumns(
     Table(Defaults('RACI Objectives')),
     "RACIDescription",
     "RACIDeadline",
     "RACIStatus",
     "ScopeRAG",
     "ScheduleRAG",
     "ResourceRAG",
     "RAIDRAG",
     "ChangeMgtRAG",
     "ID"
     )
    );
    Clear(col_RACI_Objectives);

     

     

     

  • WarrenBelz Profile Picture
    156,275 Most Valuable Professional on at

    @domino_kart ,

    No - that is simply creating the fields as Choice field (Tables) the same as the List - if you wasn't Text fields, you will need to create it all manually with "" as the starting value.

  • Verified answer
    domino_kart Profile Picture
    56 on at

    Hello @WarrenBelz , thank you for your response. I figured out a few bits. Here is the whole correct code looks like !!!

     


    Below are the columns in Collections

    • RACIDescription    ---------------- Column Type Text
    • RACIDeadline    ------------------- Column Type Choice
    • RACIStatus    ---------------------- Column Type Choice
    • ScopeRAG    ---------------------- Column Type Choice
    • ScheduleRAG    ------------------- Column Type Choice
    • ResourceRAG    ------------------- Column Type Choice
    • RAIDRAG    ----------------------- Column Type Choice
    • ChangeMgtRAG    ---------------- Column Type Choice

     

    Below are the columns in SharePoint

    • RACI Description    ------------------- Column Type Text
    • RACI Deadline    ---------------------- Column Type Choice
    • RACI Status    ------------------------- Column Type Choice
    • Scope RAG    -------------------------- Column Type Choice
    • Schedule RAG    ---------------------- Column Type Choice
    • Resource RAG    ---------------------- Column Type Choice
    • RAID RAG    --------------------------- Column Type Choice
    • Change Mgt RAG    ------------------- Column Type Choice

     

     

    OnStart of the App

     

     

    ClearCollect(
     col_RACI_Objectives,
     ShowColumns(
     Table(Defaults('RACI Objectives')),
     "ID",
     "RACIDescription",
     { "RACIDeadline", Text }, // Text data type (for Choice)
     { "RACIStatus", Text }, // Text data type (for Choice)
     { "ScopeRAG", Text }, // Text data type (for Choice)
     { "ScheduleRAG", Text }, // Text data type (for Choice)
     { "ResourceRAG", Text }, // Text data type (for Choice)
     { "RAIDRAG", Text }, // Text data type (for Choice)
     { "ChangeMgtRAG", Text } // Text data type (for Choice)
     )
    );
    Clear(col_RACI_Objectives);

     

     

     

     

    OnChange of all these input controls

    domino_kart_0-1692270585459.png

     

     

     

    If(
     ThisItem.ID in col_RACI_Objectives.ID,
     Update(
     col_RACI_Objectives,
     LookUp(
     col_RACI_Objectives,
     ID = ThisItem.ID
     ),
     {
     ID: ThisItem.ID,
     RACIDescription: Gallery_RACI_Description_Input.Text,
     RACIDeadline: Gallery_RACI_Deadline_Input.Selected.Value,
     RACIStatus: Gallery_RACI_Status_Input.Selected.Value,
     ScopeRAG: Gallery_Scope_RAG_Input.Selected.Value,
     ScheduleRAG: Gallery_Schedule_RAG_Input.Selected.Value,
     ResourceRAG: Gallery_Resource_RAG_Input.Selected.Value,
     RAIDRAG: Gallery_RAID_RAG_Input.Selected.Value,
     ChangeMgtRAG: Gallery_Change_Mgt_RAG_Input.Selected.Value
     }
     ),
     Collect(
     col_RACI_Objectives,
     {
     ID: ThisItem.ID,
     RACIDescription: Gallery_RACI_Description_Input.Text,
     RACIDeadline: Gallery_RACI_Deadline_Input.Selected.Value,
     RACIStatus: Gallery_RACI_Status_Input.Selected.Value,
     ScopeRAG: Gallery_Scope_RAG_Input.Selected.Value,
     ScheduleRAG: Gallery_Schedule_RAG_Input.Selected.Value,
     ResourceRAG: Gallery_Resource_RAG_Input.Selected.Value,
     RAIDRAG: Gallery_RAID_RAG_Input.Selected.Value,
     ChangeMgtRAG: Gallery_Change_Mgt_RAG_Input.Selected.Value
     }
     )
    )

     

     

     

     

    OnSelect of "New RACI objective" Button

     

     

    Patch(
     'RACI Objectives',
     Defaults('RACI Objectives'),
     {'Project Name': ""}
    )

     

     

     

     

    OnSelect of "Save" Button

     

     

    If(
     CountRows(col_RACI_Objectives) > 0,
     ForAll(
     col_RACI_Objectives,
     Patch(
     'RACI Objectives',
     LookUp('RACI Objectives', ID = col_RACI_Objectives[@ID]),
     {
     'RACI Description': col_RACI_Objectives[@RACIDescription],
     'RACI Deadline': {Value: col_RACI_Objectives[@RACIDeadline]},
     'RACI Status': {Value: col_RACI_Objectives[@RACIStatus]},
     'Scope RAG': {Value: col_RACI_Objectives[@ScopeRAG]},
     'Schedule RAG': {Value: col_RACI_Objectives[@ScheduleRAG]},
     'Resource RAG': {Value: col_RACI_Objectives[@ResourceRAG]},
     'RAID RAG': {Value: col_RACI_Objectives[@RAIDRAG]},
     'Change Mgt RAG': {Value: col_RACI_Objectives[@ChangeMgtRAG]}
     }
     )
     );
     Notify(
     "No saved Data to patch",
     NotificationType.Information
     )
    );
    Clear(col_RACI_Objectives);

     

     

     

  • WarrenBelz Profile Picture
    156,275 Most Valuable Professional on at

    @domino_kart ,

    Yes - pretty much what I posted - you need to make the column types match with what you need.

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
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard