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:
SharinPix Component with Image Sync enabled
SharinPix Image Lookup field - Each SharinPix Image record needs a field that identifies the parent record (the album where the image belongs).
SharinPix Custom Metadata > SharinPix Sync Setting - This tells the SharinPix package which lookup field stores the parent record ID.
SharinPix Image Sync Permission Set – Allows users to create, edit, and delete SharinPix Image records.
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:
When a Task or Event is created, a Flow automatically creates a corresponding record in a custom object (for example, Activity Album).
The Activity stores a lookup to that custom record.
The SharinPix Album and Launcher components operate on the custom object record instead of the Activity itself.
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
Custom Object - A custom object that supports Image Sync and stores one record per Activity.
Activity Lookup field - A lookup field on Task/Event pointing to the custom object.
Record-triggered flow - Creates the custom object record when a Task/Event is created.
Screenflow for SharinPix Album - Displays the album stored on the custom object.
Screenflow for Launchers - Ensures images are captured and stored in the custom object album.
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
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
Related to: custom Object
Configuration example:
Field Type: Lookup Relationship
Related To: Activity Album
Label: Related Activity Album
Salesforce Trail: Data-modeling > Create a Lookup Relationship
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
Triggering Record > Activity Lookup Field = Record Id from Create Record
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.

Create New Resource (Element panel)
Resource Type: “Variable”
API Name: “recordId”
Data Type: Text
✅ Available for Input
Salesforce expects "recordId" as the name of the input variable when a screen flow is launched from a record page
Get Records - get Triggering Record
Object: Event or Task
Conditions: Activity Id = recordId
How many Records: "Only the first record"
How to Store: "Automatically store all the fields"
Screen Element
✅ Hide Header
✅ Hide Footer
Add SharinPix Album Component
API Name: e.g., "Activity Album"
Album Id: Task/Event from get Triggering Record > Activity Lookup Field > Record ID
Enable Image Sync: TRUE
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 article 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.
On the Task or Event record page, ⚙️Setup > Edit Page.
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.
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 Album component to merge the Activity album into the corresponding custom object album.
Last updated
Was this helpful?

