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 ...
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.
...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 {...
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 ...
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 ...
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 ...
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[] {
...
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()...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
visual-workflow × 2516apex × 360
process-builder × 305
visualforce × 163
visual-flows × 139
workflow × 121
lightning × 113
lightning-web-components × 106
lightning-aura-components × 103
trigger × 88
invocable-method × 80
screen-flow × 64
community × 57
automation × 55
formula × 54
email × 40
custom-button × 36
picklist × 34
unit-test × 33
loop × 32
salesforcedx × 29
aura × 28
managed-package × 26
deployment × 26
case × 26