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 / ComboBox values with S...
Power Apps
Suggested Answer

ComboBox values with SharePoint Lookup column

(0) ShareShare
ReportReport
Posted on by 7
Howdy experts!
 
Working on an app for tracking Orders, so building the initial Order Table to track them.
I've got a SP List with a Lookup Column to the different Vendors we have.  There are regular Vendors and Quick order Vendors.  So, I'm trying to filter out the Quick ones.
 
I'd like use the Choices code since it helps simplify updates when using the SubmitForm.  Is there a way to modify the code "Choices([@NPDpos].POvendor)" so that it doesn't show the Quick ones (Which is a boolean column)?   So far, I've been unsuccessful.
 
I've tested going down the Filter path "ShowColumns(Filter(Vendors,QuickVendor = false),ID,Title)", and I'm able to get the right Vendors.  But then I'm struggling to Update the SP column, not sure how/what to point to.  From what I understand, I'll need to use Patch to push the different fields.
 
Any insight is much appreciated!
 
Thanks a bunch!
Lou
Categories:
I have the same question (0)
  • 11manish Profile Picture
    3,333 on at
    try below (Might be helpful)
     
    Set Items Property of Dropdown
    • Use:
    • Filter(Vendors, QuickVendor = false)
    Configure Dropdown Fields
    Set:
    • DisplayFields:  ["Title"]
    • SearchFields:  ["Title"]
  • Suggested answer
    PowerDeveloperTP Profile Picture
    453 on at
    Hello,
     

    If you're using a submit form, set the DataCard’s Update property to:

    {
    Id: ComboBoxVendor.Selected.ID,
    Value: ComboBoxVendor.Selected.Title
    }
     

    If using Patch instead of SubmitForm:

    Patch(
    NPDpos,
    Defaults(NPDpos),
    {
    POvendor: {
    Id: ComboBoxVendor.Selected.ID,
    Value: ComboBoxVendor.Selected.Title
    }
    }
    )

    Please let me know how it goes. Thank you.

     

    Thank you.
    Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
    This helps others find solutions to future issues!
  • lreyes Profile Picture
    7 on at
    Thank you PowerDeveloperTP!
     
    It worked :-)
     
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard