Integration of SharinPix App with SFS (FSL) App using App Extension

circle-info

Information:

Salesforce Field Service (SFS) was formerly known as Field Service Lightning (FSL).

circle-exclamation

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

circle-info

Working around Salesforce App Extension limitations

Since there is a restriction on the number of characters an App Extension can have, a custom field can be added with the value containing all other mobile app parameters. The Deeplink URL will then be as follows:

sharinpix://upload?token={!SharinPix_Token__c}&{!Your__Custom_Field__c}

On iOS, since the Deeplink is encoded by Salesforce Field Service (SFS), the deeplink URL should then be written as follows:

sharinpix://upload?token={!SharinPix_Token__c}&sp_params={!Your_Custom_Field__c}

For example Your_Custom_Field__c can have the following value:

checklist=Bedroom;Kitchen&mode=systemcam

circle-exclamation
circle-check

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:

circle-check

Launching the SharinPix app

circle-exclamation

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:

circle-check

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

circle-info

Note:

  • The section <SharinPix Token> in the deeplink and universal link formats above should be replaced by the desired SharinPix token.

  • For more information about the SharinPix mobile app online mode configuration, refer to the following article: SharinPix Mobile App: Online mode

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

circle-check

Last updated

Was this helpful?