I been trying to make an update to item in sharepoint usein a button, I have a lookup field name restaurante , also a choice selector TIpoComida, some of the fields are string o yes/no, but I try patch , updateif, nothing works, every time the error is restaurante is a record and return an error o number, also try different ways of lookup this is my code so far but still with errors, thanks in advance.
UpdateIf(GastosRestaurante;
ID = ThisItem.ID;
{
Title: DataCardValue24_1.Text;
Restaurante:{ '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";
Id: DataCardValue9_2.Selected.Id;
Value: DataCardValue9_2.Selected.Value};
FechaConsumo: DataCardValue28_1.SelectedDate;
Valor: DataCardValue24_2;
Invitados:Toggle1.Value;
CantidadInvitados:DataCardValue24_3;
TipoComida:DataCardValue9_3.Selected;
}
)
Back()
Solved! Go to Solution.
The field restaurante expects a record in this layout
{
Id: 2,
Value: "MN"
}
i did this en green and remove back() and now works, mmm weird thanks
Restaurante: DataCardValue9_2.Selected;
FechaConsumo: DataCardValue28_1.SelectedDate;
Valor: DataCardValue24_2;
Invitados:Toggle1.Value;
CantidadInvitados:DataCardValue24_3;
TipoComida:DataCardValue9_3.Selected
The field restaurante expects a record in this layout
{
Id: 2,
Value: "MN"
}
i did this en green and remove back() and now works, mmm weird thanks
Restaurante: DataCardValue9_2.Selected;
FechaConsumo: DataCardValue28_1.SelectedDate;
Valor: DataCardValue24_2;
Invitados:Toggle1.Value;
CantidadInvitados:DataCardValue24_3;
TipoComida:DataCardValue9_3.Selected
@Seeddraver the green part will give you a record just like I have posted. When you highlite the green part you should see the record just below the Formular bar.
User | Count |
---|---|
250 | |
105 | |
82 | |
51 | |
43 |