• Kunal Ghosh 17
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Any functions on the client side controller work without a problem but If i have to make a call to an apex server The function doesnt exists.
Is this a behavior that is not allowed?
 
public with sharing class ContactRecordHomeController {
    
    @AuraEnabled
    public static String updateStatus() {
         User user = [Select sidebar_Status__c From User Where Id = :UserInfo.getUserId()];
         user.sidebar_Status__c = !user.sidebar_Status__c;
         update user;
        return 'user';
    }

}

 
  • September 20, 2018
  • Like
  • 0