Skip to main content

Notifications

Community site session details

Community site session details

Session Id : EYS5oZ15D5DdWK7y1iL4P0
Power Apps - Building Power Apps
Answered

Adding a new item in ComboBox that is then saved in SharePoint as a new choice

Like (1) ShareShare
ReportReport
Posted on 1 Aug 2024 13:35:50 by 353
Hello All,
 
I have a editable gallery similar layout similar to what Reza did in this video https://www.youtube.com/watch?v=76RJyaoW0BQ. I don't use the modern controls and had to switch back to the classic after watching a Shane Young video. I would like for my user's to be able to add a new item for other users to select from on a different screen. The data source is a SharePoint list. Users currently can add new items to the gallery but when they save the newly added item it does not appear in the list as a selectable option for the other users. I watched Shane Young's video https://www.youtube.com/watch?v=TH6oqsfxPaE, but I'm running into an issue with my formula around the 19:39 mark. I'm not sure how to solve this and any help would be greatly appreciated. Thanks!
  • WarrenBelz Profile Picture
    146,947 Most Valuable Professional on 08 Aug 2024 at 23:11:13
    Adding a new item in ComboBox that is then saved in SharePoint as a new choice
    Shorter version
    'AI Topics': 
    {
       Value:
       Coalesce(
          AI_Topics_Combobox.SearchText,
          AI_Topics_Combobox.Selected.value
       ) 
    }
     
  • Verified answer
    nleuck_101 Profile Picture
    353 on 08 Aug 2024 at 20:18:38
    Adding a new item in ComboBox that is then saved in SharePoint as a new choice
    So I got something to work but not exactly the way I was hoping. I removed the HTTP request flow and just this instead.
    This does allow for user to select a new choice in the app as expected. But it does not save it as a choice in the SharePoint list which could be a problem. As of right now it's working as expected in the power app. 
  • nleuck_101 Profile Picture
    353 on 02 Aug 2024 at 13:23:26
    Adding a new item in ComboBox that is then saved in SharePoint as a new choice
    The AI Topics is a choice column in my SharePoint list. In my Power Apps I want my admin users to be able to added new choices to the list from the Admin screen. Previously I was able to add them to the list but the new choice wouldn't be an option to select from. On the front end of the SharePoint list you can see the new choice but on the back end of available choices, the newly added choice is not there. Shane Young's video shows how to do this with a flow but I'm getting an error with the incompatible type. Not sure what I'm doing different.
  • Suggested answer
    developingteal Profile Picture
    392 on 01 Aug 2024 at 19:49:34
    Adding a new item in ComboBox that is then saved in SharePoint as a new choice
    I haven't watched the video, but it seems you are just having a simple type mismatch per the error. I would look at the data source, and see if you are intending for it to accept a boolean or record. Also your if statement and isblanks are pushing out boolean values here, which is then going to the column AI topics. 
     
    I don't fully know what you are trying to accomplish, but currently you are pushing a boolean value to AI Topics, which presumably is not what you are trying to do. 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard
Loading started