CWL
@cwl
Admin
Member
Joined: Aug 6, 2013
Last seen: Jul 15, 2024
Issues: 103 / Replies: 102
Reply
RE: How to write test class for schedulable apex with call out in Salesforce

// Suppose if you have Schedulable apex, which does a callout, with the name SchedulableClass: global class SchedulableClass implements Schedulable...

3 years ago
Forum
Reply
RE: how to update / insert date field in apex

CloseDate = Date.newInstance(2020, 12, 30)

3 years ago
Forum
Topic
Forum
Replies: 2
Views: 320
Reply
RE: How to create a fake dummy id in salesforce for testing?

If you need to create a properly formed Id and doesn't care about it actually being in the database for your apex test classes, you can create it as: ...

3 years ago
Forum
Topic
Reply
RE: How to set a specific from email address in Salesforce

You could set an org wide email in settup -> Organization-Wide Email Addresses and use it as the from email id for sending emails: OrgWideEma...

3 years ago
Forum
Topic
Reply
RE: Salesforce API user for integrations

To make the integration user the context user for the apex initiated records inserts, etc., you need to run the Apex class as your integration user, w...

3 years ago
Forum
Topic
Reply
RE: Callout from scheduled Apex not supported

You can't do callouts from a Scheduled apex class: * Place @future(callout=true) annotation above your callout method, so you can convert it to a fu...

3 years ago
Forum
Topic
Forum
Replies: 2
Views: 612
Reply
RE: Email sending failed with error NO_MASS_MAIL_PERMISSION, Single email is not enabled

Check the Deliverability settings under Setup > Email Administration > Deliverability. I had to change the Access level from System Emails o...

3 years ago
Forum
Reply
RE: How to generate a string with a list of skipped record ids

Ended up creating this: String skippedRecords = ''; Integer checkedParentIds = 0; Boolean idMatch = false; Integer totalParentIds = parentList.si...

3 years ago
Forum
Page 10 / 14