I have a canvas app and a SP list, on the list is a Lookup field to another list.
The problem i am having is getting the value to come from a collection and save to the Lookup field;
ClearCollect(
myTemplate,
ThisItem.'Grade Name'.Value, //Lookup field
);
I have this in the update for the lookup field;
{Value:DataCardValue1.Selected.'Grade Name',
Id:
LookUp('Grades & Grade Names','Grade Name' = DataCardValue1.Selected.'Grade Name').ID
}
If the user just selects a value this will work and save, however if the field value gets populated from the collection then nothing saves.
This is the DefaultSelectedItems
Last(FirstN(myTemplate, 1))