I created a Lightning Web Component which is a custom compact layout to use on the community. The component allows me to show buttons with conditions since dynamic forms are not available on the Experience Cloud.

To add action to the compact layout. I add a record on my custom metadata type that contains the url to the screen flow :

custom metadata record

I added recordId variable to the flow :

enter image description here

and I have a screen to display the Id : enter image description here

When I click on the button the flow appears but it's unable to get current record Id :

enter image description here

enter image description here

  • what type of licenses are your community users using as opportunity is only visible towards partner community users help.salesforce.com/s/…
    – Gilhil
    Oct 2, 2023 at 8:57
  • @Gilhil we are using Partner Community license.
    – jojo
    Oct 2, 2023 at 9:23
  • As I understand that You have an LWC component ( it is mounted into one of the Digital Experience Site Page). And This LWC has some fields and buttons and this component screen is dynamic according to some rules. This LWC retrieve field and button ( actions ) from Custom Meta Data. But flow button is not working as expected. Flow link is redirected with record id but flow screen is not populated the record id data. To identify issue I need to check more to understand the problems. So you may write some console log statement and check the url is correct or not. Some time URL can be contain two Oct 3, 2023 at 10:46

1 Answer 1


The problem was the URL format. The URL format on community flow pages accepts arguments in the following form :


As it's explained in the documentation.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .