Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.
1
vote
1
answer
2k
views
EmailMessage Object : EmailTemplateId is null
We have issue in getting the EmailTemplate id from EmailMessage object . After we send email the emailTemplate Id is not populated.
This email is sent using a template
List<EmailTemplate> lstEmailTe …
-1
votes
runAs() behavior in prod vs sandbox
runAs() only enforces sharing of records.Try this:
@isTest(seeAllData=false)
private class RunasDemo {
//Standard user from org: 0051v000006F9z
//User without Account CRUD access: 0051v000006F9zD
pri …
1
vote
Future method completes first before the queueable
@future methods & Queueable are enqueued in a message queue that doesn't guarantee execution order.
Convert the future method into Queueable class and enqueue.
1
vote
Accepted
Searching Salesforce metadata using Visual Studio Code
Do you mean inside the files ? Check, cntrl + shift + F. It will also give you option for Match with case, whole word and *
1
vote
Upload files as a Blob in LWC
You need to chunk the file and send the chunks one by one to Apex. … Appending to content version however may give issues for Apex heap size in this case but you can parse the file with this approach correctly. …
3
votes
Prettier Apex Plugin Won't Format Apex
"prettier-plugin-apex": "^1.8.0"
After this try to install the Prettier again.
npm install prettier-plugin-apex …
-1
votes
How can I get Id from @AuraEnabled method in simple method?
Depends how you want to process, or execute business logic on Id. As @sfdcfox code snippet stated, you can have a promise call executed in js controller and chain the methods. Return the id from the f …
0
votes
How to stop duplicate cases when dealing with Automated system
Did you tried to check In EmailMessage trigger if email is incoming and has a Support Ticket. You can fetch the case with the support ticket and insert the corresponding thread Id in the body of the i …
1
vote
1
answer
115
views
API Integration - Professional Edition
The Apex Rest API class is exposed through public site which should be configured in Subscriber org.
Now we want to work out this whole product for customers which uses Professional edition. …
-1
votes
Stripe API request working with Postman but failing with Apex Rest Callout
You need to set the Authorization token correctly. sToken (SessionID)
request.setHeader('Authorization', 'Bearer ' + sToken);
Also could you check your payload ? I believe you are able to make the ca …
0
votes
IS there a way to Execute Dataloader from Flows
From Apex STP/FTP connection is not possible. … Other solution is to custom build a page to parse the csv in apex and perform DML. …
0
votes
How to make VScode auto fix missing semicolons Apex?
As @Raul mentioned, this is not possible with prettier. what you might want to do auto deploy, which can set this in the workspace settings... To push files each time you save them, use workspace sett …