Questions tagged [salesforce-development]

41 questions
3
votes
0 answers

Possible values in Salesforce Setup Audit Trail action column

Can anyone help us to figure out to identify the possible values of action column of SetupAuditTrail table in salesforce. Do we have any table which stores all action? ex: "changedManager", "changedApexPage", "campaignlayout" etc. It will be great…
2
votes
2 answers

How to document LWC Salesforce components public variables with JSDoc?

JSDoc skips my public LWC variables. Here is an example: /** * SomePublicVarName mode - default is false. * * @type {boolean} */ @api somePublicVarName = false; If I convert that to a function or a public…
1
vote
0 answers

how to turn off Salesforce local source track tracking in vscode

Somehow I have managed to 'accidentally' turn on Salesforce Local Source Tracking (but, I am not using scratch orgs). It is creating new files every time I switch branches (I use github) and make any changes. Is there a way this can be turned off…
eraxp
  • 11
  • 1
1
vote
1 answer

Is it possible to use jsforce to achieve Schema.DescribeFieldResult?

wondered if anyone has used jsForce to retrieve metadata about custom fields - per what is possible via the DescribeFieldResult call described here -…
user1517566
  • 348
  • 1
  • 3
  • 14
1
vote
1 answer

Create a Salesforce report to track mail merges

I am looking to create a salesforce report on mail merges done on daily basis. I am not sure on which object I am suppose to start. Thanks in advance for any help!
1
vote
1 answer

How to make VScode auto fix missing semicolons Apex?

Hey does anyone here know how to make VSCode auto fix missing semicolons instead of just show where it is missing? I Started setting up Prettier and it will format apex code but not replace double quotes with single quotes nor insert missing…
1
vote
2 answers

Custom field is not found

I'm attempting to self learn Salesforce and want to add a custom field to an Account. To achieve this I've done the following: I've added the Total custom field to Account: Here is the trigger: trigger AccountTotalTrigger on Account (before insert)…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
1
vote
2 answers

Salesforce Develpment

I'd like to write and trigger using Salesforce best practise that will link all contacts from the related account that are flagged as key contacts to an opportunity on that account when it is created. What I already did: trigger…
Les
  • 11
  • 1
1
vote
1 answer

How do I create a scratch org with Salesforce Platfom licenses?

I'm setting up a new scratch org to deploy a source code we developed in a sandbox. Our project uses Salesforce platform license and our profile definitions are built using this license. When I create a new Scratch org with the Enterprise edition, I…
jerunjose
  • 63
  • 1
  • 1
  • 7
0
votes
0 answers

How to find, Is custom Pick list values are bind with Global value set or not using Schema.DescribeField?

In Case object i created 2 custom picklist fields. first picklist value is binded with global picklist value set & second picklist value is given manually (eg., Enter values, with each value separated by a new line). While running that picklist…
0
votes
0 answers

sfdx scanner:run dont understand User Mode

I try to use the new User Mode DML Operation as describe here => https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_enforce_usermode.htm The code can be deploy successfully. Upsert As User Events; However when i…
mokh223
  • 544
  • 3
  • 5
  • 14
0
votes
2 answers

Why is the 'Public' keyword not being recognized"?

I am new to Salesforce Development/Apex and am running practice exercises. When I run this code thru the 'Anonymous Apex' window, it throws an error reading: "Unexpected token 'Public'. " Please help me understand what my problem is. I have created…
0
votes
0 answers

How to achieve this. Help me

(Lead Status - Open) If the lead is still in the same condition(open) after 5 hours of lead creation, an email has to be sent to the owner of the lead and the manager of the owner in email CC. I have created batch class like this but it is…
0
votes
0 answers

I have an collection of data's, I have to display the records in 3 columns in one page of an PDF in visual force

I have the collection of data in apex and i want to display the records(Visual Force) in 3 columns in one page the flow should be filled 1 column after another column like this i want to arrange the records in 3 columns per page of an PDF I have…
0
votes
1 answer

How to setup remote site origin programatically in salesforce during the app installation

I'm developing the salesforce app using salesforce LWC components, I have requirement where I should process the salesforce data from an external system, for this I'm sending the data to the external api, say 'https://myapi.com/contact', but when I…
1
2 3