13

Custom Labels are available in Flows. When you create a Formula, the labels are under "System and Global Variables"


12

You can assign a fault connector and screen to any lookup or DML action. This should capture a validation rule...although I'm not sure if it will on update of a child causing a validation rule on the parent. All you need to do is create a screen with a text output that uses the merge field {!$Flow.FaultMessage}: Then connect the action element to the ...


7

The InvocableMethod interface is bulkified. This allows you to map flows within Process Builder in a bulkified manner. As the documentation states, your parameter must be... A list of a primitive data type or a list of lists of a primitive data type – the generic Object type is not supported. This means that to pass in a collection, you actually need to ...


6

From the input got from Pranay's answer, I was able to launch flow from quick action. I have created a quick action in Account like: Then I created recordId variable in my flow. Using recordId I added a record lookup to account details. No need to pass account id to flow. recordId is a reserved variable which holds current record id.


6

According to the documentation on Getting Flow Variables, you should call myFlow.getVariableValue: String accountId = (String)myFlow.getVariableValue('accountId');


5

I ran into this same exact scenario. Another solution that worked for me was changing the @InvocableMethod parameter to: List<List<String>> and then reference the variable accordingly in the rest of the code. Once I did that and went back to my visual workflow APEX call element, I could choose or create a collection in the input parameters.


4

When you build a flow one element has to be selected as start element There is a green arrow on above screenshot .Click that to assign it as start element .The green click Icon appears on all the elements and one element has to be set as start element .


4

the new Process Builder (beta) version only supports the latest version of the Google Chrome browser. Please try Chrome and if it's a rendering issue that should get resolved. Hope that helps.


4

Any classes that reference contact object will get this error unless they’re on API version 30 https://success.salesforce.com/issues_view?id=a1p30000000T3FOAA0.. So the simple solustion for your problem is update the version of your class to 30. Also note that there can be classes that cannot be updated to API version 30 because they require test methods ...


4

iframes have been disabled in Salesforce since 2015 to prevent clickjack. Please see resource here: https://help.salesforce.com/articleView?id=IFRAME-or-Web-Tab-Content-Displays-Blank-Page-1327107637323&type=1


4

It says that you only ran a validation check. It even shows that in your screenshot (Check Only: true). Since all you did was validate it, it was not installed, so you will not be able to find it on the system yet.


4

The obvious approach is to use Dynamic Forms which goes GA in Winter '21. Using this functionality you can conditionally show individual fields or field sections using "visibility rules". You need to be careful to ensure that universally required (i.e. required at the schema level) fields are always visible. Individual fields can be shown or not ...


3

I don't know if you specifically need to use the Process.Plugin interface, but if you annotate your method with the @InvocableMethod annotation, you can call your Apex via Flow and via Process Builder (an added bonus). There are some examples in the documentation: public class AccountQueryAction { @InvocableMethod(label='Get Account Names' description='...


3

Figured it out, was actually rather simple. I'm operating in the Leads object here. STEP 1 Create a Flow. The flow only needs two elements: a) a text variable, input only, which is called PB_LeadID b) a Delete Record action, which has a criteria of Id = PB_LeadID STEP 2 Create a Process: a) Insert your criteria (i.e. on Create, if fields are equal to ...


3

This is definitely possible, as long as the size of the group and number of daily emails is small enough to let you stay within flow and email limits (limits discussed in more detail at end) There are different approaches, depending on if you want to send one mass email to all of them, or a single customized email to each recipient. I'll assume the latter. ...


3

I think if you put this in a formula in your flow it should work for you: SUBSTITUTE( JSENCODE( {!fieldname} ) , '\r\n', '<br>') The substitute function simply replaces the new line character '\r\n' with the tag you need <br>. The JSENCODE encodes your field as save for javascript. I don't think that should be necessary, but without it the ...


3

Since you can only pass in the list of Ids, you'll need to query the database to return the leads you're working with so that you can access other fields on those. You'll also want to create a Map<Id,Lead> as well to make it easier on yourself. Something like the following should get you pretty close: Public class AutoConvertLeads{ @...


3

Answering my own question here. Turns out, you can pass a singleton parameter into a list<sObject> Invokable Method. It appears to be like a trigger, where you write it for bulk, but it executes OK on an individual. I should have thought to test for that sooner.


3

As the error says, you need to contact Support. Once any file has an error of the Internal Server Error variety, all remaining files will also have that same error. There really is (most likely) only one broken flow in the bunch; you might try deploying them one at a time to find the offending file. I can ask my contacts to tell me what the error maps to, ...


3

Here's what I've learned through trial and error: 1) I am unable to deploy my flows to a partner dev org that already has a namespace, as reported in my post here yesterday. 2) I am able to deploy to a partner dev org with no namespace. The links to platform events are intact when deployed. However.... 3) When you set a namespace on that org, it breaks ...


3

You can refer custom permission in workflows, ProcessBuilder and Visualworkflow using $Permission. If the name of my custom permission is Enable_Contact_Creation, then to refer it in formula it will be $Permission.Enable_Contact_Creation Src :https://help.salesforce.com/articleView?id=000221057&type=1 https://automationchampion.com/2017/06/29/getting-...


3

Download the Installation file, go to the Workbench, log in, click on Migration > Deploy, choose the downloaded file, click Next, and finally Deploy. You can use other tools if you prefer, but this is by far the easiest way for now.


3

As of Spring '20, you can use the GetFirst action in the CollectionProcessors package.


3

You do not need a validation rule or a field. You can build this logic in the Flow directly. That design will look like the following: Obviously, you'll need to tweak this a bit to suit your purposes, but it should be straightforward once you have the proper layout.


3

The answer is "yes". There are a number of different ways to deal with it, depending on the UX you want, how this process should be initiated and the level of coding you are happy to do. My immediate recommendation would be to use a Screen Flow (this is covered in the Trailhead for flows), perhaps initiated from a Lightning Action that you add to the global ...


3

You can use the design resource of the aura component bundle to control which attributes are exposed from lightning components to Flows. Here is the developer document: Aura Component Bundle Design Resources For instance, lets us say that you have a component attribute in this way, <aura:component implements="lightning:availableForFlowScreens" access=...


3

The Flow mechanism is bulkified. This means if you return a List<String>, it will map to a single variable, while List<List<String>> will map to a collection variable. You'll need to adjust your code to use List<List<String>> in order for this to work.


2

Yes, you can do that with a visual flow. It's simply evaluating a formula where the Event's StartDateTime, depending on how you set it up, evaluates using a formula similar to: DATETIMEVALUE( TEXT( MONTH( Today() ) ) & "/" & TEXT( DAY( Today() ) ) & "/" & TEXT( YEAR(Today() ) ) & TEXT(7:59 AM) ) Using Apex code it would be much ...


2

Something like this should work. You will obviously have to substitute in your values like your flow name, and the parameters, if any, you want to pass in, but this should get you started. {!RequireScript("/soap/ajax/29.0/connection.js")} String base = URL.getSalesforceBaseUrl(); var url = {!base}+encodeURI('/flow/FLOW_NAME&SOME_PARAM={!sObject.Id}&...


2

A possible workaround could be making a masterflow initiating the appropriate flow. You then only have to start this masterflow, and passing the name of the 'subflow' as a parameter: <flow:interview name="StartAppropriateFlow"> <apex:param name="flowName" value="{!NameOfTheFlow}" /> </flow:interview> hope this helps. Note that ...


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