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 →
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 →
You need to call get from AggregateResult, not List. Instead of ar.get('cnt'), you could for instance do ar[0].get('cnt').
Salesforce
Answered May 9, 2023
·
1.2K Views
Read answer →
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 →
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 →
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 →
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 →
Test cases in salesforce are nothing more than Apex classes. Take a look at this documentation for an introduction. Think of Test Classes as a programmatic way of testing use cases. For instance, if you have a button that calls a certain function, you'd want to call that in your code and then check whether or not the…
Salesforce
Answered May 3, 2023
·
1.1K Views
Read answer →
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 →
No, it's not possible. There's just no data recorded in the first place prior to enabling salesforce track field history on the field.
Salesforce
Answered May 2, 2023
·
1.0K Views
Read answer →
In case of starting sfdx: retrieve source from org unknown exception, check to make sure your versions match your org version API version in VisualStudio. Open - https://.my.salesforce.com/services/wsdl/metadata The header comment will show your API version: Salesforce.com Metadata API version ##.0 In Visual Studio…
Salesforce
Answered May 2, 2023
·
3.7K Views
Read answer →
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 →