Hello,
I have a SharePoint list (List1) that contains two lookup columns (number1 and name1) that point to another source list (List2) with two columns (name2 and number2) that are of type text. I have a form where the value for name1 auto-populates based on the selected value for number1. The issue that I am having is that the value from name1 does not get saved to the SharePoint list (list1).
Here is sample code from my DefaultSelectedItems:
If(EditForm2.Mode=FormMode.New || EditForm2.Mode=FormMode.Edit, LookUp('List2',
'number2' = DataCardValue31.Selected.Value)/*Result Value*/, LookUp('List1','anotherColumn'= DataCardValue35.Text).'name1')
The part I am struggling with is providing the correct result value for the first condition (see placeholder left as a comment). When I try different combinations I typically receive the "Expected Table value" error message. I believe this could be the main culprit behind the issue.
Note: the list and column names provided are used as examples.
Any help with this would be much appreciated!
Thanks,
Mike