Newer Version Available

This content describes an older version of this product. View Latest

ObjectRelatedUrl

Represents a URL slug for a Product or Category page on a B2B Commerce or D2C Commerce LWR site. This object is available in API version 57.0 and later.

Supported Calls

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

Special Access Rules

Your org must have B2B Commerce or D2C Commerce license enabled. ObjectRelatedUrl is available for Product2 and ProductCategory records.

Fields

Field Details
LanguageCode
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The combined language and locale ISO code, which controls the language of the object-related URL. The maximum length is 8 characters.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The name of the object-related URL. This field isn’t editable.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
Required. The ID of the parent record that the UrlName refers to. ParentId can point only to Product2 and ProductCategory records, which are enabled for your org with the required permissions as part of the pilot program.
This field is a polymorphic relationship field.
Relationship Name
Parent
Relationship Type
Lookup
Refers To
Product2, ProductCategory
Scope
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Helps ensure uniqueness of the UrlName field across all records with the same Scope and LanguageCode values. The maximum length is 18 characters.
UniqueIndex
Type
string
Properties
Filter, idLookup, Nillable, Sort
Description
Ensures uniqueness for each record within your org and creates an index for lookup. This field isn’t editable.
This field is a calculated field.
UrlName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The URL slug for the record.