Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Dipesh Bhardwaj

Dipesh Bhardwaj

★ JanBask Expert
Share
44Questions
88Answers
87.8KViews on questions

Is it fine to get '204 No Content' in PATCH method?

Status code 204 No Content does not mean an error code. It still reflects a successful operation. This is from the MDN docs: The common use case is to return 204 as a result of a PUT request, updating a resource, without changing the current content of the page displayed to the user. Additionally, Status Codes and…

Salesforce

Answered May 11, 2023 · 1.2K Views Read answer →

How to perform Map of get vs containskey in apex efficient check?

containsKey in apex and get have the same performance characteristics. The majority of the CPU time used will be within the hashCode and equals methods for the objects used as keys. Poorly designed keys will have poor performance characteristics, particularly when you're Using Custom Types in Map Keys and Sets. In…

Salesforce

Answered May 9, 2023 · 1.8K Views Read answer →

Why is the npm run build command failing?

Npm run build command is failing because windows still has some tweaks necessary, if you look in package.json in the scripts field you'll see the run command, which probably looks something like NODE_ENV=development webpack - you can just remove the NODE_ENV=development part since windows doesn't allow assigning…

Salesforce

Answered May 8, 2023 · 1.2K Views Read answer →

How to resolve the error in flow formulas for conditions?

It's possible that what you're seeing as flow formulas for conditions is a bug, so I'd submit a case to follow to validate whether or not what you're trying to do is supported. I would also consider moving the logic of what is in the formula to the condition formula itself. This may or may not be possible depending on…

Salesforce

Answered May 4, 2023 · 1.6K Views Read answer →

How to use a hyperlink apex?

To use a hyperlink apex - In your code you are preparing link itself since description is long text area field Just iterate over contacts and add Name in description Try like this. //Putting the Contacts as Hyperlinks in Description Field for(Account acc : AccList){ for(Contact c : contacts){ acc.Description += c.Name…

Salesforce

Answered May 3, 2023 · 1.6K Views Read answer →

How to resolve the error - Object of type bytes is not JSON serializable?

You should be following the steps found in Inserting a Document with Blob Data to resolve the error - Object of type bytes is not JSON serializable. That is, your payload must be a multipart/form-data content, with one element called entity_document with the appropriate JSON, and a second element that has the name…

Salesforce

Answered May 3, 2023 · 2.1K Views Read answer →

What difference does the virtual class contain from the abstract class?

The difference the virtual class can contain from the abstract class has historically been quite subtle. Both virtual and abstract classes allow you to extend the class (i.e. create child classes that inherit non-private methods and variables) A virtual class can be instantiated directly, whereas an abstract class…

Salesforce

Answered May 3, 2023 · 1.1K Views Read answer →

Trigger.new vs trigger.newmap - what's the difference?

trigger.new is simply a list of the records being processed by the trigger, so if all you need to do is loop through them then you can use that. trigger.newMap just allows you to target specific records by Id should you not need to process everything, or if you need to map other records back to these.

Salesforce

Answered May 1, 2023 · 1.1K Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.