Skip to main content
LCC.callApex('LCCController.getUser', params, this.resultHandler,

{escape: true });

 returns error Unable to invoke action 'LCCController.getUser': no controller and/or function found

Here is my Manifest.json

{

"landing-pages" : [

{

"path": "index.html",

"apex-controller": "LCCControler"

}

]

}

Here is the Controller:

global class LCCController {

    @AuraEnabled(cacheable=true)

    @RemoteAction

    global static List<User> getUser() {

        UserInfo.getUserId();

        List<User> me = new List<User>();

        me = [Select FirstName, LastName from User where Id = :UserInfo.getUserId()];

        System.debug('Out 7' + me);

        return me;

    }

}
4 answers
  1. May 14, 2019, 12:20 PM
    I made the change, but still get the same error.
0/9000