var actionName = component.get("c.methodName");
      actionName.setParams({
        "paramName" : value
      });
      actionName.setCallback(this, function(response) {
        var state = response.getState();
        if (state === "SUCCESS") {
          var returnValueVar = response.getReturnValue();
        }
        else if (state === "ERROR") {
          var errors = response.getError();
        }
      });
      \$A.enqueueAction(actionName);
      Javascript language logo

      Call Apex Action

      0

      1

      avatar
      lucycodes42
      Apex recipes

      Shortcut: aura_call_apex_action

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.