You need to sign in to do that
Don't have an account?
Bhushan Singh 13
How can we insert record into object from static resource during the loading visualforce page
Hi,
How can we insert record into object from static resource during the loading visualforce page.
e.g. I have one Object and created one visulaforce page, i want to insert the record from any static resource while that Visualforce is loading.
Please help me
How can we insert record into object from static resource during the loading visualforce page.
e.g. I have one Object and created one visulaforce page, i want to insert the record from any static resource while that Visualforce is loading.
Please help me
It is a classic problem of serialization/deserialization. Salesforce often uses JSON as format.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_json_json.htm
Often used with callouts: https://trailhead.salesforce.com/fr/apex_integration_services/apex_integration_rest_callouts
Alain
To Overcome this issue you can create action method and call it in the <apex:page> tag and perform DML operation inside the action method as shown below:
Thanks,
Satya.