# View a SharinPix album from the SFS (FSL) app

This article demonstrates how to make use of the SharinPix app's online mode to view a SharinPix album from the SFS app.

To do so, you will need to:

* [Generate a SharinPix token to access the SharinPix album](#generation-of-the-sharinpix-token-developer-oriented)
* [Construct the SharinPix deeplink that will launch the SharinPix mobile app to view the album](#construction-of-the-sharinpix-deeplink)
* [Create an App Extension that will make use of the URL](#creation-of-the-app-extension)

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

* This feature works only when online
* Ensure that the latest version of the SharinPix mobile app has been downloaded on your device before implementing this feature
  {% endhint %}

## Generation of the SharinPix token (Developer-Oriented)

The SharinPix token will allow user to view a SharinPix album that corresponds to a Salesforce record on the SharinPix mobile app.

To generate such tokens automatically and store them in Salesforce fields, a Salesforce Trigger can be implemented. For more information on how to implement a trigger that will automatically generate a token on Salesforce records, refer to the following SharinPix article:

[SharinPix automatic token generation (Developer-oriented)](https://docs.sharinpix.com/documentation/access-and-security/sharinpix-automatic-token-generation-developer-oriented)

## Construction of the SharinPix deeplink

Once your token has been generated and stored in a Salesforce field, go ahead and construct the SharinPix  deeplink as follows:

<mark style="color:$danger;">`sharinpix://online?token={! <`</mark>*<mark style="color:$danger;">**`FieldApiName>`**</mark>*<mark style="color:$danger;">` `</mark><mark style="color:$danger;">`}&host=app.sharinpix.com`</mark>

**Note:** The section <mark style="color:$danger;">`<`</mark>*<mark style="color:$danger;">**`FieldApiName>`**</mark>* should be replaced by the field API Name of the field storing the SharinPix token. For example:

**sharinpix://native\_app/online?token={! SharinPix\_Token\_\_c }\&host=app.sharinpix.com**

{% hint style="success" %}
**Tip:**

* The above deeplink makes use of the SharinPix mobile app **online mode** feature. This feature allows access to online features such as SharinPix images, albums and search within the SharinPix mobile app itself. For more information about the **online mode,** refer to the following article:\
  [SharinPix Mobile App: Online mode](https://docs.sharinpix.com/m/documentation/l/1530458-sharinpix-mobile-app-online-mode)
* The above configuration is also compatible with SharinPix universal links. The SharinPix online mode format for universal links is as follows:\
  <https://app.sharinpix.com/native\\_app/online?token={>! ***\<FieldApiName>*** }\&host=app.sharinpix.com
  {% endhint %}

## Creation of the App Extension

Once your SharinPix deeplink is ready, create a new App Extension. To do so, follow the steps below:

* Go to Setup then type *Field Service Mobile Settings* in the Quick Find box. Click on **Field Service Mobile Settings**.
* Click on the **Show Details** button next to the **Field Service Mobile Settings** item

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2FKluaFIAoOZ4iSE15QkXM%2Fimage%20(85).png?alt=media&#x26;token=96f2840e-10ab-4c9c-aa95-17ca5ce64437" alt=""><figcaption></figcaption></figure>

* Scroll down to the App Extensions Section
* Click on **New** to create a new App Extension
* Next, fill the App Extension details as follows:
  * For the **Type**, select **Android** if you intent to use the App Extension on Android platforms or select **iOS** if you intent to use on iOS platforms
  * For the **Launch Value**, enter the SharinPix deeplink constructed in the previous section, that is, **sharinpix://online?token={! SharinPix\_Token\_\_c }\&host=app.sharinpix.com** in our case&#x20;
  * To complete, fill the other required fields

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fqe5Ev2GOmu2M5Pp34KnO%2Fimage%20(86).png?alt=media&#x26;token=a0f70c24-17d3-4626-aec9-57d19b0e07e6" alt=""><figcaption></figcaption></figure>

To test the implementation:

* Log onto the SFS app
* Access the object on which the App Extension has been made available
* From the **Actions** menu, select the newly created App Extension. This action will launch the SharinPix mobile app to display the album
