Async/await functionality does not function as expected within LWC components when using Firefox.
We tried to use it in our LWC async/await but it is not working only on Firefox. Here is a simple example. On the Firefox this alert doesn’t show.
We tried to use it in our LWC async/await but it is not working only on Firefox. Here is a simple example. On the Firefox this alert doesn’t show.
I have a custom sObject which has among others the following fields: email__c (email), some_date__c (date), external_id__c (integer) and criteria__c (string). There are multiple records for this sObject that have the same value for email__c. If an email address returned in the results has multiple records we want to select the record with the most recent date. If there is …
How to Choose the Initial Record from a Set of Multiple Records Read More »
QUESTION I’m looking for some assistance in a simple SOQL statement. I haven’t written SQL for over 15 years (so a real newbie to SOQL) Looking for what i believe must be a simple SOQL statement. I used SQL many years ago but now have an urgent need to get my data volumes down, fast. …
How to Choose the Initial Record from a Set of Multiple Records Read More »
QESTION It’s fairly easy to create an ApexClass in the SOAP Tooling API: This immediately creates the class in your org. However, I would like to be able to utilize the MetadataContainer functionality to create classes in this manner: When I try this, I get an error as follows: Adding a line to populate the Content field …
Generating an Apex Class Using the SOAP Tooling API and MetadataContainer Read More »
QUESTION I’m using the SOAP Tooling API to try and update a CustomField (posting to /services/Soap/T/29.0) The method signature is SaveResult[] update(sObject[] sObjects) – and CustomField extends sObject so it shouldn’t be a problem to send that down the wire. However I encounter: INVALID_TYPE: Must send a concrete entity type. Then I looked at my raw XML on the wire, I can’t say I’m surprised! …
Performing an UPDATE on a Custom Field Using the SOAP Tooling API Read More »
QUESTION I need to be able to check if an org has Person Accounts enabled via Apex Code as part of package. What’s the best way to do this without making the package require Person Accounts be enabled in any org in which it’s installed? ANSWER Method 1 Try to access the isPersonAccount property on an Account and catch any exception that occurs …
Question How can we know State and Country Picklist is enabled in the Salesforce org or not using Apex code SOLUTION When you enable that feature SFDC creates a countryCode field for each object where the address exists. Then you could check if that field exist using something like this: Other generic option:
Description This article gives you sample code to access the state and country pick-list values if it is enabled in your Salesforce org. Solution Makes sure the state and country picklist is enabled in the ORG. 1. Following is the sample code for accessing all the country codes: 2. Following is the sample code for …
How To Access Country & State Picklist Values In Apex Read More »
What do triggers entail “Triggers in Apex can be activated to initiate custom actions either prior to or following modifications to Salesforce records, including inserts, updates, or deletions.” What categories of triggers exist in Salesforce There are two trigger categories Trigger Event Categories Syntax for Triggers “What do Trigger Context Variables encompass?” Sequence of Execution …
What do Apex Triggers represent in Salesforce?| Insights from the Developer Guide Read More »
Create a new article Publish a draft Article Set a schedule for archiving a published article “Please be aware that if the scheduledDate is left blank or set as null, the article will be archived right away.” Abort the scheduled archiving of a published article Remove an article from the archived section Delete a draft …