8 votes
Accepted

Salesforce Flow Limitations - Loop vs Batch Records

What is the difference between a transaction and interview? A transaction is one complete execution unit as far as the server is concerned. I've always explained it as this: one debug log equals one ...
user avatar
  • 433k
5 votes

Summer 22 v55.0 Flow Deployment Error

The regionContainerType field of the FlowScreenField metadata component was introduced in API version 55.0. Although it is not documented, when the component type is a Section this field is required. ...
user avatar
2 votes
Accepted

External Service in a Managed Package Doesn't Work in Subscriber Orgs

The issue you are facing is already filed as a bug in Salesforce internally(#W-11058954). According to this, users are unable to make callout for Namespace'd managed package External Services. When we ...
user avatar
  • 2,667
2 votes
Accepted

Flow -> Apex -> Salesforce REST API: why "Unauthorized endpoint"?

Screen flows run from a slightly different domain than the org's canonical domain, and so you have to be careful about how you get the URL for the org. Make sure you are getting the URL for the org ...
user avatar
  • 156
1 vote

Formula within a flow - loads of 2 part IF statements - must be a better way of doing this

You don't need the IF/TRUE/FALSE for returning a boolean formula result, simply put the logic that you want, combined with ORs... ( ContractTerm = 1 && DATEVALUE(ActivatedDate) = TODAY() + 7 ...
user avatar
  • 740
1 vote

How do I stop a Scheduled Flow from sending Email Alerts even after it is de-activated?

When you send emails, they are not immediately delivered, but instead put into a queue that will be processed over time. Unfortunately, any emails that are committed to the queue will keep on going. ...
user avatar
  • 433k
1 vote

Prepopulating company name in Lead object

If you Enable Person Accounts, the Company field is no longer required, and you can even remove it from the page entirely. Note that there are some considerations to be aware of, so try this in a ...
user avatar
  • 433k
1 vote
Accepted

Apex Class CallOut

First of all, have you considered using an External Service, instead? External Services allow you to make direct API calls to other servers without any direct Apex code. Set up an Authorization ...
user avatar
  • 433k
1 vote
Accepted

Generate a contract number

The first part of the number is easy presuming you can hardcode that as a value in the FLOW. In the solution I built in my org I called the variable startingNumber and it is of type Text with a ...
user avatar
1 vote
Accepted

Way to generate contract numbers while creation according to a particular format

Solution w/ limitations (size of table is under 200,000 records, not the Name field) Define the autonumber as {YY}{00000} and then Use a formula field to add 1 to the {YY} part and add 10 to the {...
user avatar
  • 62.3k
1 vote
Accepted

Deployment of Flow with Formula Entry Condition

Even though the Flow's API version is 55, if you are deploying using anything other than change sets, your metadata deployment tool (SFDX, ant, Workbench, Gearset, Copado, etc) needs to be running ...
user avatar
  • 62.3k
1 vote
Accepted

Flow deployment error in Copado "you must specify a record filter or a formula"

@SumitKumar I deleted the flow and rebuilt a new flow without formula and deployed. Fortunately for me I could use basic criteria instead of formula. However at least 4 other folks working on other ...
user avatar
1 vote

Test if a Time field value changed in flow decision... causing exception

As a workaround, I created a formula (text type) to reference the time field, simply TEXT(TimeField__c) and then updated my decision to reference the formula instead of the Time field. The bug is no ...
user avatar
1 vote
Accepted

Change the format of all Contacts phone numbers to 1234567891

The Salesforce UI automatically formats numbers this way, so you'll want a trigger: trigger FixNumbers on Contact (before insert, before update) { sObjectField[] phoneFields = new sObjectField[] { ...
user avatar
  • 433k
1 vote
Accepted

Changed Date in flow

You can use $Record__Prior global flow variable, in order to get original value before change. create a formula, which will return value, which should be set IF($Record__Prior.DateField__c < TODAY()...
user avatar
1 vote
Accepted

Directly update triggering record in after save flow

I have seen this is the kind of decision element being used almost most of the places. Though visually it may look same but it will become more complex when the flow grows. Also you can look above in ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible