I was trying to develop LWC that retrieves Service Resource Id and pass it to Generate Appointment Invitation flow, which is called it from <lightning-flow> tag.
Salesforce help: Generate an Appointment Invitation URL
However, I passed two input variables the following, however got the error below.
flowInputVariables = [ { name: 'recordId', type: 'String', value: this.recordId, }, { name: 'InvitationURLPrefix', type: 'String', value: this.InvitationURLPrefix, }, ]; recordId is successfully passed from Parent LWC.
<template> <!-- Invoke a Screen flow in LWC --> <span> test2 {recordId} </span> <lightning-flow flow-api-name={flowApiName} flow-input-variables={flowInputVariables} onstatuschange={handleFlowStatusChange}> </lightning-flow> </template> I am not sure why this is not working, but I found the post similar to this: Lightning Web Component isn't available for Salesforce Scheduler Flow
Passing recordId value to flow debugging just works. So I suspect caling Scheduler Screen Flow is not worked from LWC?

recordIdvariable is passed from Parent Component as @api variable.<template if:true>to call a flow, but finally I figured this out. I passedrecordIdfrom Parent Component as<c-child-component record-id={recordId}></c-child-component>, in that case therecordIdvariable must be @api (public) on child component, I don't know this is whether feature specification, public variable can not be passed into a flow asflow-input-variables, I changed calling a flow from parent and passedrecordIddirectly, it has been worked! (but when I changedrecordIdvariable as @api, it does not work.)