Integration of SharinPix App with SFS (FSL) App using App Extension
One method used to launch the SharinPix App from the SFS App is by creating an App Extension. The latter can be used to embed a deeplink URL referring to a location on the SharinPix App where the images will be uploaded.
In this article, you will learn how the SharinPix deeplink URL is integrated in the SFS mobile App using the SFS App Extension.
Creation of the App Extension
An App Extension permits the user to quickly access the SharinPix app. In this section, we will create an App Extension that will launch the SharinPix app from the SFS app.
Go to Setup then type Field Service Mobile Settings in the Quick Find box. Click on Field Service Mobile Settings.
Click on the Field Service Mobile Settings item (Or any settings relevant to your Organization).

Scroll down towards App Extensions Section.
Click on Add. You will be prompted with the screen below:

For the Field Service Mobile Settings, select the relevant record to your Organization. In our case it is Field Service Mobile Settings.
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 following SharinPix Deeplink URL for Android platforms:
Or use the following SharinPix Deeplink URL if you intent to use the App Extension on iOS platforms:
For the field Label, enter Take Pictures
For the field Name, enter SharinPix Native Url
For the field Scoped To Object Types, enter WorkOrder
Click on Save
Creation of an App Extension embedding a Field Service Mobile Flow
You can also use App Extensions to launch Field Service Mobile Flows from the SFS app.
To do so, you simply need to select **Flow **as the Type and use the Flow's API name as the Launch Value in the App Extension detail page as demonstrated below:
Launching the SharinPix app
You can now launch the SharinPix app from SFS.
Open the SFS app.
Choose the Service Appointment record of a WorkOrder record.
Select Show Actions.

Select Take Pictures. This option refers to the newly-created App Extension.

You will then be directed to the SharinPix app.

Using an App Extension to view pictures
Using the same steps, you can also setup an App Extension to view pictures taken on this device for a specific record.
Those pictures are held a few days (depending on the configuration) on the mobile App after it has been uploaded to Salesforce.
You can create for this a "View Pictures" App Extension with the current values:
For the Type, select Android if you intent to use the App Extension on Android platforms or select iOS if you intent to use iOS platforms.
For the Launch Value, enter the following SharinPix View Images Deeplink URL for Android platforms:
For the Launch Value, enter the following SharinPix View Images Deeplink URL for iOS platforms:
Using this you will have a View Pictures command in the bolt menu to access all the pictures taken for a specific record from FSL.
Using an App Extension to view pictures in Salesforce mobile app
If you need to access to images stored in a record by another user, you should rely on a deeplink URL to Salesforce mobile App and add an App Extension to open it on a specific record.
You can create for this a "View ONLINE Pictures" App Extension with the current values:
For the Type, select Android if you intent to use the App Extension on Android platforms or select iOS if you intent to use iOS platforms.
For the Launch Value, enter the following SharinPix View Images Deeplink URL for Android platforms:
For the Launch Value, enter the following SharinPix View Images Deeplink URL for iOS platforms:
Using an App Extension to view pictures online in the SharinPix mobile app
Using the SharinPix app online mode, you can also setup an App Extension to access online features in the SharinPix mobile app.
The online mode makes use of a SharinPix URL or deeplink that allows access to online features such as SharinPix images, albums and search within the SharinPix mobile app itself.
The SharinPix online mode format for deeplinks is as follows:
sharinpix://online?token=<SharinPix Token>&host=app.sharinpix.com
The SharinPix online mode format for universal links is as follows:
https://app.sharinpix.com/native_app/online?token=<SharinPix Token>&host=app.sharinpix.com
The example below demonstrates how to configure an App Extension that will open a SharinPix album within the SharinPix mobile app:
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
To complete, fill the other required fields

