cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ttaylor
Level: Powered On

Multiple Comments for one customer using two SharePoint lists

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
ttaylor
Level: Powered On

Re: Multiple Comments for one customer using two SharePoint lists

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} } )


)

 

 

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Multiple Comments for one customer using two SharePoint lists

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

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ttaylor
Level: Powered On

Re: Multiple Comments for one customer using two SharePoint lists

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} } )


)

 

 

View solution in original post

ttaylor
Level: Powered On

Re: Multiple Comments for one customer using two SharePoint lists

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

{Title:TextInput1.Text,

 

Community Support Team
Community Support Team

Re: Multiple Comments for one customer using two SharePoint lists

Hi @ttaylor ,

 

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

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,850)