In your Patch i can see you have used
"#Microsoft.Azure.Connectors.SharePoint.SPListExpanded.Reference"
but can you please try with out the dot before References like this"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
because if the type dosent match exactly it will drops the lookups payload and the item get created with out the lookup value.
try the below code and as a best practice sets value to the lookups display text
Patch(
activities,
Defaults(activities),
{
personID: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 25,
Value: LookUp(people, ID = 25).Title // or whatever column your lookup shows
},
projectID: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 309,
Value: LookUp(projects, ID = 309).Title
},
WeekCommencing: ddWeekCommencing.Selected.Value,
action: "",
duration: 1
}
);
and if it is a multi select try this.
projectID: Table(
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 309,
Value: LookUp(projects, ID = 309).Title
}
)
Try this and let me know if you need any support.