Activity Forums Salesforce® Discussions What is enqueue action and app hostile in Salesforce?

  • Ajay Prakash

    Member
    January 6, 2018 at 9:36 am

    Hi Sandeep,

    I am considering you are asking to enqueue in reference to the lightning component. Whenever you want to call a server side method from a javascript controller you need to create an action. enqueue action is the keyword that binds server-side action with the Aura framework.

    Thanks.

  • Avnish Yadav

    Member
    September 30, 2018 at 4:17 am

    Hello,

    If we need to call more than one server side controller then we need to write a second controller inside the First setCallBack method , the third controller inside the second Controller and so on .
    Like this way we can achieve the right output always . This is the correct way to call $A.enqueueAction() .

    Thanks.

  • William

    Member
    December 24, 2018 at 5:21 am

    Enqueue action refers to the server-side controller activity to the line of activities to be executed. All activities that are enqueued will keep running toward the finish of the event loop. As opposed to sending a different demand for every individual action, the system forms the occasion chain and groups the activities in the line into one demand. The activities are asynchronous and have callbacks.

    App hostile is the situation that occurs when the callbacks in the enqueue loop are hindered due to a faulty code or asynchronous instruction.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos