visualforce remoteobject
DESCRIPTION
My presentation in Chennai Salesforce Developer meetupTRANSCRIPT
![Page 1: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/1.jpg)
Chennai Salesforce Platform Developer User Group
![Page 2: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/2.jpg)
![Page 3: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/3.jpg)
Visualforce Remote ObjectSep 27, 2014
![Page 4: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/4.jpg)
Speaker
KaranrajSalesforce Developer@karanrajs
![Page 5: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/5.jpg)
Visualforce Remote Object
1. Useful tool for quickly creating pages with basic data operations.
2. DML operation from Java script.
3. What are current possible method?1. API call2. Java script remoting[With Apex controller]
4. More suitable for Salesforce1 application.
5. No Apex controller and No Test class
#SalesforceChennai
![Page 6: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/6.jpg)
Remote object parts1. Access definition – Written in visual force
2. Data access function – Written in java script.
3. Supported actions in Data access function1. Retrieve2. Create3. Update4. Upsert5. Delete
![Page 7: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/7.jpg)
Demo
#SFDUGChennai
![Page 8: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/8.jpg)
Initiate and Get Records
1. Initiate the remote object
2. Retrieve method
#SalesforceChennai
![Page 9: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/9.jpg)
Create, Update and Delete
3. Create – sObjectModel.Create()
4. Update – sObjectModel.update();
5. Delete – sObjectModel.del();
![Page 10: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/10.jpg)
Tips
• Field level security• Transaction Boundaries• Avoid complex business logic in java script
#SFDUGChennai
![Page 11: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/11.jpg)
Limits
• All your Visualforce limits still apply. You can’t escape • You can retrieve a maximum of 100 rows in a single request. [Use OFFSET to
query more]
![Page 12: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/12.jpg)
Try it yourself!
Source Code - http://bit.ly/VFRemoteobj
Create a Visualforce page
Paste the code and run it
#SFDUGChennai
![Page 13: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/13.jpg)
Salesforce1 Resources
Visualforce Developer Guide – http://bit.ly/VFGuide
Blogs:
Visualforce Remote Object - http://bit.ly/Remoteblog
#SFDUGChennai
![Page 14: Visualforce remoteobject](https://reader034.vdocuments.mx/reader034/viewer/2022052504/54799a9eb4795995098b47be/html5/thumbnails/14.jpg)
Thank You