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 / Patch Lookup Field fro...
Power Apps
Answered

Patch Lookup Field from Combobox

(0) ShareShare
ReportReport
Posted on by 356

Please help with coding.

Have form called EditSupplementalForm1

Need to patch following fields into new record:

Title, Narrative, Submitter, School

 

Am able to patch first 3 columns with following:

Patch('SRO Test List', Defaults('SRO Test List'),
{Title: valSupReportNumber.Text},
{Narrative: valSupNarrative.Text},
{Submitter: valSupSubmitter.Text}
)

 

Cannot figure out how to patch School column.  School column is a multichoice lookup field populated from SP list name School.

Form combobox field to patch School column is named cboSupSchool.

 

Please help!

 

facepalm

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @slhangen ,

     

    Please try with this.

    Patch('SRO Test List', Defaults('SRO Test List'),
    {Title: valSupReportNumber.Text},
    {Narrative: valSupNarrative.Text},
    {Submitter: valSupSubmitter.Text},
    {School: Filter(Choices('SRO Test List'.School),Id in cboSupSchool.SelectedItems.ID)}
    )

    Hope this helps.

    Sik

  • slhangen Profile Picture
    356 on at

    Perfect, just changed Id to Value and it worked like a charm. Thx a million. 

     

    Ran into another issue though:

    Need to patch into SP column Date/Time. 

    Field type is date and time.

    Input control is datacard Date/Time_DataCard2_1 with 3 dropdowns

    Date dropdown is valSupDateTime

    Hour dropdown is valSupHour

    Minute dropdown is valSupMinute

     

    Thx again!!!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
Valantis Profile Picture

Valantis 604

#3
11manish Profile Picture

11manish 518

Last 30 days Overall leaderboard