Posts

Showing posts from January, 2026

Salesforce Fact #974 | External credential not configured issue fix

After deploying the external credential and external service registrations to the higher orgs, you might encounter the error from flow while invoking the callout: 'The external credential isn't fully configured. Try reconnecting to the external system or contact your Salesforce admin'. To fix this issue, Go to the external credential -> Under Principals section, check the authentication status -> if it is not configured, click dropdown -> edit -> populate the correct Client Id & Client Secret -> Save. This will update the authentication status to Configured.

Salesforce Fact #973 | Date/Time calculation in screen flow

Image
Suppose we have an input Date & Time element in the screen flow and after populating the input, we would like to perform some calculation by adding/subtracting hours and minutes. We can implement the logic using couple of screen elements and formula resource. Attached are the screenshots.

Salesforce Fact #972 | Query row count in get related records(beta)

Image
While using the Get Related Records(Beta) feature in flow, the total query row count is based on the parent record only. In this example, An account has 2 related contacts and 3 related opportunities. In apex, the total query rows count is 6 whereas in autolaunched flow, it is returned as 1. Attached are the screenshots.

Salesforce Fact #971 | Template expression in LWC HTML(Beta)

Image
From Spring'26, LWC HTML file would support complex template expressions. Here are a couple of examples.

Salesforce Fact #970 | Another example of bind HTML classes

Image
Here's another example of Bind HTML classes in LWC. In this example, we are fetching a list of account records and highlighting the ones of type = 'Customer - Direct' and NumberOfEmployees > 10000. Attached are the screenshots.

Salesforce Fact #969 | LWC GraphQL mutation with address field

Image
While creating records with address field using GraphQL mutation feature, we need to specify each of the constituting field values of the address. For country and state, the statecode and countrycode counterparts won't work. Example error: contains a field not in 'ContactCreateRepresentation': 'MailingCountryCode' And while fetching the data, we need to specify the constituent fields as the compound field won't work. Example error: Validation error (FieldUndefined@[uiapi/ContactCreate/Record/MailingAddress/value]) : Field 'value' in type 'Contact_MailingAddress_CompoundField' is undefined Attached is the screenshot of the correct syntax.

Salesforce Fact #968 | Spring'26 fetch picklist values per record type without callout

Image
With the upcoming Spring'26 release, it would be possible to fetch picklist values for a particular record type without making a callout. Reference:  https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_extract_picklist_values.htm&release=260&type=5 Attached is the screenshot.

Salesforce Fact #967 | LWC GraphQLmutation with variables

Image
We can pass variables in the mutation operations in LWC GraphQL. In this example, we are passing the LastName, Email and Phone field values as variables in the Create Contact operation. Reference:  https://developer.salesforce.com/docs/platform/lwc/guide/reference-graphql-mutation.html Attached are the screenshots.