---
schema_version: "1"
id: a6003c27342cb9b09069b0b7ef1052215005d3f9199b80356163fa9e1f2a88d5
title: ProductMedia
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_productmedia.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_productmedia.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0b68627856782437546362dade469d917f70ffef0e41ff4991215123b3f3b271
description: Represents the rich media, including images and attachments, that can be added to products.This object is available in API version 49.0 and later.
---
# ProductMedia

Represents the rich media, including images and attachments, that can be added to products.This object is available in API version 49.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Special Access Rules

You must have the B2B Commerce license and a CMS workspace to access product media.

## Fields

| Field | Details |
| --- | --- |
| CurrencyIsoCode | 
Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

The default value is USD. Possible values are:

- USD—U.S. Dollar







 |
| ElectronicMediaGroupId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

Unique ID of the media group.

This field is a relationship field.

Relationship Name

ElectronicMediaGroup

Relationship Type

Lookup

Refers To

ElectronicMediaGroup



 |
| ElectronicMediaId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

Unique ID of the media record.

This field is a polymorphic relationship field.

Relationship Name

ElectronicMedia

Relationship Type

Lookup

Refers To

ManagedContent, ManagedContentInfo



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed a record related to this record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

Name of the media.



 |
| ProductId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the product that the media is associated with.

This field is a relationship field.

Relationship Name

Product

Relationship Type

Lookup

Refers To

Product2



 |
| SortOrder | 

Type

int

Properties

Create, Defaulted on create, Filter, Group, Nillable, Sort, Update

Description

The order that product media is displayed in.



 |

## Associated Objects

[ProductMediaChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 57.0)

Change events are available for the object.

[ProductMediaHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

[ProductMediaOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[ProductMediaShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.