Embed SharinPix Aura components in LWC using Screen Flows

This article provides a workaround that will permit developers to use SharinPix Aura components in their custom LWC.

For this implementation, you will need:

  • A Screen Flow that will embed the desired SharinPix component

  • Add the Screen Flow to your LWC using the solution provided by UnofficialSFarrow-up-right site

circle-exclamation

To embed a SharinPix Aura component in a LWC, follow the steps below:

  • Create a Screen Flow that will embed the desired SharinPix Aura component. For this example, we will be using the SharinPix Upload Button component

  • In the Flow, create a variable of type Text labeled as recordId. Mark the variable as Available for input as demonstrated below:

  • Next, add the SharinPix Upload Button component in a Screen element and use the variable recordId for the Album Id parameter as shown below:

circle-check
  • Save and activate the Flow when done.

  • Next, configure the ScreenFlow LWC available in the UnofficialSF package so as to call your Flow along with the correct parameters. The code snippet below demonstrates how this can be performed:

customLWC.html

customLWC.js

circle-exclamation
circle-check

Last updated

Was this helpful?