Goodnight all,
Please I'm also trying to patch a collection in a search box but it really doesn't finish;
My code:
If(
!IsBlank(DataCardValue128),
If(
Form6.Mode = FormMode.New,
ForAll(
DemandeAchatActifCollection,
Patch(
DemandeAchatActif,
Defaults(DemandeAchatActif),
{
ActifId:
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id:ActifCollectionId,
Value:ActifCollection
},
DemandeAchatId:
{
Id: Form1_10.LastSubmit.DemandeAchatId,
Value:Form1_10.LastSubmit.Code
}
}
)
);
);
Form6.Updates; NewForm(Form6)
);
the error is located here please:
ActifId:
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id:ActifCollectionId,
Value:ActifCollection
},
Error message : the liste item could not be inserted or updated because invalid lookup values were found for the following fields in the list
Please help Me