Activity Forums Salesforce® Discussions Why we use Javascript Remoting & Remote OBject?

  • Why we use Javascript Remoting & Remote OBject?

  • Suraj

    May 8, 2017 at 1:10 pm

    Why we use Javascript Remoting & Remote OBject?

  • Saurabh

    May 8, 2017 at 2:34 pm

    Hi Suraj

    Well, here are few advantages of “Visualforce Remote Objects” :

    1. No need to write Controllers, Everything can be done in Visualforce only.
    2. As @RemoteAction annotated methods needs to be static so you had to take special precaution as it didn’t supported Viewstate. This hurdle is completely removed now.
    3. No need to write Test Class now, as no Controller is involved.

    for more information you can refer to

    Hope it may help

  • shariq

    September 19, 2018 at 9:04 pm


    Visualforce Remote Objects:

    • Makes basic “CRUD” object access easy
    • Doesn’t require any Apex code
    • Supports minimal server-side application logic
    • Doesn’t provide automatic relationship traversals; you must look up related objects yourself.

    JavaScript Remoting:

    • Requires both JavaScript and Apex code
    • Supports complex server-side application logic
    • Handles complex object relationships better
    • Uses network connections (even) more efficiently

    Hope this helps.

Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos