Skip to main content

I am trying to embed 'lightning/Event/o/home' in vf page. So that in field service settings -> dispatcher console ui-> custom actions-> myAction. And this MyAction will launch vf page which will have this lightning page embedded. 

I have used lwc and place the link ('lightning/Event/o/home')in lwc component and placed this component in Aura component and this aura component is  placed in aura app. I have deployed all three from vs code using sfdx.  

Now in my vf age i am calling out this aura app and aura component. Now I have given you the jist of my code. 

But why I am seeing refused to connect . 

My requirement is: there will be a custom action on field service dispatcher console which will launch the 'lightning/o/Event/home' inside a modal.  

Could you please help me how to achieve it  

 

@* Salesforce Developers * @* Salesforce Field Service * 

1 respuesta
  1. 24 may 2025, 18:01

    Hi @Adarsh Gupta

     

    Even though Visualforce pages can be used in custom actions, Including flows or Lightning web components via Lightning Out in Visualforce pages isn’t supported. See

    Lightning Out Considerations and Limitations.

    Using iframes in Visualforce pages isn’t recommended. It can cause Content Security Policy (CSP) violations. 

    Refer: 

    https://help.salesforce.com/s/articleView?id=service.pfs_create_custom_actions.htm&type=5

     

     

    Thanks!

0/9000