# 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)](/documentation/access-and-security/sharinpix-automatic-token-generation-developer-oriented.md)

## 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="/files/OgiVUmZBkEniKRNudsyu" 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="/files/LzXNqwmdCHUT1dOC6JRP" 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sharinpix.com/documentation/integrations/salesforce-field-service/view-a-sharinpix-album-from-the-sfs-fsl-app.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
