Hi guys,
In this post i am showing how can we use the power of javascript in VF page and inserting record in salesforce without any standard/custom controller or Apex.
By using AJAX Toolkit we can do this task easily.
AJAX Toolkit divides in two type synchronous and asynchronous call.
It works in three simple steps:
- Connecting to the AJAX Toolkit(By using login methods or getting Session_ID)
- Embedding the API methods in JavaScript.
- Processing the results.
Screen Shoots:-
After inserting of record you are having ID of record :-
Happy Coding...:)
Thanks
Anurag Jain