Most viewed questions in SalesForce

0 votes
1 answer

Salesforce picklist values not showing up in picklist

For both standard and custom objects, go ...READ MORE

Mar 3, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 19, 2023 by Khan Sarfaraz 15,293 views
0 votes
1 answer

Get a field value from a SObject List (Apex)

The field API Name is represented by ...READ MORE

Mar 29, 2022 in SalesForce by CoolCoder
• 4,400 points
11,039 views
0 votes
1 answer

Apex (Salesforce) read json from response and store it in a string variable

String jsonStr = '{ "oktaToken":"eyJraWQiOiIyNlN1NHFMNnVVZTVJX2M5X2Z3WmZvX09ON0dNUHRtQzlEeHFsTGplLS00IiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULlVINmdIOF9BcWJ" }'; Map<String, String> ...READ MORE

Mar 3, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 27, 2023 by Khan Sarfaraz 9,065 views
0 votes
1 answer

How to add days to date time in Salesforce Apex?

Beware the DST issue! The "addDays" function ...READ MORE

Mar 15, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 19, 2023 by Khan Sarfaraz 6,276 views
0 votes
1 answer

How do i get all values from a global pick list in salesforce using REST Api?

Since API 39.0 it is possible to ...READ MORE

Mar 17, 2022 in SalesForce by CoolCoder
• 4,400 points
6,179 views
0 votes
1 answer

Salesforce Formula Text Value Based on Custom Field Picklist Value

You should update the fields using the ...READ MORE

Mar 2, 2022 in SalesForce by surbhi
• 3,810 points
5,646 views
0 votes
1 answer

parent-child and child-parent relationships in one query SOQL

Yes, it is possible to do so. In ...READ MORE

Mar 2, 2022 in SalesForce by surbhi
• 3,810 points
5,495 views
0 votes
1 answer

Salesforce Apex SingleEmailMessage with Template to User not contact

// Pick a dummy Contact Contact c ...READ MORE

Mar 17, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 27, 2023 by Khan Sarfaraz 3,919 views
0 votes
1 answer

How can I rename my Apex Class name in Salesforce

If you wanted to do it through ...READ MORE

Apr 1, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 19, 2023 by Khan Sarfaraz 3,694 views
0 votes
1 answer

Salesforce Apex/JSON serialization with change on variable name

Apex does not support annotation for serialization. But, ...READ MORE

Mar 2, 2022 in SalesForce by surbhi
• 3,810 points
3,476 views
0 votes
1 answer

Json response to be deserialized in Apex salesforce lightning

Because some fields in Apex are reserved ...READ MORE

Mar 2, 2022 in SalesForce by surbhi
• 3,810 points
3,260 views
0 votes
1 answer

How to Update RecordTypeId field in Lightning record form in salesforce?

A critical action that messes everything up ...READ MORE

Mar 3, 2022 in SalesForce by CoolCoder
• 4,400 points
2,882 views
0 votes
0 answers

Salesforce Apex SingleEmailMessage with Template to User not contact

Im trying to send an email in ...READ MORE

Feb 28, 2022 in SalesForce by surbhi
• 3,810 points
2,783 views
0 votes
1 answer

Salesforce Test Class - System.NullPointerException: Attempt to de-reference a null object

Because testAccount.account is never set, it is ...READ MORE

Mar 2, 2022 in SalesForce by surbhi
• 3,810 points
2,337 views
0 votes
1 answer

Apex Class and Apex Trigger is invisible in Salesforce Developer Console

You'll need to create a new developer ...READ MORE

Mar 8, 2022 in SalesForce by anonymous

edited Jun 19, 2023 by Khan Sarfaraz 2,078 views
0 votes
1 answer

How can i use select * in SOQL query in Salesforce?

SOQL is not the same as SQL. ...READ MORE

Mar 3, 2022 in SalesForce by CoolCoder
• 4,400 points
2,042 views
0 votes
0 answers

Salesforce.com: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record

0 In our production org, we have a ...READ MORE

Mar 17, 2022 in SalesForce by surbhi
• 3,810 points
1,862 views
0 votes
0 answers

Salesforce Test Class - System.NullPointerException: Attempt to de-reference a null object

Salesforce Test Class - Facing - System.NullPointerException: ...READ MORE

Mar 1, 2022 in SalesForce by surbhi
• 3,810 points
1,852 views
0 votes
1 answer

Retrieve the formulas from the Salesforce Formula fields

In Apex you can use "describe" calls. ...READ MORE

Mar 2, 2022 in SalesForce by surbhi
• 3,810 points

edited Jun 19, 2023 by Khan Sarfaraz 1,791 views
0 votes
1 answer

Can we create a record for Event object through lwc in Salesforce?

You can check list of supported obejcts ...READ MORE

Apr 5, 2022 in SalesForce by CoolCoder
• 4,400 points
1,736 views
0 votes
1 answer

Username/password JWT with Salesforce Named Credentials

Although Named Credentials cannot be used to ...READ MORE

Mar 2, 2022 in SalesForce by surbhi
• 3,810 points
1,727 views
0 votes
0 answers

How to Write the Test class for Salesforce Apex Aura Enabled class?

stuck in here to write a test ...READ MORE

Mar 15, 2022 in SalesForce by surbhi
• 3,810 points
1,631 views
0 votes
1 answer

How to use Database.Statful in batch apex

Move your insert to the finish method: global ...READ MORE

