Generate SharinPix Shareable Form Links Automatically

Overview

This article explains how FormShareAutomation allows users to automatically generate a shareable link that launches a SharinPix Form directly from a Salesforce Flow.

Instead of using long-form URLs, a share link provides a shortened URL that can be easily distributed, for example, via email or SMS, to external or internal users. When opened, the link takes the user directly to the form, where they can fill it out and submit it.

This documentation covers the following:

circle-exclamation

Input Parameters

Below are the inputs required when using the FormShareAutomation invocable method in a Salesforce Flow. These parameters must be provided to successfully generate a SharinPix Share Url.

Parameter
Description

recordId

The Salesforce Record ID (e.g. Work Order ID) to which the form url will be associated. (Required)

templateReference

The ID, Name or Url of the SharinPix Form Template for which you want to generate the SharinPix Form Url. (Required)

nameFieldApiName

API name of a field on the record (e.g. WorkOrderNumber) to be used as the job name in the SharinPix Form.

expiry

Number of days after which the url will expire.

customParameters

Additional user-defined parameters appended to the SharinPix Form launcher URL. Can add ret_url, prefill values parameters and so on. (e.g. nameFieldApiName=Name&pvInspectionName=Room&ret_url=salesforce1://)

Anonymous User

When set to true, the URL becomes anonymous, and the form submission is not associated with any user.

Universal Link

When this is set to true, the share creates a universal link that opens the form in the SharinPix Mobile App.

Flow Configuration Guide

The following flow setup uses a Record-Triggered Flow to automatically generate a SharinPix Share URL when a Work Order is created or updated.

Step 1: Prepare Custom Field To Store Share URL

A field is needed on the Work Order object to store the generated URL. To do so, create a URL field to store the share URL.

  1. Go to Setup > Object Manager > Work Order.

  2. Click on Fields & Relationships > New.

  3. Select URL as the field type.

  4. Name the field (e.g., Share Link).

  5. Save the field.

This field will store the Form Share URL returned by the flow.

Step 2: Configure a Record-Triggered Flow

  1. Go to Setup > Flows > Click New Flow

  2. Choose Record-Triggered Flow and click Create

  3. Set the following values:

Setting
Value

Object

Work Order

Trigger

A record is created

Set Entry Conditions

None

Optimize the Flow for

Actions and Related Records

Add Asynchronous Path

Enabled

  1. Add an Action element

  2. Search for Sharinpix__FormShareAutomation

  3. On the Action modal for Sharinpix__FormShareAutomation, populate the fields as indicated below:

Field
Example Value

Template Reference

Fire Safety Inspection

Record ID

Triggering WorkOrder > Work Order ID

Expiry in Days

10

Name Field API Name

WorkOrderNumber

Custom Parameters

pvdate=09/05/2025

Anonymous User

false

Universal Link

false

triangle-exclamation

Step 4: Add Update Element

This step is used to store the URL generated by the Apex action into the custom field ShareLink__c you created on the Work Order.

  1. Add an Update element

  2. Select Use the Work Order record that triggered the flow

  3. Do not add any filter conditions.

  4. In the Set Field Values for the Work Order Record section, populate it as indicated below:

Field
Value

ShareLink__c

Outputs from sharinpix__GenerateFormTokenAutomation.url

Step 5: Save and Activate the Flow

Save the Flow and click Activate.

Step 6: Find the SharinPix Share URL

To test your flow, create a Work Order record (or the object used in your automation).

After the flow runs, the generated SharinPix Share Link will be stored in the ShareLink__c field of the Work Order. You can view it directly from the record detail page to confirm that the link was generated successfully.

Clicking the link will immediately launch the corresponding SharinPix Form, allowing the user to fill it out and submit it.

You can also verify that a corresponding SharinPix Share record has been created, containing all details related to the generated share link.

Last updated

Was this helpful?