I have a LWC component, that has a very simple public property:
@api recordId;
And I have a LWC config, that exposes this public property to the Flow Builder
<targets>
<target>lightning__FlowScreen</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__FlowScreen">
<property name="recordId" type="String" label="Record Id" default="{!recordId}" required="true"></property>
</targetConfig>
</targetConfigs>
In my flow, there is a standard variable recordId, and when I put my LWC in one of these screen actions, I can even select the "Record Id" and fill it with {!recordId}
. But: recordId
(in the LWC) never gets populated. It is populated in the Flow. At least it seems that way, if I output {!recordId} in a "display text"
Why?