Entity Types
The Salesforce model defines entity types underdomainModelTypes, mapping business concepts to Polarion work item types.
| Property | Type | Default | Description |
|---|---|---|---|
domainModelTypes | array | [] | Top-level array containing all entity type definitions. |
domainModelTypes[].name | string | None | Unique identifier for the entity type. Used in relationships and queries. |
domainModelTypes[].polarionType | string | None | Maps to a Polarion work item type ID. If omitted, uses entity type name. |
domainModelTypes[].properties | array | [] | Property definitions for the entity type. Each maps to a Polarion field. |
domainModelTypes[].properties[].name | string | None | Property name mapping to a Polarion work item custom field or built-in field. |
CRM Entity Definitions
Relationships
Relationships connect the CRM entities with bidirectional navigation properties.| Property | Type | Default | Description |
|---|---|---|---|
relationships | array | [] | Defines all relationships between entity types. |
relationships[].from | string | None | Source entity type. Must reference a domainModelTypes[].name. |
relationships[].to | string | None | Target entity type. Must reference a domainModelTypes[].name. |
relationships[].cardinality | string | None | Multiplicity of the relationship between entities. |
relationships[].storage | string | None | Persistence mechanism. linkedWorkItems uses Polarion native links. |
relationships[].linkRole | string | None | Polarion link role ID. Must match a configured link role. |
relationships[].fromNavPropName | string | None | Navigation property added to the source entity for forward traversal. |
relationships[].toNavPropName | string | None | Navigation property added to the target entity for reverse traversal. |
CRM Relationship Definitions
Sheet Configuration for Salesforce Model
A sheet configuration using this model displays accounts with expandable opportunities and tasks:Constraints and Picker Filters
The Salesforce model can use the same constraint system as engineering models.The constraint configuration above follows the standard Powersheet pattern. Verify that your Polarion project has the corresponding document types and module folders configured.
Complete YAML Example
Mapping Decisions
| Decision | Salesforce Equivalent | Powersheet Mapping |
|---|---|---|
| Entity type name | Object (Account, Opportunity) | domainModelTypes[].name |
| Polarion type | N/A | polarionType maps to work item type |
| Lookup relationship | Account -> Opportunity | relationships with linkedWorkItems storage |
| Field | Standard/Custom field | properties[].name mapping to Polarion fields |
| Link type | Relationship type | linkRole in Polarion link role configuration |
See Also
- RTM Model — engineering requirements traceability model
- Todos Model — minimal task management model
- Domain Model Types — entity type property reference
- Relationships — relationship configuration details
- Polarion Type Mapping — how entity types map to Polarion
Source References
Source References
Code:
sf_model.yaml, constraints_pick_only.yaml, Model Helper KB articleSources
Sources
KB ArticlesSource Code
prod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/constraints_currentDocument_downstream.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/constraints_model.template.yamlpowersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/e2e/admin/admin.cy.ts