Membership Object Reference
On this page
Overview
Memberships represent a level of access to some privledge within your company, such as Gold or Silver membership.
| Property | Value |
|---|---|
| API Name | s_c__Membership__c |
| Label | Membership |
| Plural Label | Memberships |
| Type | Custom Object |
Fields
| Field Label | API Name | Type | Required | Description |
|---|---|---|---|---|
| Display Name | s_c__Display_Name__c |
Text(255) | No | The name displayed to the customer if this Membership was used, if this is empty then Name field would be used. |
| Pricebook | s_c__Pricebook_Id__c |
Lookup (Pricebook2) | No | Provide a Price Book for members to give them special pricing. If an Account has an assigned Price Book then that Price Book will be used instead. |
| Product | s_c__Product2_Id__c |
Lookup (Product2) | No | Every membership can have an optional product associated with it that allows the purchase of the membership through your online store. If no product is selected, then the membership must be associated with the account manually or through some other method. |
| Product Category | s_c__Product_Category_Id__c |
Lookup (s_c__Product_Category__c) | No | The Product Category object that this Membership applies to, if set, then any of the product in this Product Category once purchased will save this Membership to the Account of the user who purchased it. |
| StoreConnect External ID | s_c__sC_Id__c |
Text(36) | No | StoreConnect External ID, do not modify in Salesforce |
Relationships
| Field | Type | Related Object | Relationship Name |
|---|---|---|---|
s_c__Pricebook_Id__c |
Lookup | Pricebook2 | Memberships |
s_c__Product2_Id__c |
Lookup | Product2 | Product_Membership |
s_c__Product_Category_Id__c |
Lookup | s_c__Product_Category__c | Memberships |
Referenced by
These objects hold a lookup or master-detail relationship to Membership (s_c__Membership__c). Where the referring record exists to join things together, Also links to shows what it connects this object to.
| Object | Field | Type | Relationship Name | Also links to |
|---|---|---|---|---|
| Account | s_c__Membership_Id__c |
Lookup | Accounts | — |
| s_c__Discount__c | s_c__Membership_Id__c |
Lookup | Discounts | — |
| s_c__Membership_Article__c | s_c__Membership_Id__c |
MasterDetail | Membership_Articles | s_c__Article__c |
| s_c__Membership_Page__c | s_c__Membership_Id__c |
MasterDetail | Membership_Pages | s_c__Page__c |
| s_c__Promotion_Scope__c | s_c__Membership_Id__c |
Lookup | Promotion_Scopes | — |
| s_c__Promotion2__c | s_c__Customer_Scope_Membership_Id__c |
Lookup | Promotions_v2_Customer_Scope_Membership | — |
On the storefront
Storefront templates read this object through the Membership Liquid object, written as membership in a theme.
| Salesforce field | Liquid attribute |
|---|---|
s_c__Display_Name__c |
membership.name |
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from membership.data. See custom data fields in Liquid.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.