Mar 17, 2022 in SalesForce by CoolCoder
• 4,400 points
1,614 views
0 votes
1 answer
0 votes
1 answer

Check string value in salesforce test class

Because the field objCase.standard_or_nonstandard_c is set to ...READ MORE

Mar 3, 2022 in SalesForce by CoolCoder
• 4,400 points
1,388 views
0 votes
1 answer

Cannot login to Salesforce Sandbox via python API

Set domain='test' and generate a new token ...READ MORE

Mar 1, 2022 in SalesForce by CoolCoder
• 4,400 points
1,384 views
0 votes
0 answers

Salesforce Formula Text Value Based on Custom Field Picklist Value

on Cases, I have: Department(picklist values=Ecom, B2B, etc.) ...READ MORE

Apr 8, 2022 in SalesForce by surbhi
• 3,810 points
1,353 views
0 votes
1 answer

How to log into a salesforce.com sandbox?

My user account was created after the ...READ MORE

Mar 15, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 19, 2023 by Khan Sarfaraz 1,228 views
0 votes
1 answer

Salesforce - trigger auto-response rule after creating case through API

Less complexity, on the other hand, generally ...READ MORE

Apr 1, 2022 in SalesForce by CoolCoder
• 4,400 points
1,213 views
0 votes
1 answer

Is there any REST service available in Salesforce to Convert Leads into Accounts?

Yes and we resolved this by creating ...READ MORE

Apr 5, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 27, 2023 by Khan Sarfaraz 1,200 views
0 votes
1 answer

how to create a custom login page in salesforce.com?

Here are a few things to consider: Is ...READ MORE

Apr 6, 2022 in SalesForce by CoolCoder
• 4,400 points
1,186 views
0 votes
0 answers

How to query remote site settings from Apex

I have a future method that makes ...READ MORE

Mar 17, 2022 in SalesForce by surbhi
• 3,810 points
1,178 views
0 votes
1 answer

how to find the difference between sandbox and production in salesforce

It could be a validation rule or ...READ MORE

Apr 1, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 27, 2023 by Khan Sarfaraz 1,117 views
0 votes
0 answers

Apex (Salesforce) read json from response and store it in a string variable

I am trying to hit a API ...READ MORE

Mar 4, 2022 in SalesForce by surbhi
• 3,810 points
1,062 views
0 votes
1 answer

Trigger to Count records in self relationship salesforce

You should only use triggers if you ...READ MORE

Mar 9, 2022 in SalesForce by CoolCoder
• 4,400 points
1,021 views
0 votes
1 answer

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

Answer from Salesforce support was to include ...READ MORE

Apr 6, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 19, 2023 by Khan Sarfaraz 989 views
0 votes
1 answer

Upsert fields must be defined as unique External ID fields in Salesforce - Heroku Connect

You can use either the Salesforce record ...READ MORE

Apr 6, 2022 in SalesForce by CoolCoder
• 4,400 points
924 views
0 votes
1 answer
0 votes
2 answers

Creating Many to Many relationship between the accounts records in salesforce

In Salesforce, it is not possible to ...READ MORE

Jun 19, 2023 in SalesForce by Khan Sarfaraz
• 700 points
891 views
0 votes
1 answer

salesforce how to login with javascript without security token

OAuth2 is a security protocol that allows ...READ MORE

Apr 1, 2022 in SalesForce by CoolCoder
• 4,400 points
873 views
0 votes
0 answers

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

In logic app i'm using salesforce connector after deployment ...READ MORE

Mar 1, 2022 in SalesForce by surbhi
• 3,810 points
805 views
0 votes
1 answer

Get Tailwindcss in Salesforce org

You must to get the tailwind css ...READ MORE

Apr 6, 2022 in SalesForce by CoolCoder
• 4,400 points
781 views
0 votes
0 answers

Exposing the Salesforce Data as an Rest API

how can I expose the Sales force data ...READ MORE

Apr 8, 2022 in SalesForce by surbhi
• 3,810 points
777 views
0 votes
1 answer

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

you are not passing the parameterValues, use ...READ MORE

Mar 2, 2022 in SalesForce by surbhi
• 3,810 points
748 views
0 votes
1 answer

Environment variable as custom metadata type in Salesforce

What's the name of the external service ...READ MORE

Apr 1, 2022 in SalesForce by CoolCoder
• 4,400 points
689 views
0 votes
0 answers

Salesforce lwc - wire adaptor not able to have declared track variables as arguments

0 I am trying to pull in picklist ...READ MORE

Apr 8, 2022 in SalesForce by surbhi
• 3,810 points
668 views
0 votes
1 answer

Salesforce Master-Detail Relationship

You can't modify the Master Detail relationship's ...READ MORE

Apr 1, 2022 in SalesForce by CoolCoder
• 4,400 points

edited Jun 27, 2023 by Khan Sarfaraz 651 views
0 votes
1 answer

How to find an element in Salesforce applauncher pop up using Selenium Webdriver?

Try if this works:- driver.findElement(By.xpath(".//p[text() ='Marketing']")).click(); Hope this helps! Check ...READ MORE

Mar 17, 2022 in SalesForce by CoolCoder
• 4,400 points
647 views
0 votes
0 answers
0 votes
0 answers

Salesforce Scheduled Apex Class - Method doesn't exist

I'm attempting to create an apex class ...READ MORE

Apr 5, 2022 in SalesForce by surbhi
• 3,810 points
621 views