Online token generation methods

SharinPix online tokens are used to display SharinPix components online within your organization or on the SharinPix mobile app, while connected to the internet.

Such tokens are commonly used:

  • In your Salesforce organization to display a SharinPix image or components such as the SharinPix album or search.

  • In the SharinPix mobile app to display a SharinPix image, album, or search.

Online tokens can be generated:

This article outlines the methods to generate online tokens.

circle-check

1. Using the SharinPix Share Selection Lightning component.

The SharinPix Share Selection component is a button allowing users to generate an online search token of images pre-selected on another SharinPix component such as the SharinPix Album, SharinPix Search and SharinPIx Related Search.

For more information on how to configure and use the SharinPix Share Selection component, refer to this article: SharinPix Share Selection

2. Using custom Apex methods

You can create your own Apex method to generate SharinPix online tokens.

The code snippet below demonstrates how to generate a SharinPix online token in an Apex method:

3. Using Apex Triggers

You can implement an automatic online token generation using an Apex Trigger and store the generated token in a Salesforce field.

Below is an example code to generate a token to view the images on a work order.

For more information on how to implement such Apex Trigger, refer to the following article: SharinPix automatic token generation (Developer-oriented)

Last updated

Was this helpful?