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 / Multiple Comments for ...
Power Apps
Answered

Multiple Comments for one customer using two SharePoint lists

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I think I may have a rather complex problem. Here's what I've done:

 

Step 1 - Main Screen (Contacts list),

Edit/view form (Form1) using a dropdown menu (OrgDropDown) from Contacts list; users select an Organization name from the OrgDropDown menu to populate Form 1. 

 

Step 2 - Notes Screen (Notes list), gallery form for users to see notes from prior visits to the Organization that was selected in OrgDropDown on the main screen, which uses Contacts list.

 

Step 3 - I need users to be able to add new note through a form that will save in the Notes list based on the organization that was selected from OrgDropDown on main screen Contacts list

 

Contacts list:  Organization field is single-line text field

Notes list:  Organization is a LookUp field from Organization in Contacts list

 

How do I do step 3? 

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

    Hi @ttaylor ,

     

    You need to use a Patch function to update the record to the LookUp field. The formula should be something like:

    Patch(Notes,
     Defaults(Notes),
     {Title:TextInput1.Text,
    Lookup:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Id:Dropdown1.Selected.ID, Value:Dropdown1.Selected.Value} } )

    Dropdown1 is the dropdown control name in your first screen.

     

    Regards,

    Mona

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I'm getting an error that "Lookup column does not exist." I'm using this OnSelect forumula:

     

    Patch(Notes,
     Defaults(Notes),
     {Title:TextInput1.Text,
    Lookup:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Id:OrgDropDown.Selected.ID, Value:OrgDropDown.Selected.Value} } )


    )

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I'm braindead. What should be in my Title field? The dropdown box name or the fieldname in the Sharepoint list?

    {Title:TextInput1.Text,

     

  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @ttaylor ,

     

    You should replace the "TextInput1" with the name of your textinput control that holds the title field.

     

    Regards,

    Mona

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard