16 votes
Accepted

How to show a screen flow as a Listview button on any object?

As of today (Spring 22), there isn't a true equivalent of the Flow Quick Action for List Views, per se. You can launch a Flow from List Views, however. Get the Flow's URL (you can see it when you ...
Jeff Kranz's user avatar
  • 1,957
8 votes
Accepted

How to fix LWC Flow Screen Component required value/default value issue

Immediately after posting my question, I stumbled upon the solution. Or a solution. I simply deleted the offending properties from the .js-meta.xml file, and I was able to deploy my change. Then I ...
Jason Clark's user avatar
  • 11.9k
6 votes
Accepted

Pass a variable out of LWC and up to Screen flow dynamically

You have correctly exposed the LWC's 'outputTest' property with @api annotation as well as declared it's role as outputOnly in the component meta definition file. (Digression: Omitting the role ...
dino ursic's user avatar
  • 2,333
5 votes
Accepted

How to pass custom parameters to screen flow in public community?

Okay. I figured this out. Once you have added the flow component to the community page, you need to click on it. In the input you should see your input parameters. In my situation, for the UniqueToken ...
paulK's user avatar
  • 323
4 votes

Split the values by a comma and pass it to a collection variable

The Flow engine can't do this natively, so you'll need an apex action to help with this. You can create one yourself, or you'll find UnofficialSF already have an action that will do this for you. ...
Nick C's user avatar
  • 6,585
4 votes
Accepted

lightning-combobox issue with Salesforce Mobile app in Screen Flow

That is likely an issue related to Salesforce on Android, rather than your development. Is it an issue on iOS? LWC in flows are still new enough that this isn't surprising. Also, you can debug a ...
Coogle's user avatar
  • 445
4 votes
Accepted

How do I remove the last instance of a character combination using formulas?

If you are always anticipating that the last two characters are going to be ", " (because that's how you're constructing the list), you could use LEFT(). Something like, LEFT(name_collection,...
shannonsans's user avatar
  • 4,733
4 votes
Accepted

Flow is going back to first screen after clicking FINISH button on screen component

When you have a component that uses lightning:flow, it is your responsibility to ensure that you "close" the flow UI when the user presses Finish. This is covered in the documentation and I'...
Phil W's user avatar
  • 36.1k
4 votes
Accepted

How to dynamically change Flow embedded inside LWC

Just changing the flow-api-name attribute will not change the flow, you need to completely rerender the lightning-flow component. Here is the code snippet that I had written for my blog post: Call ...
Rahul Gawale's user avatar
  • 12.2k
3 votes

Can I reference a flow variable in a custom lighting component placed on a flow screen?

Yes you can, your component needs to implement lightning:availableForFlowScreens , the variable name in flow should match the attribute name in your lightning aura component. <aura:component ...
Pranay Jaiswal's user avatar
3 votes

Why does the second instance of my wire adapter not work when I am using @api variables?

Every wire is always invoked at least once with no error or data before being called with the actual data or error info. You will find this described in many other wire-related questions' answers here....
Phil W's user avatar
  • 36.1k
3 votes
Accepted

List has no rows for assignment in visualforce controller

PageReference's getContent and getContentAsPDF are treated as callouts. In other words, they happen as a separate, synchronous transaction. As such, a Visualforce page called this way won't be able to ...
sfdcfox's user avatar
  • 490k
3 votes
Accepted

Usage LWC in flow returns error when package creation

The component reference in your flow is currently: <extensionName>c:navigateButton</extensionName> This needs to be updated to use the namespace prefix for your package. If your package ...
Phil W's user avatar
  • 36.1k
3 votes

Dynamically provide values to getRecords wire adapter

Ok, so after 30 mins of trying a few more things I got there, I had seen another question where someone suggested moving the records array of objects out on it's own and then you can refer to it ...
user24186's user avatar
3 votes
Accepted

How to redirect to start of the flow using LWC embedded in the same flow

There is no such thing as a FlowNavigationStartEvent, but you can engineer your component and flow to cooperate to achieve what you want. I would address this by: Having an output only property for ...
Phil W's user avatar
  • 36.1k
3 votes
Accepted

How to evaluate if a row was selected from a Flow: Data Table component

One way to do this is to assign the count of the selected rows output from the data table component to a variable in your flow and use a 'greater than' operator in your decision. To do this, ...
Callum MacErlich's user avatar
3 votes
Accepted

What is the 'ids' system variable in salesforce?

This is actually pretty easy to follow, once you find out how it works. Basically, this is just normal HTTP standards working in unison. To start off, when you submit a form, it creates an HTTP ...
sfdcfox's user avatar
  • 490k
3 votes

Call a Screen Flow from Apex

You cannot run a screen flow from Apex. You need to use a UI mechanism to launch them, such as lightning-flow for LWC. In Apex there's no UI context - Apex is entirely backend - so the flow cannot ...
Phil W's user avatar
  • 36.1k
3 votes

ShowToastEvent does not fire from LWC placed on Screen Flow

The ShowToastEvent event does not work when the component is used in a Flow launched by a URL button. If you really need a toast, you can make your own component: https://salesforcecodex.com/...
fred's user avatar
  • 3,370
3 votes
Accepted

How to restrict users accessing the Custom Metadata Type Record?

Custom Metadata Types are intended to hold configuration for your app, so having these read is not a problem (and you should not bother with "WITH SECURITY_ENFORCED" which, BTW, is replaced ...
Phil W's user avatar
  • 36.1k
3 votes
Accepted

How to make a screen flow available in a public digital experience page?

I think this is your issue: LWC Digital Experience Unauthorized Access ok, I figured out my issue; thanks to rene winkelmeyer's "How to build LWR sites with Experience Cloud", specifically ...
BritishBoyinDC's user avatar
2 votes

"lightning__RecordPage is not a flow related target" while saving a LWC that is used in a flow?

It somehow does not work when we have multiple targets of different type (especially with Flow target) with multiple targetConfig. I even tested by adding masterLabel, decription as well as with the ...
Milan Nakum's user avatar
2 votes
Accepted

Labels not showing on radio button inside a Flow (called by lightning component)

Just an idea, did you check that the actual text it's not there? Inspect in the browser. May be some CSS is affecting the text and making it white, so it is there but you can't see it.
Matías Quintana's user avatar
2 votes
Accepted

How to create an Object-agnostic flow which automatically determines the object and deletes a record?

All you need to delete the records is the recordId to query the records and delete it. Note you don't need the Object Name at all for your use case if it is just deleting the records. Now to make it ...
Mohith Shrivastava's user avatar
2 votes
Accepted

Functionality Limitations with Experience Sites: Screen Flows+?

There is no public resource about any limitations as there are no limitations for flow in the Experience Builder Site. One important thing is to make sure you use Experience Builder and not classic VF ...
Mohith Shrivastava's user avatar
2 votes
Accepted

Launch the same screen flow from different buttons

Here's an option: Instead of using Quick Actions, use Custom Buttons of Type URL Every screen flow has a URL that you can find in the Flow dropdown View Details and Versions Add input variables to ...
cropredy's user avatar
  • 71.3k
2 votes
Accepted

Launch a screen flow using a modal window using LWC only?

Currently embedding flows in lightning web components is not possible. Workaround to use a flow in lightning experience is by using the Aura component, create a popup, and embedding the flow using ...
Rishab's user avatar
  • 36
2 votes
Accepted

Screen Flow - Address Lightning Component is missing the CountryCode

The Address component only provides you with values as you noted and as is documented. If you were to insert the record, then CountryCode & StateCode would be populated based on the value you ...
Kris Goncalves's user avatar
2 votes
Accepted

Why does the second instance of my wire adapter not work when I am using @api variables?

The reason my code was not working was because the default attribute for LWC properties are not supported in Screen flows.
Svante Jonsson's user avatar
2 votes

No profiling information for SOQL operations (Apex Class in Profile)

Here is the issue. Per @sfdcfox. We had action.setSTorable() as part of the call out to the apex method. It's unclear to me the mechanism that was causing this to fail, but the primary reason is that ...
thinker's user avatar
  • 1,432

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