You need to sign in to do that
Don't have an account?
Li Lee
Sales Agreement Product Schedules
We use Salesforce Manufacturing Cloud for our business. We create a VF page show SalesAgreementProductSchedule record and edit those records.
To get and update records, we use JavaScript Remoting.During test, we found follow weird behavior in Salesfoce.
If we send SalesAgreementProductSchedule like { PlannedQuantity: 48, ID: 0YC8b0000008SDiGAM }, Salesforce Database.update throw error and we can not update this record. But if we put ID at first field in record like { ID: 0YC8b0000008SDiGAM, PlannedQuantity: 48 } we can success update this record.
I want to ask you why cause this behavior? Is there any document about it?
To get and update records, we use JavaScript Remoting.During test, we found follow weird behavior in Salesfoce.
If we send SalesAgreementProductSchedule like { PlannedQuantity: 48, ID: 0YC8b0000008SDiGAM }, Salesforce Database.update throw error and we can not update this record. But if we put ID at first field in record like { ID: 0YC8b0000008SDiGAM, PlannedQuantity: 48 } we can success update this record.
I want to ask you why cause this behavior? Is there any document about it?
In this document has follow content:
So we change our code as follow:
All Answers
I checked the related documentation https://developer.salesforce.com/docs/atlas.en-us.234.0.mfg_api_devguide.meta/mfg_api_devguide/sforce_api_objects_salesagreementproductschedule.htm but do not see anything about order of parameters.
What is the complete error message thrown? Can you share more details on how to reproduce this behavior so I can test in my org to suggest better?
Thanks
In this document has follow content:
So we change our code as follow: