Hi community!
I need to use Salesforce Mobile App URL Schemes to redirect the user to an LWC, but all the documentation I have found only explains how to redirect to objects and perform certain actions. Is there any way to use these URLs to redirect the user to my LWC?
1 respuesta
Hi @Josue Hernandez,
You can redirect the user to an LWC via Salesforce Mobile App URL Schemes by using a workaround that involves creating a custom Lightning component and adding it to a Salesforce page layout.
Steps:
- Create a custom Lightning component that redirects the user to your LWC.
- Add the custom Lightning component to a Salesforce page layout.
- Create a Salesforce Mobile App URL Scheme that redirects the user to the Salesforce page that contains your custom Lightning component.
- Open the Salesforce mobile app and enter the Salesforce Mobile App URL Scheme into the URL field.
The user will be taken to the Salesforce page that contains your custom Lightning component, which will then redirect them to your LWC.