No, you cannot perform update operations in an @AuraEnabled(cacheable=true) method. The @AuraEnabled(cacheable=true) annotation is used to indicate that the method's results can be cached on the client side for performance optimization. This implies that the method must be idempotent and should not change any data. It should be used for read-only operations.
To perform update operations, you should use a standard @AuraEnabled method without the cacheable=true attribute. Here’s how you can do it:
This section is not available anymore. Please use the main Exam Page.CRT-450 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Neel_sehgal
11 months, 1 week agoSS1121
11 months, 3 weeks agoSanjeevOnForce
1 year, 7 months agoCindy_Hr
1 year, 8 months agoBrucePark
1 year, 10 months ago