Questions tagged [aura-enabled]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
3answers
82 views

AuraEnabled Method Causes Internal Server Error for non-Admin Profile

I have an Aura Enabled method in my class that accepts a Case record and a list of a related object records and inserts both of them. The code works fine when I'm logged in as the admin, but the ...
1
vote
2answers
34 views

Store reference to an AuraEnabled Apex method in a JS property

Is it possible to store a dynamic reference to an AuraEnabled Apex method in the LWC JavaScript controller? Something like this: import myMethodA from '@salesforce/apex/MyController.myMethodA'; ...
0
votes
2answers
51 views

Problem with unit test and Custom Setting with @AuraEnabled

There was a problem writing a unit test. I tried to use the usual HttpRequest and Mosk, but they do not work with Costom Setting. Here is my controller and test, which does not completely cover the ...
7
votes
1answer
69 views

Good way to offer both LWCs and a REST API in the same code?

We are building a product that will make use of multiple Lightning Web Components (LWCs), and some of those will make use of @AuraEnabled Apex methods. We also plan to provide an API that non-LWC UI ...
0
votes
0answers
21 views

Aura Enabled Apex Action - param not getting set

I am using action.setParams, but when I check the params they are not being set. I'm not getting any error messages, the variable I'm using to populate the parameter is populated, but when I check ...
3
votes
1answer
67 views

How can i create a Map for unrelated objects?

Background We create shadow records for Contacts that are Inactive (record type) and I am working on building a UI for the user to Activate one or more shadow records associated to that Account. ...
6
votes
0answers
954 views

Winter '20 Critical Update “Restrict Access to @AuraEnabled Apex Methods for Authenticated Users Based on User Profile”

I was wondering if somebody has already dealt with this critical update: When this critical update is activated, an authenticated user can access an @AuraEnabled Apex method only when the user’s ...