Integration of SharinPix Form with SFS App using App Extension
Overview
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
SharinPix Form Universal Link
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>
SharinPix Form Deeplink
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 :
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
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:
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
Set up in Form Builder The prefill configuration must first be defined within the SharinPix Form Builder.
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.
Example Universal Link with Prefill
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 elementJohn%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)
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.
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:
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.
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
Example Universal Link with Comparative View
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
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.
SelectActions.
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?

