Activity Forums Salesforce® Discussions why do we use $A.enqueueAction(action) in Salesforce?

  • shariq

    Member
    September 24, 2018 at 3:23 AM

    It adds the server-side controller action to the queue of actions to be executed. Rather than sending a separate request for each individual action, the framework processes the event chain and batches the actions in the queue into one request. The actions are asynchronous and have callbacks.

    • This reply was modified 7 years, 7 months ago by  shariq.
  • [adinserter block='9']
  • Avnish Yadav

    Member
    September 28, 2018 at 6:53 AM

    $A.enqueueAction(action) adds the server-side controller action to the queue of actions to be executed. All actions that are enqueued will run at the end of the event loop.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos