Skip to main content
added 97 characters in body
Source Link
mkzyk
  • 65
  • 2
  • 9

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.

enter image description here

 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. Is this stillSo I suspect caling Scheduler Screen Flow is not workingworked from LWC?

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.

enter image description here

 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
  Is this still not working?

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.

enter image description here

 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?

edited title
Link
mkzyk
  • 65
  • 2
  • 9

Calling Scheduler Screen Flow from LWC

Source Link
mkzyk
  • 65
  • 2
  • 9

Calling Scheduler Screen from LWC

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.

enter image description here

 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
Is this still not working?