How to set up Image Sync for SharinPix Albums on Events and Tasks

Tasks and Events don’t allow the lookup field required for Image Sync. This article explains how to use a mirror object so Image Sync functions as if attached directly to Activities.

How Image Sync Works and Why Activities Are Different

Image Sync is a SharinPix feature that creates SharinPix Image records containing metadata about images, such as:

  • Date taken

  • Width and height

  • Format

  • Filename

For Image Sync to work, the following elements are required:

  1. SharinPix Component with Image Sync enabled

  2. SharinPix Image Lookup field - Each SharinPix Image record needs a field that identifies the parent record (the album where the image belongs).

  3. SharinPix Custom Metadata > SharinPix Sync Setting - This tells the SharinPix package which lookup field stores the parent record ID.

  4. SharinPix Image Sync Permission Set – Allows users to create, edit, and delete SharinPix Image records.

question

Why Activities (Tasks and Events) Are Different

Tasks and Events are part of Salesforce’s Activity model, which behaves differently from standard objects.

Key differences:

  • Custom fields for Tasks and Events are created on the shared Activity object

  • Activities do not support lookup relationships in the same way as standard objects

Because of this limitation, Image Sync cannot directly store image records against Activities.

Solution Overview

To work around this limitation, the recommended approach is to create a custom object that acts as the image host for each Activity.

The architecture works like this:

  1. When a Task or Event is created, a Flow automatically creates a corresponding record in a custom object (for example, Activity Album).

  2. The Activity stores a lookup to that custom record.

  3. The SharinPix Album and Launcher components operate on the custom object record instead of the Activity itself.

circle-info

Note: This is a suggested approach. Consider how it fits with your existing Salesforce data model, automation, and data cleanup processes, and test the configuration in a sandbox before deploying to production.

Components of the Solution

  1. Custom Object - A custom object that supports Image Sync and stores one record per Activity.

  2. Activity Lookup field - A lookup field on Task/Event pointing to the custom object.

  3. Flows

    1. Record-triggered flow - Creates the custom object record when a Task/Event is created.

    2. Screenflow for SharinPix Album - Displays the album stored on the custom object.

    3. Screenflow for Launchers - Ensures images are captured and stored in the custom object album.

  4. Setup Image Sync - configure Image Sync for the custom Object

Create the Custom Object

This object stores one record per Event or Task and hosts the SharinPix Album for the Activity.

  • Create a custom Object: ⚙️Setup > Object Manager > Create > Custom Object

    (e.g., "Activity Album")

Salesforce Trail: Create a Custom Object arrow-up-right

Create the Activity Lookup Field

A custom lookup field on the Activity (Task/Event) that relates it to its corresponding custom object record.

  • Create a custom lookup field: ⚙️Setup > Object Manager > Fields and Relationships > New

    Configuration example:

    • Field Type: Lookup Relationship

    • Related To: Activity Album

    • Label: Related Activity Album

Salesforce Trail: Data-modeling > Create a Lookup Relationshiparrow-up-right

Flows

Create new flows: ⚙️Setup > Quick Find "Flows" > "New Flow"

Record-triggered Flow

Automatically creates the related custom object record when a new Event or Task is created.

  • Configure Start

    • Object: Task or Event

    • Trigger: “A record is created”

    • Entry Conditions: None

    • Optimize for: Actions and Related Records

  • Create Records

    • How to set record field values: Manually

    • Object: custom Object

      • Set field values: None required. Salesforce automatically generates the record ID when the record is created. The flow will use that ID in the "Update Triggering Record" step.

  • Update Triggering Record

    • How to Find: Use the record that triggered the Flow

    • Conditions: None – Always Update Record

    • Set Field Values

Screen Flow for SharinPix Album

Replaces the standard SharinPix Album component on the Event page and displays the Album from the related custom object record instead.

  1. Create New Resource (Element panel)

    1. Resource Type: “Variable”

    2. API Name: “recordId”

    3. Data Type: Text

    4. Available for Input

    Salesforce expects "recordId" as the name of the input variable when a screen flow is launched from a record page

  2. Get Records - get Triggering Record

    1. Object: Event or Task

    2. Conditions: Activity Id = recordId

    3. How many Records: "Only the first record"

    4. How to Store: "Automatically store all the fields"

  3. Screen Element

    1. Hide Header

    2. Hide Footer

    3. Add SharinPix Album Component

      1. API Name: e.g., "Activity Album"

      2. Album Id: Task/Event from get Triggering Record > Activity Lookup Field > Record ID

      3. Enable Image Sync: TRUE

      4. Other preferred parameters

Screen Flow for Launchers

Replace any existing SharinPix launch components so captured images are saved to the custom Object record, not directly to the Task or Event.

Repeat steps 1 - 3b from Screen Flow for SharinPix Album

3c. Add the SharinPix Mobile Launcher component instead of the SharinPix Album

  • API Name: your desired value

  • Button Label: your desired value

  • Album Id: Task/Event from get Triggering Record > Activity Lookup Field > Record ID

  • Other preferred parameters

Setup Image Sync

Use the instructions from the Setup Image Sync articlearrow-up-right to configure Image Sync for your custom Object.

Add Screen Flows to the Task/Event's Lightning Page

Use the screen flows created above instead of a SharinPix Album component or SharinPix Launcher components on your page so they operate from your image-sync-enabled custom Object.

  1. On the Task or Event record page, ⚙️Setup > Edit Page.

  2. Add standard Flow components to the page and specify the Flow to use as the Screen Flow for SharinPix Album or the Screen Flow for Launchers as desired.

  3. OPTIONAL - Add a “Related List – Single” to your Related tab, set the Parent record as Custom Object. Edit the columns to display on the Custom Objects' Page Layout > Related Lists.

Migrating Existing Images

If images were previously uploaded directly to Tasks or Events, they will remain attached to those records.

To move them into the new custom object albums, use the SharinPix Merge Albumarrow-up-right component to merge the Activity album into the corresponding custom object album.

Last updated

Was this helpful?