Integration of SharinPix Form with SFS App using App Extension

Overview

circle-info

SharinPix Form can be integrated with the SFS (FSL) App using App Extension.

This article covers the following:

circle-exclamation

Getting Started

One way to launch the SharinPix App from the SFS App using the SharinPix Form is to create an App Extension. The latter can embed a URL referring to the SharinPix Form on the SharinPix App, where the form can be filled out.

In this article, you will learn how the SharinPix Form URL is integrated into the SFS mobile App using the SFS App Extension.

SharinPix Form URLs

The format for universal links (URL) to open a form in the SharinPix app is as follows:

https://app.sharinpix.com/native_app/form?token=<sharinpix-form-token>

The format for deeplinks to open a form in the SharinPix app is as follows:

sharinpix://form?token=<sharinpix-form-token>

Creation of the App Extension

An App Extension lets users quickly access the SharinPix Form in the SharinPix Mobile App. In this section, we will create an App Extension that launches 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 for your Organization. In our case, it is Field Service Mobile Settings.

  • For the Type, select Android if you intend to use the App Extension on Android platforms or select iOS if you want to use it 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 intend to use the App Extension on iOS platforms:

circle-exclamation
circle-check
  • For the field Label , enter Fill Fire Safety Form

  • For the field Name , enter Fire_Safety_Form

  • For the field Scoped To Object Types , enter WorkOrder

  • Click on Save

circle-exclamation

SharinPix Form - Additional Parameters

Additional parameters can be used to access additional features when using the SharinPix Form. The features that can be used are:

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 Universal URL will then be as follows:

https://app.sharinpix.com/native_app/form?token={!SharinPix_Form_Token__c}&{!Your__Custom_Field__c}

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

https://app.sharinpix.com/native_app/form?token={!$SharinPix_Form_Token__c}&sp_params={!$Your_Custom_Field__c}

For example Your_Custom_Field__c can have the following value:

pvName=John%20Doe&pvCount=23

Prefill Functionality in SharinPix Form

SharinPix Form can automatically retrieve and display values from related Salesforce records. This feature, known as prefill functionality , allows form fields to be dynamically populated with data from the record where the form is launched.

Configuration Steps

  1. Construct the Deeplink Once configured, you must construct the deeplink (SharinPix Form URL) with the values to prefill.

Prefill Parameter

To enable the prefill option, you must use the pv parameter followed by the API name of the form element.

  • Syntax: pv<ElementApiName>=<Encoded Prefill Value>

The value must be URL-encoded before being passed.

The following example shows a universal link that pre-fills the Name field with John Doe :

https://app.sharinpix.com/native_app/form?token=<Your Form Token>&pvName=John%20Doe

In this case:

  • pvName = API name of the form element

  • John%20Doe = URL-encoded value for “John Doe”

Multiple Prefills Using Formula Fields

If you need to prefill multiple fields in the same form, you can concatenate the parameters in a Salesforce Formula field.

  • Formula Example: "pvName=" & TEXT(Name) & "&pvAddress=" & TEXT(Address)

circle-exclamation
  • Universal Link Example with Formula Field: https://app.sharinpix.com/native_app/form?token=<Your Form Token>&sp_params={!Formula_Field__c}

This way, you can dynamically pass several prefill values at once using a single formula field.

circle-info

Info: For more information on the Prefill Feature, please follow the article below: Default or Prefill Values

Pre-Populate Select/Multi-Select Options

Select/Multi-Select field values can be prefilled by appending the form URL with the po, the API name of the Select/Multi-Select input field, followed either by the label;value pair or by only providing the value.

The following shows the two options:

Method
Description

pomulti_select=value1;value2

Passing only the value will result in the form using the value as label also.

poselect=label1:value1;label2;value2

Passing the label and value will result in the form using the label as label and value as value. This can be used for specific cases where the label is not the same as the value.

circle-exclamation

Comparative View

The Comparative View feature allows users to compare current form responses with previous submissions. This is especially valuable for follow-up forms, recurring inspections, or progress tracking, where referencing past inputs helps provide updated or more accurate information.

Comparative Parameter

To enable the comparative option, you must include the ref_response_url parameter in the universal link.

  • Syntax: ref_response_url=latestFormResponse

The following universal link demonstrates how to add the comparative parameter to a deeplink:

https://app.sharinpix.com/native_app/form?token=<Your Form Token>&ref_response_url=latestFormResponse

circle-info

Info:

For more information on the Comparative Feature, please follow the article below: Initial/Follow-up Form Responses (Comparative)

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 Actions.

  • Then select Inspection Form. This option refers to the newly-created App Extension.

  • You will then be directed to the SharinPix Form via the SharinPix app.

Last updated

Was this helpful?