Activity Forums Salesforce® Discussions Why is it necessary to put @RemoteAction annotation in a method of apex controller in a Salesforce Visualforce page in order to use that method in Javascript Code?

  • PRANAV

    Member
    January 15, 2018 at 3:20 pm

    Hi

    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.

    Methods with the RemoteAction annotation must be static and either global or public.

    Hope this helps you.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos