cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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", IdSmiley SurprisedrgDropDown.Selected.ID, ValueSmiley SurprisedrgDropDown.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", IdSmiley Very Happyropdown1.Selected.ID, ValueSmiley Very Happyropdown1.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", IdSmiley SurprisedrgDropDown.Selected.ID, ValueSmiley SurprisedrgDropDown.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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 402 members 4,064 guests
Please welcome our newest community members: