Hi Friends,
Previously i tell you how to insert record in Acumatica ERP.
Today i will tell you how to update record in Acumatica ERP.
Below code will be used to update the record in Acumatica ERP.
var maint = PXGraph.CreateInstance<NewTimeActivity>();
var detailsCache = maint.ProviderUpdate<EPTimeCard>(
new PX.Data.PXDataFieldAssign("Status", Status),
new PX.Data.PXDataFieldAssign("IsApproved", false),
new PX.Data.PXDataFieldAssign("IsHold", false),
new PX.Data.PXDataFieldRestrict("TimeCardCD", timeCardCD)
);
Here PXDataFieldRestrict will be used as a where clause for the update query.
Thanks
Happy Coding
0 Comment(s)