# SharinPix Plan to Album

{% hint style="warning" %}
**Note:**

This component is dependent on the SharinPix Plan component.
{% endhint %}

{% hint style="info" %}
The **SharinPix Plan To Album** component permits to extract a Plan as an image and save it in a specific SharinPix Album.
{% endhint %}

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-82307f153e792a3320866eb08beb05c15eff968d%2Fimage%20\(17\)%20\(1\).png?alt=media)

{% hint style="info" %}
**Information:**

This feature is only available on Lightning. It can be used on:

* On Page Builder
* On Desktop
* On Mobile
* Salesforce Community *(Note: Community users need access to the SharinPix object,**SharinPix Plan Items** , to use the SharinPix Plan to Album component)*
  {% endhint %}

## Getting Started

To use the SharinPix Plan to Album component, you simply need to drag and drop the component from the Lightning App Builder onto your page layout.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-dff2d854c60f7520c27ce8e84d620ca31e7c7eb7%2Fimage%20\(18\)%20\(1\).png?alt=media)

## Lightning Component Parameters

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-96897b935c48d8d48b2aaf863f89b1b491cafc8d%2Fimage%20\(19\)%20\(1\).png?alt=media)

* **Generate Plan Button Label:** Used to specify the button's label. The default value is **Export Plan to Album**.
* **Record ID:** The record Id of the current record.
* **Plan Data Source Record Id:** Id of Record containing the field specified by Plan Data Field API Name from where the plan data is to be retrieved. Leave blank to use the current record Id.
* **Plan Data Field API Name:** API name of the field containing plan-related information. Current Record Id will be used if Plan Data Source Id is not specified. This field needs to be a Long Text Area.
* **SharinPix Plan Setting Name:** SharinPix Plan Setting Name configured for the related plan component.
* **Marker label field API Name:** Field API Name of the marker title to be displayed on the Plan.
* **Album ID:** Used to specify the album ID to which images will be saved. To use the current record ID, leave this field blank.
* **Export Plan in Full View:** If checked, the whole plan will be exported as an image instead of the current zoomed-in view on the SharinPix Plan Component.
* **Component Id:** Component ID to be matched by the SharinPix Album component on the page.

{% hint style="info" %}
**Note:**

* For the [SharinPix Image Sync](https://docs.sharinpix.com/documentation/image-sync/setup-sharinpix-image-sync) feature to be activated on the destination album when the image is exported from the Plan to Album component, you should specify a value for the **Component ID** parameter on the **Plan to Album** component and use the same value for the **SharinPix Album**'s **Component ID** parameter.
* To capture the plan including marker labels, the **Marker label field API Name** should be specified. Omitting the Marker Label field API Name will only capture the plan including the markers but excluding the marker labels.
  {% endhint %}

## Demo

The picture below shows a plan in the SharinPix Plan component

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-46370406550a9f66a6bcde2d01d54b0922fff8ba%2FplanToAlbum4%20\(1\)%20\(1\).png?alt=media)

The picture below shows the target album on an Account record **before** using the SharinPix Plan To Album component:

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-158025c20e1e75b61739a6f45143e1b77689568a%2Fimage%20\(20\)%20\(1\).png?alt=media)

To export an image of a plan from the SharinPix Plan component to the target album, click on the button **Export Plan to Album**.

The picture below shows the result in the target album **after** using the SharinPix Plan To Album component:

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-0185fabbf21e08a5fffc8fc1a55f59aa8a24d80f%2Fimage%20\(21\)%20\(2\).png?alt=media)

If the option **Export Plan in Full View is enabled,** the image will be in full view as shown in the picture below.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-f5c540376f63e1d1480f7058a81187dadda13a51%2Fimage%20\(22\)%20\(1\).png?alt=media)
