Activity Forums Salesforce® Discussions Why we use remoteaction function in Salesforce?

  • shradha jain

    Member
    August 17, 2018 at 8:47 am

    Hello Parul,
    Remote action function in salesforce allows user to access any method from any class through javasrcipt methods, and get the result as a javascript object for further manipulation.The RemoteAction annotation provides support for Apex methods used in Visualforce to be called via JavaScript. This process is often referred to as JavaScript remoting.

    Thanks.

  • shariq

    Member
    September 16, 2018 at 10:59 am

    Hi,

    JavaScript remoting in Visualforce provides support for some methods in Apex controllers to be called via JavaScript.

    JavaScript remoting has three parts:
    1. The remote method invocation you add to the Visualforce page, written in JavaScript.
    2. The remote method definition in your Apex controller class. This method definition is written in Apex, but there are   few differences from normal action methods.
    3.The response handler callback function you add to or include in your Visualforce page, written in JavaScript.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos