Skip to content

The open alternative to Salesforce, designed for AI.

Declare the messageListMember INDEX view and backfill both message list junction targets (#25468)

Félix Malfait7463210eb084
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-upgrade-version-command.module.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-upgrade-version-command.module.ts
index bd8dfce5128..c935c2959dc 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-upgrade-version-command.module.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-upgrade-version-command.module.ts
@@ -1,14 +1,19 @@
import { Module } from '@nestjs/common';
+import { TypeOrmModule } from '@nestjs/typeorm';
import { WorkspaceIteratorModule } from 'src/database/commands/command-runners/workspace-iterator.module';
import { ConvertLogicFunctionsToPrebuiltCommand } from 'src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788338950836-convert-logic-functions-to-prebuilt.command';
import { BackfillRecordFormCommand } from 'src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788524477000-backfill-record-form.command';
+import { BackfillMessageListJunctionTargetsCommand } from 'src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616074386-backfill-message-list-junction-targets.command';
+import { CreateMessageListMemberViewCommand } from 'src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616075386-create-message-list-member-view.command';
import { MarkPlatformOwnedStandardObjectsSystemCommand } from 'src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616958245-mark-platform-owned-standard-objects-system.command';
import { TypeORMModule } from 'src/database/typeorm/typeorm.module';
import { ApplicationModule } from 'src/engine/core-modules/application/application.module';
import { FeatureFlagModule } from 'src/engine/core-modules/feature-flag/feature-flag.module';
+import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
import { WorkspaceManyOrAllFlatEntityMapsCacheModule } from 'src/engine/metadata-modules/flat-entity/services/workspace-many-or-all-flat-entity-maps-cache.module';
import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache.module';
+import { WorkspaceMigrationRunnerModule } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-runner/workspace-migration-runner.module';
import { WorkspaceMigrationModule } from 'src/engine/workspace-manager/workspace-migration/workspace-migration.module';
import { WorkspaceSchemaMigrationRunnerActionHandlersModule } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-runner/action-handlers/workspace-schema-migration-runner-action-handlers.module';
@@ -16,16 +21,20 @@ import { WorkspaceSchemaMigrationRunnerActionHandlersModule } from 'src/engine/w
imports: [
ApplicationModule,
FeatureFlagModule,
+ TypeOrmModule.forFeature([FieldMetadataEntity]),
TypeORMModule,
WorkspaceCacheModule,
WorkspaceIteratorModule,
WorkspaceManyOrAllFlatEntityMapsCacheModule,
WorkspaceMigrationModule,
+ WorkspaceMigrationRunnerModule,
WorkspaceSchemaMigrationRunnerActionHandlersModule,
],
providers: [
ConvertLogicFunctionsToPrebuiltCommand,
BackfillRecordFormCommand,
+ BackfillMessageListJunctionTargetsCommand,
+ CreateMessageListMemberViewCommand,
MarkPlatformOwnedStandardObjectsSystemCommand,
],
})
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616074386-backfill-message-list-junction-targets.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616074386-backfill-message-list-junction-targets.command.ts
new file mode 100644
index 00000000000..34f4e1dbeac
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616074386-backfill-message-list-junction-targets.command.ts
@@ -0,0 +1,290 @@
+import { InjectRepository } from '@nestjs/typeorm';
+
+import { Command } from 'nest-commander';
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import { FieldMetadataType, RelationType } from 'twenty-shared/types';
+import { isDefined } from 'twenty-shared/utils';
+import { Repository } from 'typeorm';
+
+import { ProvisionedWorkspaceCommandRunner } from 'src/database/commands/command-runners/provisioned-workspace.command-runner';
+import { WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service';
+import { type RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspace.command-runner';
+import { invalidateFieldMetadataCache } from 'src/database/commands/upgrade-version-command/utils/invalidate-field-metadata-cache.util';
+import { RegisteredWorkspaceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-workspace-command.decorator';
+import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
+import { isFieldMetadataSettingsOfType } from 'src/engine/metadata-modules/field-metadata/utils/is-field-metadata-settings-of-type.util';
+import { type FlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/flat-entity-maps.type';
+import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { WorkspaceMigrationRunnerService } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service';
+
+// messageListMember is the junction between messageList and person. Each side
+// of the many-to-many points at the junction column leading to the other side.
+const MESSAGE_LIST_JUNCTIONS = [
+ {
+ label: 'messageList.members',
+ junctionRelationFieldUniversalIdentifier:
+ STANDARD_OBJECTS.messageList.fields.members.universalIdentifier,
+ junctionTargetFieldUniversalIdentifier:
+ STANDARD_OBJECTS.messageListMember.fields.person.universalIdentifier,
+ },
+ {
+ label: 'person.listMemberships',
+ junctionRelationFieldUniversalIdentifier:
+ STANDARD_OBJECTS.person.fields.listMemberships.universalIdentifier,
+ junctionTargetFieldUniversalIdentifier:
+ STANDARD_OBJECTS.messageListMember.fields.list.universalIdentifier,
+ },
+] as const;
+
+type MessageListJunction = (typeof MESSAGE_LIST_JUNCTIONS)[number];
+
+type ResolvedBackfill = {
+ label: string;
+ junctionRelationFieldMetadataId: string;
+ junctionTargetFieldMetadataId: string;
+};
+
+@RegisteredWorkspaceCommand('2.39.0', 1788616074386)
+@Command({
+ name: 'upgrade:2-39:backfill-message-list-junction-targets',
+ description:
+ 'Backfill the junction target field id on both sides of the messageList/person many-to-many (messageList.members and person.listMemberships) for workspaces provisioned before it was declared. The 2-25 backfill only covered messageList.members, so person.listMemberships still renders as a plain one-to-many on the person record page instead of a list picker.',
+})
+export class BackfillMessageListJunctionTargetsCommand extends ProvisionedWorkspaceCommandRunner {
+ constructor(
+ protected readonly workspaceIteratorService: WorkspaceIteratorService,
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ private readonly workspaceMigrationRunnerService: WorkspaceMigrationRunnerService,
+ @InjectRepository(FieldMetadataEntity)
+ private readonly fieldMetadataRepository: Repository<FieldMetadataEntity>,
+ ) {
+ super(workspaceIteratorService);
+ }
+
+ override async runOnWorkspace({
+ workspaceId,
+ options,
+ }: RunOnWorkspaceArgs): Promise<void> {
+ const isDryRun = options.dryRun ?? false;
+
+ const { flatFieldMetadataMaps } =
+ await this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'flatFieldMetadataMaps',
+ ]);
+
+ const backfills = MESSAGE_LIST_JUNCTIONS.map((messageListJunction) =>
+ this.resolveBackfill({
+ messageListJunction,
+ flatFieldMetadataMaps,
+ workspaceId,
+ }),
+ ).filter(isDefined);
+
+ if (backfills.length === 0) {
+ return;
+ }
+
+ this.logger.log(
+ `${isDryRun ? '[DRY RUN] ' : ''}Backfilling ${backfills
+ .map(({ label }) => label)
+ .join(', ')} junction target for workspace ${workspaceId}`,
+ );
+
+ if (isDryRun) {
+ return;
+ }
+
+ const updatedFieldMetadataIds = await this.applyBackfills({
+ backfills,
+ workspaceId,
+ });
+
+ if (updatedFieldMetadataIds.length === 0) {
+ this.logger.warn(
+ `No message list junction field was updated for workspace ${workspaceId}, its metadata changed since the cache was computed`,
+ );
+
+ return;
+ }
+
+ await invalidateFieldMetadataCache({
+ workspaceId,
+ workspaceMigrationRunnerService: this.workspaceMigrationRunnerService,
+ });
+ }
+
+ // Both sides are written together so an interrupted upgrade never leaves the
+ // list side migrated and the person side not, which would be invisible until a rerun.
+ private async applyBackfills({
+ backfills,
+ workspaceId,
+ }: {
+ backfills: ResolvedBackfill[];
+ workspaceId: string;
+ }): Promise<string[]> {
+ return this.fieldMetadataRepository.manager.transaction(
+ async (entityManager) => {
+ const fieldMetadataRepository =
+ entityManager.getRepository(FieldMetadataEntity);
+ const updatedFieldMetadataIds: string[] = [];
+
+ for (const {
+ label,
+ junctionRelationFieldMetadataId,
+ junctionTargetFieldMetadataId,
+ } of backfills) {
+ // Re-read under the transaction: the cache the resolution ran against
+ // can lag the row (another run may already have set the target), and
+ // settings is overwritten as a whole document.
+ const fieldMetadata = await fieldMetadataRepository.findOne({
+ where: { id: junctionRelationFieldMetadataId, workspaceId },
+ lock: { mode: 'pessimistic_write' },
+ });
+
+ if (
+ !isDefined(fieldMetadata) ||
+ !isFieldMetadataSettingsOfType(
+ fieldMetadata.settings,
+ FieldMetadataType.RELATION,
+ ) ||
+ fieldMetadata.settings.relationType !== RelationType.ONE_TO_MANY
+ ) {
+ this.logger.warn(
+ `${label} is no longer a one to many relation for workspace ${workspaceId}, skipping`,
+ );
+
+ continue;
+ }
+
+ if (
+ fieldMetadata.settings.junctionTargetFieldId ===
+ junctionTargetFieldMetadataId
+ ) {
+ continue;
+ }
+
+ await fieldMetadataRepository.update(
+ { id: junctionRelationFieldMetadataId, workspaceId },
+ {
+ settings: {
+ ...fieldMetadata.settings,
+ junctionTargetFieldId: junctionTargetFieldMetadataId,
+ },
+ },
+ );
+
+ updatedFieldMetadataIds.push(junctionRelationFieldMetadataId);
+ }
+
+ return updatedFieldMetadataIds;
+ },
+ );
+ }
+
+ // Mirrors validateJunctionTargetSettings so the backfill can never write a
+ // setting the metadata layer would have rejected on a normal field update.
+ private resolveBackfill({
+ messageListJunction,
+ flatFieldMetadataMaps,
+ workspaceId,
+ }: {
+ messageListJunction: MessageListJunction;
+ flatFieldMetadataMaps: FlatEntityMaps<FlatFieldMetadata>;
+ workspaceId: string;
+ }): ResolvedBackfill | undefined {
+ const {
+ label,
+ junctionRelationFieldUniversalIdentifier,
+ junctionTargetFieldUniversalIdentifier,
+ } = messageListJunction;
+
+ const junctionRelationFlatFieldMetadata =
+ flatFieldMetadataMaps.byUniversalIdentifier[
+ junctionRelationFieldUniversalIdentifier
+ ];
+
+ if (!isDefined(junctionRelationFlatFieldMetadata)) {
+ this.logger.log(
+ `No ${label} field for workspace ${workspaceId}, skipping`,
+ );
+
+ return undefined;
+ }
+
+ const junctionRelationSettings = junctionRelationFlatFieldMetadata.settings;
+
+ if (
+ !isFieldMetadataSettingsOfType(
+ junctionRelationSettings,
+ FieldMetadataType.RELATION,
+ ) ||
+ junctionRelationSettings.relationType !== RelationType.ONE_TO_MANY
+ ) {
+ this.logger.warn(
+ `${label} is not a one to many relation for workspace ${workspaceId}, skipping`,
+ );
+
+ return undefined;
+ }
+
+ const junctionTargetFlatFieldMetadata =
+ flatFieldMetadataMaps.byUniversalIdentifier[
+ junctionTargetFieldUniversalIdentifier
+ ];
+
+ if (!isDefined(junctionTargetFlatFieldMetadata)) {
+ this.logger.warn(
+ `No junction target field for ${label} in workspace ${workspaceId}, skipping`,
+ );
+
+ return undefined;
+ }
+
+ if (
+ junctionTargetFlatFieldMetadata.objectMetadataId !==
+ junctionRelationFlatFieldMetadata.relationTargetObjectMetadataId
+ ) {
+ this.logger.warn(
+ `Junction target field for ${label} is not on the junction object in workspace ${workspaceId}, skipping`,
+ );
+
+ return undefined;
+ }
+
+ const junctionTargetSettings = junctionTargetFlatFieldMetadata.settings;
+
+ if (
+ !isFieldMetadataSettingsOfType(
+ junctionTargetSettings,
+ FieldMetadataType.RELATION,
+ ) ||
+ junctionTargetSettings.relationType !== RelationType.MANY_TO_ONE
+ ) {
+ this.logger.warn(
+ `Junction target field for ${label} is not a many to one relation in workspace ${workspaceId}, skipping`,
+ );
+
+ return undefined;
+ }
+
+ // A standard relation has exactly one valid junction target, so a dangling
+ // id and an id pointing at another field are both repaired.
+ if (
+ junctionRelationSettings.junctionTargetFieldId ===
+ junctionTargetFlatFieldMetadata.id
+ ) {
+ this.logger.log(
+ `${label} junction target already set for workspace ${workspaceId}, skipping`,
+ );
+
+ return undefined;
+ }
+
+ return {
+ label,
+ junctionRelationFieldMetadataId: junctionRelationFlatFieldMetadata.id,
+ junctionTargetFieldMetadataId: junctionTargetFlatFieldMetadata.id,
+ };
+ }
+}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616075386-create-message-list-member-view.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616075386-create-message-list-member-view.command.ts
new file mode 100644
index 00000000000..0fb02d9f82b
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616075386-create-message-list-member-view.command.ts
@@ -0,0 +1,142 @@
+import { Command } from 'nest-commander';
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import { isDefined } from 'twenty-shared/utils';
+
+import { ProvisionedWorkspaceCommandRunner } from 'src/database/commands/command-runners/provisioned-workspace.command-runner';
+import { WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service';
+import { type RunOnWorkspaceArgs } from 'src/database/commands/command-runners/workspace.command-runner';
+import { getStandardFlatEntitiesToCreateOrThrow } from 'src/database/commands/upgrade-version-command/2-10/utils/get-standard-flat-entities-to-create-or-throw.util';
+import { ApplicationService } from 'src/engine/core-modules/application/application.service';
+import { RegisteredWorkspaceCommand } from 'src/engine/core-modules/upgrade/decorators/registered-workspace-command.decorator';
+import { type FlatViewField } from 'src/engine/metadata-modules/flat-view-field/types/flat-view-field.type';
+import { type FlatView } from 'src/engine/metadata-modules/flat-view/types/flat-view.type';
+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';
+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service';
+
+const LIST_MEMBER = STANDARD_OBJECTS.messageListMember;
+
+const LIST_MEMBER_VIEW_UNIVERSAL_IDENTIFIER =
+ LIST_MEMBER.views.allMessageListMembers.universalIdentifier;
+
+const LIST_MEMBER_VIEW_FIELD_UNIVERSAL_IDENTIFIERS = Object.values(
+ LIST_MEMBER.views.allMessageListMembers.viewFields,
+).map((viewField) => viewField.universalIdentifier);
+
+@RegisteredWorkspaceCommand('2.39.0', 1788616075386)
+@Command({
+ name: 'upgrade:2-39:create-message-list-member-view',
+ description:
+ 'Create the messageListMember standard INDEX view and its columns on existing workspaces. twenty-standard authors its own INDEX views and messageListMember was the only standard object shipped without one, so its record index page had no view to render.',
+})
+export class CreateMessageListMemberViewCommand extends ProvisionedWorkspaceCommandRunner {
+ constructor(
+ protected readonly workspaceIteratorService: WorkspaceIteratorService,
+ private readonly applicationService: ApplicationService,
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ private readonly workspaceMigrationValidateBuildAndRunService: WorkspaceMigrationValidateBuildAndRunService,
+ ) {
+ super(workspaceIteratorService);
+ }
+
+ override async runOnWorkspace({
+ workspaceId,
+ options,
+ }: RunOnWorkspaceArgs): Promise<void> {
+ const isDryRun = options.dryRun ?? false;
+
+ const { flatObjectMetadataMaps, flatViewMaps, flatViewFieldMaps } =
+ await this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'flatObjectMetadataMaps',
+ 'flatViewMaps',
+ 'flatViewFieldMaps',
+ ]);
+
+ if (
+ !isDefined(
+ flatObjectMetadataMaps.byUniversalIdentifier[
+ LIST_MEMBER.universalIdentifier
+ ],
+ )
+ ) {
+ this.logger.log(
+ `messageListMember object does not exist for workspace ${workspaceId}, skipping`,
+ );
+
+ return;
+ }
+
+ const { twentyStandardFlatApplication } =
+ await this.applicationService.findWorkspaceTwentyStandardAndCustomApplicationOrThrow(
+ { workspaceId },
+ );
+
+ const { allFlatEntityMaps: standardAllFlatEntityMaps } =
+ computeTwentyStandardApplicationAllFlatEntityMaps({
+ now: new Date().toISOString(),
+ workspaceId,
+ twentyStandardApplicationId: twentyStandardFlatApplication.id,
+ });
+
+ const viewsToCreate = getStandardFlatEntitiesToCreateOrThrow<FlatView>({
+ standardFlatEntityMaps: standardAllFlatEntityMaps.flatViewMaps,
+ existingFlatEntityMaps: flatViewMaps,
+ universalIdentifiers: [LIST_MEMBER_VIEW_UNIVERSAL_IDENTIFIER],
+ });
+
+ const viewFieldsToCreate =
+ getStandardFlatEntitiesToCreateOrThrow<FlatViewField>({
+ standardFlatEntityMaps: standardAllFlatEntityMaps.flatViewFieldMaps,
+ existingFlatEntityMaps: flatViewFieldMaps,
+ universalIdentifiers: LIST_MEMBER_VIEW_FIELD_UNIVERSAL_IDENTIFIERS,
+ });
+
+ if (viewsToCreate.length === 0 && viewFieldsToCreate.length === 0) {
+ this.logger.log(
+ `messageListMember view already exists for workspace ${workspaceId}, skipping`,
+ );
+
+ return;
+ }
+
+ this.logger.log(
+ `${isDryRun ? '[DRY RUN] ' : ''}Creating ${viewsToCreate.length} view(s) and ${viewFieldsToCreate.length} view column(s) for messageListMember in workspace ${workspaceId}`,
+ );
+
+ if (isDryRun) {
+ return;
+ }
+
+ const result =
+ await this.workspaceMigrationValidateBuildAndRunService.validateBuildAndRunWorkspaceMigration(
+ {
+ isSystemBuild: true,
+ workspaceId,
+ applicationUniversalIdentifier:
+ twentyStandardFlatApplication.universalIdentifier,
+ allFlatEntityOperationByMetadataName: {
+ view: {
+ flatEntityToCreate: viewsToCreate,
+ flatEntityToDelete: [],
+ flatEntityToUpdate: [],
+ },
+ viewField: {
+ flatEntityToCreate: viewFieldsToCreate,
+ flatEntityToDelete: [],
+ flatEntityToUpdate: [],
+ },
+ },
+ },
+ );
+
+ if (result.status === 'fail') {
+ throw new Error(
+ `Failed to create messageListMember view for workspace ${workspaceId}: ${JSON.stringify(result, null, 2)}`,
+ );
+ }
+
+ this.logger.log(
+ `Created messageListMember view for workspace ${workspaceId}`,
+ );
+ }
+}
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/__tests__/2-39-workspace-command-1788616074386-backfill-message-list-junction-targets.command.spec.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/__tests__/2-39-workspace-command-1788616074386-backfill-message-list-junction-targets.command.spec.ts
new file mode 100644
index 00000000000..df26966e93b
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/__tests__/2-39-workspace-command-1788616074386-backfill-message-list-junction-targets.command.spec.ts
@@ -0,0 +1,362 @@
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+import {
+ FieldMetadataType,
+ RelationOnDeleteAction,
+ RelationType,
+} from 'twenty-shared/types';
+import { type Repository } from 'typeorm';
+
+import { type WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service';
+import { BackfillMessageListJunctionTargetsCommand } from 'src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616074386-backfill-message-list-junction-targets.command';
+import { invalidateFieldMetadataCache } from 'src/database/commands/upgrade-version-command/utils/invalidate-field-metadata-cache.util';
+import { type FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
+import { type FlatEntityMaps } from 'src/engine/metadata-modules/flat-entity/types/flat-entity-maps.type';
+import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
+import { type WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { type WorkspaceMigrationRunnerService } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-runner/services/workspace-migration-runner.service';
+
+jest.mock(
+ 'src/database/commands/upgrade-version-command/utils/invalidate-field-metadata-cache.util',
+);
+
+const invalidateFieldMetadataCacheMock = jest.mocked(
+ invalidateFieldMetadataCache,
+);
+
+const WORKSPACE_ID = '20202020-0000-0000-0000-000000000001';
+const LIST_MEMBER_OBJECT_METADATA_ID = '20202020-0000-0000-0000-000000000002';
+const MEMBERS_FIELD_METADATA_ID = '20202020-0000-0000-0000-000000000003';
+const LIST_MEMBERSHIPS_FIELD_METADATA_ID =
+ '20202020-0000-0000-0000-000000000004';
+const LIST_MEMBER_PERSON_FIELD_METADATA_ID =
+ '20202020-0000-0000-0000-000000000005';
+const LIST_MEMBER_LIST_FIELD_METADATA_ID =
+ '20202020-0000-0000-0000-000000000006';
+const DANGLING_FIELD_METADATA_ID = '20202020-0000-0000-0000-000000000007';
+const UNRELATED_FIELD_METADATA_ID = '20202020-0000-0000-0000-000000000008';
+
+const buildFlatFieldMetadata = (
+ overrides: Partial<FlatFieldMetadata>,
+): FlatFieldMetadata =>
+ ({
+ id: '20202020-0000-0000-0000-000000000099',
+ universalIdentifier: '20202020-0000-0000-0000-000000000098',
+ type: FieldMetadataType.TEXT,
+ settings: null,
+ ...overrides,
+ }) as FlatFieldMetadata;
+
+const buildFlatFieldMetadataMaps = (
+ flatFieldMetadatas: FlatFieldMetadata[],
+): FlatEntityMaps<FlatFieldMetadata> => ({
+ byUniversalIdentifier: Object.fromEntries(
+ flatFieldMetadatas.map((flatFieldMetadata) => [
+ flatFieldMetadata.universalIdentifier,
+ flatFieldMetadata,
+ ]),
+ ),
+ universalIdentifierById: Object.fromEntries(
+ flatFieldMetadatas.map((flatFieldMetadata) => [
+ flatFieldMetadata.id,
+ flatFieldMetadata.universalIdentifier,
+ ]),
+ ),
+ universalIdentifiersByApplicationId: {},
+});
+
+// Carries a second settings key so the tests prove the backfill spreads the
+// stored settings instead of replacing them.
+const ONE_TO_MANY_SETTINGS = {
+ relationType: RelationType.ONE_TO_MANY,
+ onDelete: RelationOnDeleteAction.SET_NULL,
+};
+
+const buildMembersFlatFieldMetadata = (
+ settingsOverrides: Record<string, unknown> = {},
+) =>
+ buildFlatFieldMetadata({
+ id: MEMBERS_FIELD_METADATA_ID,
+ universalIdentifier:
+ STANDARD_OBJECTS.messageList.fields.members.universalIdentifier,
+ type: FieldMetadataType.RELATION,
+ relationTargetObjectMetadataId: LIST_MEMBER_OBJECT_METADATA_ID,
+ settings: { ...ONE_TO_MANY_SETTINGS, ...settingsOverrides },
+ });
+
+const buildListMembershipsFlatFieldMetadata = (
+ settingsOverrides: Record<string, unknown> = {},
+) =>
+ buildFlatFieldMetadata({
+ id: LIST_MEMBERSHIPS_FIELD_METADATA_ID,
+ universalIdentifier:
+ STANDARD_OBJECTS.person.fields.listMemberships.universalIdentifier,
+ type: FieldMetadataType.RELATION,
+ relationTargetObjectMetadataId: LIST_MEMBER_OBJECT_METADATA_ID,
+ settings: { ...ONE_TO_MANY_SETTINGS, ...settingsOverrides },
+ });
+
+const UNRELATED_FLAT_FIELD_METADATA = buildFlatFieldMetadata({
+ id: UNRELATED_FIELD_METADATA_ID,
+ universalIdentifier: '20202020-0000-0000-0000-000000000097',
+ objectMetadataId: LIST_MEMBER_OBJECT_METADATA_ID,
+ type: FieldMetadataType.RELATION,
+ settings: { relationType: RelationType.MANY_TO_ONE },
+});
+
+const LIST_MEMBER_PERSON_FLAT_FIELD_METADATA = buildFlatFieldMetadata({
+ id: LIST_MEMBER_PERSON_FIELD_METADATA_ID,
+ universalIdentifier:
+ STANDARD_OBJECTS.messageListMember.fields.person.universalIdentifier,
+ objectMetadataId: LIST_MEMBER_OBJECT_METADATA_ID,
+ type: FieldMetadataType.RELATION,
+ settings: { relationType: RelationType.MANY_TO_ONE },
+});
+
+const LIST_MEMBER_LIST_FLAT_FIELD_METADATA = buildFlatFieldMetadata({
+ id: LIST_MEMBER_LIST_FIELD_METADATA_ID,
+ universalIdentifier:
+ STANDARD_OBJECTS.messageListMember.fields.list.universalIdentifier,
+ objectMetadataId: LIST_MEMBER_OBJECT_METADATA_ID,
+ type: FieldMetadataType.RELATION,
+ settings: { relationType: RelationType.MANY_TO_ONE },
+});
+
+describe('BackfillMessageListJunctionTargetsCommand', () => {
+ let findOneMock: jest.Mock;
+ let updateMock: jest.Mock;
+ let getOrRecomputeMock: jest.Mock;
+ let command: BackfillMessageListJunctionTargetsCommand;
+
+ beforeEach(() => {
+ jest.clearAllMocks();
+
+ findOneMock = jest.fn();
+ updateMock = jest.fn();
+ getOrRecomputeMock = jest.fn();
+
+ const transactionalRepository = {
+ findOne: findOneMock,
+ update: updateMock,
+ };
+ const fieldMetadataRepository = {
+ manager: {
+ transaction: jest.fn(
+ async (
+ callback: (entityManager: {
+ getRepository: () => typeof transactionalRepository;
+ }) => Promise<string[]>,
+ ) =>
+ callback({
+ getRepository: () => transactionalRepository,
+ }),
+ ),
+ },
+ } as unknown as Repository<FieldMetadataEntity>;
+
+ command = new BackfillMessageListJunctionTargetsCommand(
+ {} as WorkspaceIteratorService,
+ {
+ getOrRecompute: getOrRecomputeMock,
+ } as unknown as WorkspaceCacheService,
+ {} as WorkspaceMigrationRunnerService,
+ fieldMetadataRepository,
+ );
+ });
+
+ const runOnWorkspace = (dryRun = false) =>
+ command.runOnWorkspace({
+ workspaceId: WORKSPACE_ID,
+ options: { dryRun },
+ index: 0,
+ total: 1,
+ });
+
+ // The transaction re-read returns the same rows the cache was seeded with
+ // unless a test overrides it to simulate a row that moved on.
+ const mockFlatFieldMetadatas = (flatFieldMetadatas: FlatFieldMetadata[]) => {
+ getOrRecomputeMock.mockResolvedValue({
+ flatFieldMetadataMaps: buildFlatFieldMetadataMaps(flatFieldMetadatas),
+ });
+ findOneMock.mockImplementation(({ where: { id } }: { where: { id: string } }) =>
+ Promise.resolve(
+ flatFieldMetadatas.find((flatFieldMetadata) => flatFieldMetadata.id === id),
+ ),
+ );
+ };
+
+ it('backfills both sides of the messageList/person junction', async () => {
+ mockFlatFieldMetadatas([
+ buildMembersFlatFieldMetadata(),
+ buildListMembershipsFlatFieldMetadata(),
+ LIST_MEMBER_PERSON_FLAT_FIELD_METADATA,
+ LIST_MEMBER_LIST_FLAT_FIELD_METADATA,
+ ]);
+
+ await runOnWorkspace();
+
+ expect(updateMock).toHaveBeenCalledTimes(2);
+ expect(updateMock).toHaveBeenNthCalledWith(
+ 1,
+ { id: MEMBERS_FIELD_METADATA_ID, workspaceId: WORKSPACE_ID },
+ {
+ settings: {
+ ...ONE_TO_MANY_SETTINGS,
+ junctionTargetFieldId: LIST_MEMBER_PERSON_FIELD_METADATA_ID,
+ },
+ },
+ );
+ expect(updateMock).toHaveBeenNthCalledWith(
+ 2,
+ { id: LIST_MEMBERSHIPS_FIELD_METADATA_ID, workspaceId: WORKSPACE_ID },
+ {
+ settings: {
+ ...ONE_TO_MANY_SETTINGS,
+ junctionTargetFieldId: LIST_MEMBER_LIST_FIELD_METADATA_ID,
+ },
+ },
+ );
+ expect(invalidateFieldMetadataCacheMock).toHaveBeenCalledWith({
+ workspaceId: WORKSPACE_ID,
+ workspaceMigrationRunnerService: expect.anything(),
+ });
+ });
+
+ it('only backfills the person side when the list side was already set by the 2-25 backfill', async () => {
+ mockFlatFieldMetadatas([
+ buildMembersFlatFieldMetadata({
+ junctionTargetFieldId: LIST_MEMBER_PERSON_FIELD_METADATA_ID,
+ }),
+ buildListMembershipsFlatFieldMetadata(),
+ LIST_MEMBER_PERSON_FLAT_FIELD_METADATA,
+ LIST_MEMBER_LIST_FLAT_FIELD_METADATA,
+ ]);
+
+ await runOnWorkspace();
+
+ expect(updateMock).toHaveBeenCalledTimes(1);
+ expect(updateMock).toHaveBeenCalledWith(
+ { id: LIST_MEMBERSHIPS_FIELD_METADATA_ID, workspaceId: WORKSPACE_ID },
+ {
+ settings: {
+ ...ONE_TO_MANY_SETTINGS,
+ junctionTargetFieldId: LIST_MEMBER_LIST_FIELD_METADATA_ID,
+ },
+ },
+ );
+ });
+
+ it('repairs a junction target pointing at a field that no longer exists', async () => {
+ mockFlatFieldMetadatas([
+ buildMembersFlatFieldMetadata({
+ junctionTargetFieldId: DANGLING_FIELD_METADATA_ID,
+ }),
+ buildListMembershipsFlatFieldMetadata({
+ junctionTargetFieldId: LIST_MEMBER_LIST_FIELD_METADATA_ID,
+ }),
+ LIST_MEMBER_PERSON_FLAT_FIELD_METADATA,
+ LIST_MEMBER_LIST_FLAT_FIELD_METADATA,
+ ]);
+
+ await runOnWorkspace();
+
+ expect(updateMock).toHaveBeenCalledTimes(1);
+ expect(updateMock).toHaveBeenCalledWith(
+ { id: MEMBERS_FIELD_METADATA_ID, workspaceId: WORKSPACE_ID },
+ {
+ settings: {
+ ...ONE_TO_MANY_SETTINGS,
+ junctionTargetFieldId: LIST_MEMBER_PERSON_FIELD_METADATA_ID,
+ },
+ },
+ );
+ });
+
+ it('repairs a junction target pointing at another existing field', async () => {
+ mockFlatFieldMetadatas([
+ buildMembersFlatFieldMetadata({
+ junctionTargetFieldId: UNRELATED_FIELD_METADATA_ID,
+ }),
+ buildListMembershipsFlatFieldMetadata({
+ junctionTargetFieldId: LIST_MEMBER_LIST_FIELD_METADATA_ID,
+ }),
+ LIST_MEMBER_PERSON_FLAT_FIELD_METADATA,
+ LIST_MEMBER_LIST_FLAT_FIELD_METADATA,
+ UNRELATED_FLAT_FIELD_METADATA,
+ ]);
+
+ await runOnWorkspace();
+
+ expect(updateMock).toHaveBeenCalledTimes(1);
+ expect(updateMock).toHaveBeenCalledWith(
+ { id: MEMBERS_FIELD_METADATA_ID, workspaceId: WORKSPACE_ID },
+ {
+ settings: {
+ ...ONE_TO_MANY_SETTINGS,
+ junctionTargetFieldId: LIST_MEMBER_PERSON_FIELD_METADATA_ID,
+ },
+ },
+ );
+ });
+
+ it('skips a row already set by another run since the cache was computed', async () => {
+ mockFlatFieldMetadatas([
+ buildMembersFlatFieldMetadata(),
+ buildListMembershipsFlatFieldMetadata({
+ junctionTargetFieldId: LIST_MEMBER_LIST_FIELD_METADATA_ID,
+ }),
+ LIST_MEMBER_PERSON_FLAT_FIELD_METADATA,
+ LIST_MEMBER_LIST_FLAT_FIELD_METADATA,
+ ]);
+ findOneMock.mockResolvedValue(
+ buildMembersFlatFieldMetadata({
+ junctionTargetFieldId: LIST_MEMBER_PERSON_FIELD_METADATA_ID,
+ }),
+ );
+
+ await runOnWorkspace();
+
+ expect(updateMock).not.toHaveBeenCalled();
+ expect(invalidateFieldMetadataCacheMock).not.toHaveBeenCalled();
+ });
+
+ it('does nothing when both sides are already set', async () => {
+ mockFlatFieldMetadatas([
+ buildMembersFlatFieldMetadata({
+ junctionTargetFieldId: LIST_MEMBER_PERSON_FIELD_METADATA_ID,
+ }),
+ buildListMembershipsFlatFieldMetadata({
+ junctionTargetFieldId: LIST_MEMBER_LIST_FIELD_METADATA_ID,
+ }),
+ LIST_MEMBER_PERSON_FLAT_FIELD_METADATA,
+ LIST_MEMBER_LIST_FLAT_FIELD_METADATA,
+ ]);
+
+ await runOnWorkspace();
+
+ expect(updateMock).not.toHaveBeenCalled();
+ expect(invalidateFieldMetadataCacheMock).not.toHaveBeenCalled();
+ });
+
+ it('skips workspaces without the message list objects', async () => {
+ mockFlatFieldMetadatas([]);
+
+ await runOnWorkspace();
+
+ expect(updateMock).not.toHaveBeenCalled();
+ expect(invalidateFieldMetadataCacheMock).not.toHaveBeenCalled();
+ });
+
+ it('does not write metadata in dry-run mode', async () => {
+ mockFlatFieldMetadatas([
+ buildMembersFlatFieldMetadata(),
+ buildListMembershipsFlatFieldMetadata(),
+ LIST_MEMBER_PERSON_FLAT_FIELD_METADATA,
+ LIST_MEMBER_LIST_FLAT_FIELD_METADATA,
+ ]);
+
+ await runOnWorkspace(true);
+
+ expect(updateMock).not.toHaveBeenCalled();
+ expect(invalidateFieldMetadataCacheMock).not.toHaveBeenCalled();
+ });
+});
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/__tests__/2-39-workspace-command-1788616075386-create-message-list-member-view.command.spec.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/__tests__/2-39-workspace-command-1788616075386-create-message-list-member-view.command.spec.ts
new file mode 100644
index 00000000000..9f7e04b8e3f
--- /dev/null
+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/2-39/__tests__/2-39-workspace-command-1788616075386-create-message-list-member-view.command.spec.ts
@@ -0,0 +1,204 @@
+import { STANDARD_OBJECTS } from 'twenty-shared/metadata';
+
+import { type WorkspaceIteratorService } from 'src/database/commands/command-runners/workspace-iterator.service';
+import { CreateMessageListMemberViewCommand } from 'src/database/commands/upgrade-version-command/2-39/2-39-workspace-command-1788616075386-create-message-list-member-view.command';
+import { type ApplicationService } from 'src/engine/core-modules/application/application.service';
+import { computeTwentyStandardApplicationAllFlatEntityMaps } from 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant';
+import { type WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+import { type WorkspaceMigrationValidateBuildAndRunService } from 'src/engine/workspace-manager/workspace-migration/services/workspace-migration-validate-build-and-run-service';
+
+jest.mock(
+ 'src/engine/workspace-manager/twenty-standard-application/utils/twenty-standard-application-all-flat-entity-maps.constant',
+);
+
+const computeTwentyStandardApplicationAllFlatEntityMapsMock = jest.mocked(
+ computeTwentyStandardApplicationAllFlatEntityMaps,
+);
+
+const WORKSPACE_ID = '20202020-0000-0000-0000-000000000001';
+const STANDARD_APPLICATION = {
+ id: '20202020-0000-0000-0000-0000000000aa',
+ universalIdentifier: '20202020-0000-0000-0000-0000000000bb',
+};
+
+const LIST_MEMBER = STANDARD_OBJECTS.messageListMember;
+const LIST_MEMBER_VIEW_UNIVERSAL_IDENTIFIER =
+ LIST_MEMBER.views.allMessageListMembers.universalIdentifier;
+const LIST_MEMBER_VIEW_FIELD_UNIVERSAL_IDENTIFIERS = Object.values(
+ LIST_MEMBER.views.allMessageListMembers.viewFields,
+).map((viewField) => viewField.universalIdentifier);
+
+const buildByUniversalIdentifierMap = (universalIdentifiers: string[]) => ({
+ byUniversalIdentifier: Object.fromEntries(
+ universalIdentifiers.map((universalIdentifier) => [
+ universalIdentifier,
+ { universalIdentifier },
+ ]),
+ ),
+});
+
+describe('CreateMessageListMemberViewCommand', () => {
+ let command: CreateMessageListMemberViewCommand;
+ let findApplicationMock: jest.Mock;
+ let getOrRecomputeMock: jest.Mock;
+ let validateBuildAndRunWorkspaceMigrationMock: jest.Mock;
+
+ beforeEach(() => {
+ jest.clearAllMocks();
+
+ findApplicationMock = jest.fn().mockResolvedValue({
+ twentyStandardFlatApplication: STANDARD_APPLICATION,
+ });
+ getOrRecomputeMock = jest.fn();
+ validateBuildAndRunWorkspaceMigrationMock = jest
+ .fn()
+ .mockResolvedValue({ status: 'success' });
+
+ computeTwentyStandardApplicationAllFlatEntityMapsMock.mockReturnValue({
+ allFlatEntityMaps: {
+ flatViewMaps: buildByUniversalIdentifierMap([
+ LIST_MEMBER_VIEW_UNIVERSAL_IDENTIFIER,
+ ]),
+ flatViewFieldMaps: buildByUniversalIdentifierMap(
+ LIST_MEMBER_VIEW_FIELD_UNIVERSAL_IDENTIFIERS,
+ ),
+ },
+ } as unknown as ReturnType<
+ typeof computeTwentyStandardApplicationAllFlatEntityMaps
+ >);
+
+ command = new CreateMessageListMemberViewCommand(
+ {} as WorkspaceIteratorService,
+ {
+ findWorkspaceTwentyStandardAndCustomApplicationOrThrow:
+ findApplicationMock,
+ } as unknown as ApplicationService,
+ {
+ getOrRecompute: getOrRecomputeMock,
+ } as unknown as WorkspaceCacheService,
+ {
+ validateBuildAndRunWorkspaceMigration:
+ validateBuildAndRunWorkspaceMigrationMock,
+ } as unknown as WorkspaceMigrationValidateBuildAndRunService,
+ );
+ });
+
+ const runOnWorkspace = (dryRun = false) =>
+ command.runOnWorkspace({
+ workspaceId: WORKSPACE_ID,
+ options: { dryRun },
+ index: 0,
+ total: 1,
+ });
+
+ const mockWorkspaceCache = ({
+ existingObjects = [LIST_MEMBER.universalIdentifier],
+ existingViews = [],
+ existingViewFields = [],
+ }: {
+ existingObjects?: string[];
+ existingViews?: string[];
+ existingViewFields?: string[];
+ }) => {
+ getOrRecomputeMock.mockResolvedValue({
+ flatObjectMetadataMaps: buildByUniversalIdentifierMap(existingObjects),
+ flatViewMaps: buildByUniversalIdentifierMap(existingViews),
+ flatViewFieldMaps: buildByUniversalIdentifierMap(existingViewFields),
+ });
+ };
+
+ it('creates the message list member view and all view fields when missing', async () => {
+ mockWorkspaceCache({});
+
+ await runOnWorkspace();
+
+ expect(validateBuildAndRunWorkspaceMigrationMock).toHaveBeenCalledWith({
+ isSystemBuild: true,
+ workspaceId: WORKSPACE_ID,
+ applicationUniversalIdentifier: STANDARD_APPLICATION.universalIdentifier,
+ allFlatEntityOperationByMetadataName: {
+ view: {
+ flatEntityToCreate: [
+ expect.objectContaining({
+ universalIdentifier: LIST_MEMBER_VIEW_UNIVERSAL_IDENTIFIER,
+ }),
+ ],
+ flatEntityToDelete: [],
+ flatEntityToUpdate: [],
+ },
+ viewField: {
+ flatEntityToCreate: LIST_MEMBER_VIEW_FIELD_UNIVERSAL_IDENTIFIERS.map(
+ (universalIdentifier) =>
+ expect.objectContaining({ universalIdentifier }),
+ ),
+ flatEntityToDelete: [],
+ flatEntityToUpdate: [],
+ },
+ },
+ });
+ });
+
+ it('creates missing view fields when the view already exists', async () => {
+ mockWorkspaceCache({
+ existingViews: [LIST_MEMBER_VIEW_UNIVERSAL_IDENTIFIER],
+ existingViewFields: [
+ LIST_MEMBER.views.allMessageListMembers.viewFields.id
+ .universalIdentifier,
+ ],
+ });
+
+ await runOnWorkspace();
+
+ const payload =
+ validateBuildAndRunWorkspaceMigrationMock.mock.calls[0][0]
+ .allFlatEntityOperationByMetadataName;
+
+ expect(payload.view.flatEntityToCreate).toEqual([]);
+ expect(payload.viewField.flatEntityToCreate).toEqual(
+ LIST_MEMBER_VIEW_FIELD_UNIVERSAL_IDENTIFIERS.slice(1).map(
+ (universalIdentifier) =>
+ expect.objectContaining({ universalIdentifier }),
+ ),
+ );
+ });
+
+ it('does nothing when the view and view fields already exist', async () => {
+ mockWorkspaceCache({
+ existingViews: [LIST_MEMBER_VIEW_UNIVERSAL_IDENTIFIER],
+ existingViewFields: LIST_MEMBER_VIEW_FIELD_UNIVERSAL_IDENTIFIERS,
+ });
+
+ await runOnWorkspace();
+
+ expect(validateBuildAndRunWorkspaceMigrationMock).not.toHaveBeenCalled();
+ });
+
+ it('does not write metadata in dry-run mode', async () => {
+ mockWorkspaceCache({});
+
+ await runOnWorkspace(true);
+
+ expect(validateBuildAndRunWorkspaceMigrationMock).not.toHaveBeenCalled();
+ });
+
+ it('skips workspaces where the messageListMember object is absent', async () => {
+ mockWorkspaceCache({ existingObjects: [] });
+
+ await runOnWorkspace();
+
+ expect(findApplicationMock).not.toHaveBeenCalled();
+ expect(validateBuildAndRunWorkspaceMigrationMock).not.toHaveBeenCalled();
+ });
+
+ it('throws when the migration fails', async () => {
+ mockWorkspaceCache({});
+ validateBuildAndRunWorkspaceMigrationMock.mockResolvedValue({
+ status: 'fail',
+ errors: [],
+ });
+
+ await expect(runOnWorkspace()).rejects.toThrow(
+ `Failed to create messageListMember view for workspace ${WORKSPACE_ID}`,
+ );
+ });
+});
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
index 67dec07e137..0ce64eb3811 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/__snapshots__/get-standard-object-metadata-related-entity-ids.util.spec.ts.snap
@@ -969,83 +969,83 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"message": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000491",
+ "id": "00000000-0000-0000-0000-000000000496",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000494",
+ "id": "00000000-0000-0000-0000-000000000499",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000493",
+ "id": "00000000-0000-0000-0000-000000000498",
},
"headerMessageId": {
- "id": "00000000-0000-0000-0000-000000000498",
+ "id": "00000000-0000-0000-0000-000000000503",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000490",
+ "id": "00000000-0000-0000-0000-000000000495",
},
"isDraft": {
- "id": "00000000-0000-0000-0000-000000000506",
+ "id": "00000000-0000-0000-0000-000000000511",
},
"messageCampaign": {
- "id": "00000000-0000-0000-0000-000000000505",
+ "id": "00000000-0000-0000-0000-000000000510",
},
"messageChannelMessageAssociations": {
- "id": "00000000-0000-0000-0000-000000000504",
+ "id": "00000000-0000-0000-0000-000000000509",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000503",
+ "id": "00000000-0000-0000-0000-000000000508",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000499",
+ "id": "00000000-0000-0000-0000-000000000504",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000496",
+ "id": "00000000-0000-0000-0000-000000000501",
},
"receivedAt": {
- "id": "00000000-0000-0000-0000-000000000502",
+ "id": "00000000-0000-0000-0000-000000000507",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000497",
+ "id": "00000000-0000-0000-0000-000000000502",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000500",
+ "id": "00000000-0000-0000-0000-000000000505",
},
"text": {
- "id": "00000000-0000-0000-0000-000000000501",
+ "id": "00000000-0000-0000-0000-000000000506",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000492",
+ "id": "00000000-0000-0000-0000-000000000497",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000495",
+ "id": "00000000-0000-0000-0000-000000000500",
},
},
- "id": "00000000-0000-0000-0000-000000000515",
+ "id": "00000000-0000-0000-0000-000000000520",
"views": {
"allMessages": {
- "id": "00000000-0000-0000-0000-000000000514",
+ "id": "00000000-0000-0000-0000-000000000519",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000513",
+ "id": "00000000-0000-0000-0000-000000000518",
},
"headerMessageId": {
- "id": "00000000-0000-0000-0000-000000000511",
+ "id": "00000000-0000-0000-0000-000000000516",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000509",
+ "id": "00000000-0000-0000-0000-000000000514",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000508",
+ "id": "00000000-0000-0000-0000-000000000513",
},
"receivedAt": {
- "id": "00000000-0000-0000-0000-000000000510",
+ "id": "00000000-0000-0000-0000-000000000515",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000507",
+ "id": "00000000-0000-0000-0000-000000000512",
},
"text": {
- "id": "00000000-0000-0000-0000-000000000512",
+ "id": "00000000-0000-0000-0000-000000000517",
},
},
"viewGroups": {},
@@ -1221,103 +1221,103 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageChannelMessageAssociation": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000371",
+ "id": "00000000-0000-0000-0000-000000000376",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000374",
+ "id": "00000000-0000-0000-0000-000000000379",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000373",
+ "id": "00000000-0000-0000-0000-000000000378",
},
"direction": {
- "id": "00000000-0000-0000-0000-000000000383",
+ "id": "00000000-0000-0000-0000-000000000388",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000370",
+ "id": "00000000-0000-0000-0000-000000000375",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000379",
+ "id": "00000000-0000-0000-0000-000000000384",
},
"messageChannelId": {
- "id": "00000000-0000-0000-0000-000000000378",
+ "id": "00000000-0000-0000-0000-000000000383",
},
"messageExternalId": {
- "id": "00000000-0000-0000-0000-000000000380",
+ "id": "00000000-0000-0000-0000-000000000385",
},
"messageFolders": {
- "id": "00000000-0000-0000-0000-000000000384",
+ "id": "00000000-0000-0000-0000-000000000389",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000381",
+ "id": "00000000-0000-0000-0000-000000000386",
},
"messageThreadExternalId": {
- "id": "00000000-0000-0000-0000-000000000382",
+ "id": "00000000-0000-0000-0000-000000000387",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000376",
+ "id": "00000000-0000-0000-0000-000000000381",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000377",
+ "id": "00000000-0000-0000-0000-000000000382",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000372",
+ "id": "00000000-0000-0000-0000-000000000377",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000375",
+ "id": "00000000-0000-0000-0000-000000000380",
},
},
- "id": "00000000-0000-0000-0000-000000000400",
+ "id": "00000000-0000-0000-0000-000000000405",
"views": {
"allMessageChannelMessageAssociations": {
- "id": "00000000-0000-0000-0000-000000000390",
+ "id": "00000000-0000-0000-0000-000000000395",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000389",
+ "id": "00000000-0000-0000-0000-000000000394",
},
"direction": {
- "id": "00000000-0000-0000-0000-000000000388",
+ "id": "00000000-0000-0000-0000-000000000393",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000386",
+ "id": "00000000-0000-0000-0000-000000000391",
},
"messageChannelId": {
- "id": "00000000-0000-0000-0000-000000000385",
+ "id": "00000000-0000-0000-0000-000000000390",
},
"messageExternalId": {
- "id": "00000000-0000-0000-0000-000000000387",
+ "id": "00000000-0000-0000-0000-000000000392",
},
},
"viewGroups": {},
},
"messageChannelMessageAssociationRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000399",
+ "id": "00000000-0000-0000-0000-000000000404",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000397",
+ "id": "00000000-0000-0000-0000-000000000402",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000398",
+ "id": "00000000-0000-0000-0000-000000000403",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000395",
+ "id": "00000000-0000-0000-0000-000000000400",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000396",
+ "id": "00000000-0000-0000-0000-000000000401",
},
"direction": {
- "id": "00000000-0000-0000-0000-000000000394",
+ "id": "00000000-0000-0000-0000-000000000399",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000392",
+ "id": "00000000-0000-0000-0000-000000000397",
},
"messageChannelId": {
- "id": "00000000-0000-0000-0000-000000000391",
+ "id": "00000000-0000-0000-0000-000000000396",
},
"messageExternalId": {
- "id": "00000000-0000-0000-0000-000000000393",
+ "id": "00000000-0000-0000-0000-000000000398",
},
},
"viewGroups": {},
@@ -1327,76 +1327,76 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageChannelMessageAssociationMessageFolder": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000402",
+ "id": "00000000-0000-0000-0000-000000000407",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000405",
+ "id": "00000000-0000-0000-0000-000000000410",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000404",
+ "id": "00000000-0000-0000-0000-000000000409",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000401",
+ "id": "00000000-0000-0000-0000-000000000406",
},
"messageChannelMessageAssociation": {
- "id": "00000000-0000-0000-0000-000000000409",
+ "id": "00000000-0000-0000-0000-000000000414",
},
"messageFolderId": {
- "id": "00000000-0000-0000-0000-000000000410",
+ "id": "00000000-0000-0000-0000-000000000415",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000407",
+ "id": "00000000-0000-0000-0000-000000000412",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000408",
+ "id": "00000000-0000-0000-0000-000000000413",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000403",
+ "id": "00000000-0000-0000-0000-000000000408",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000406",
+ "id": "00000000-0000-0000-0000-000000000411",
},
},
- "id": "00000000-0000-0000-0000-000000000422",
+ "id": "00000000-0000-0000-0000-000000000427",
"views": {
"allMessageChannelMessageAssociationMessageFolders": {
- "id": "00000000-0000-0000-0000-000000000414",
+ "id": "00000000-0000-0000-0000-000000000419",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000413",
+ "id": "00000000-0000-0000-0000-000000000418",
},
"messageChannelMessageAssociation": {
- "id": "00000000-0000-0000-0000-000000000411",
+ "id": "00000000-0000-0000-0000-000000000416",
},
"messageFolderId": {
- "id": "00000000-0000-0000-0000-000000000412",
+ "id": "00000000-0000-0000-0000-000000000417",
},
},
"viewGroups": {},
},
"messageChannelMessageAssociationMessageFolderRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000421",
+ "id": "00000000-0000-0000-0000-000000000426",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000419",
+ "id": "00000000-0000-0000-0000-000000000424",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000420",
+ "id": "00000000-0000-0000-0000-000000000425",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000417",
+ "id": "00000000-0000-0000-0000-000000000422",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000418",
+ "id": "00000000-0000-0000-0000-000000000423",
},
"messageChannelMessageAssociation": {
- "id": "00000000-0000-0000-0000-000000000415",
+ "id": "00000000-0000-0000-0000-000000000420",
},
"messageFolderId": {
- "id": "00000000-0000-0000-0000-000000000416",
+ "id": "00000000-0000-0000-0000-000000000421",
},
},
"viewGroups": {},
@@ -1498,118 +1498,138 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"id": "00000000-0000-0000-0000-000000000364",
},
},
- "id": "00000000-0000-0000-0000-000000000369",
- "views": undefined,
+ "id": "00000000-0000-0000-0000-000000000374",
+ "views": {
+ "allMessageListMembers": {
+ "id": "00000000-0000-0000-0000-000000000373",
+ "viewFieldGroups": {},
+ "viewFields": {
+ "createdAt": {
+ "id": "00000000-0000-0000-0000-000000000372",
+ },
+ "id": {
+ "id": "00000000-0000-0000-0000-000000000369",
+ },
+ "list": {
+ "id": "00000000-0000-0000-0000-000000000371",
+ },
+ "person": {
+ "id": "00000000-0000-0000-0000-000000000370",
+ },
+ },
+ "viewGroups": {},
+ },
+ },
},
"messageParticipant": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000424",
+ "id": "00000000-0000-0000-0000-000000000429",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000427",
+ "id": "00000000-0000-0000-0000-000000000432",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000426",
+ "id": "00000000-0000-0000-0000-000000000431",
},
"displayName": {
- "id": "00000000-0000-0000-0000-000000000434",
+ "id": "00000000-0000-0000-0000-000000000439",
},
"handle": {
- "id": "00000000-0000-0000-0000-000000000433",
+ "id": "00000000-0000-0000-0000-000000000438",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000423",
+ "id": "00000000-0000-0000-0000-000000000428",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000431",
+ "id": "00000000-0000-0000-0000-000000000436",
},
"messageCampaign": {
- "id": "00000000-0000-0000-0000-000000000437",
+ "id": "00000000-0000-0000-0000-000000000442",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000435",
+ "id": "00000000-0000-0000-0000-000000000440",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000429",
+ "id": "00000000-0000-0000-0000-000000000434",
},
"role": {
- "id": "00000000-0000-0000-0000-000000000432",
+ "id": "00000000-0000-0000-0000-000000000437",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000430",
+ "id": "00000000-0000-0000-0000-000000000435",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000425",
+ "id": "00000000-0000-0000-0000-000000000430",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000428",
+ "id": "00000000-0000-0000-0000-000000000433",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000436",
+ "id": "00000000-0000-0000-0000-000000000441",
},
},
- "id": "00000000-0000-0000-0000-000000000456",
+ "id": "00000000-0000-0000-0000-000000000461",
"views": {
"allMessageParticipants": {
- "id": "00000000-0000-0000-0000-000000000445",
+ "id": "00000000-0000-0000-0000-000000000450",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000444",
+ "id": "00000000-0000-0000-0000-000000000449",
},
"displayName": {
- "id": "00000000-0000-0000-0000-000000000441",
+ "id": "00000000-0000-0000-0000-000000000446",
},
"handle": {
- "id": "00000000-0000-0000-0000-000000000440",
+ "id": "00000000-0000-0000-0000-000000000445",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000438",
+ "id": "00000000-0000-0000-0000-000000000443",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000442",
+ "id": "00000000-0000-0000-0000-000000000447",
},
"role": {
- "id": "00000000-0000-0000-0000-000000000439",
+ "id": "00000000-0000-0000-0000-000000000444",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000443",
+ "id": "00000000-0000-0000-0000-000000000448",
},
},
"viewGroups": {},
},
"messageParticipantRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000455",
+ "id": "00000000-0000-0000-0000-000000000460",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000453",
+ "id": "00000000-0000-0000-0000-000000000458",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000454",
+ "id": "00000000-0000-0000-0000-000000000459",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000451",
+ "id": "00000000-0000-0000-0000-000000000456",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000452",
+ "id": "00000000-0000-0000-0000-000000000457",
},
"displayName": {
- "id": "00000000-0000-0000-0000-000000000448",
+ "id": "00000000-0000-0000-0000-000000000453",
},
"message": {
- "id": "00000000-0000-0000-0000-000000000446",
+ "id": "00000000-0000-0000-0000-000000000451",
},
"person": {
- "id": "00000000-0000-0000-0000-000000000449",
+ "id": "00000000-0000-0000-0000-000000000454",
},
"role": {
- "id": "00000000-0000-0000-0000-000000000447",
+ "id": "00000000-0000-0000-0000-000000000452",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000450",
+ "id": "00000000-0000-0000-0000-000000000455",
},
},
"viewGroups": {},
@@ -1619,59 +1639,59 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageThread": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000458",
+ "id": "00000000-0000-0000-0000-000000000463",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000461",
+ "id": "00000000-0000-0000-0000-000000000466",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000460",
+ "id": "00000000-0000-0000-0000-000000000465",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000457",
+ "id": "00000000-0000-0000-0000-000000000462",
},
"messageChannelMessageAssociations": {
- "id": "00000000-0000-0000-0000-000000000466",
+ "id": "00000000-0000-0000-0000-000000000471",
},
"messageThreadTargets": {
- "id": "00000000-0000-0000-0000-000000000468",
+ "id": "00000000-0000-0000-0000-000000000473",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000000465",
+ "id": "00000000-0000-0000-0000-000000000470",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000463",
+ "id": "00000000-0000-0000-0000-000000000468",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000464",
+ "id": "00000000-0000-0000-0000-000000000469",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000467",
+ "id": "00000000-0000-0000-0000-000000000472",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000459",
+ "id": "00000000-0000-0000-0000-000000000464",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000462",
+ "id": "00000000-0000-0000-0000-000000000467",
},
},
- "id": "00000000-0000-0000-0000-000000000474",
+ "id": "00000000-0000-0000-0000-000000000479",
"views": {
"allMessageThreads": {
- "id": "00000000-0000-0000-0000-000000000473",
+ "id": "00000000-0000-0000-0000-000000000478",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000472",
+ "id": "00000000-0000-0000-0000-000000000477",
},
"messages": {
- "id": "00000000-0000-0000-0000-000000000470",
+ "id": "00000000-0000-0000-0000-000000000475",
},
"subject": {
- "id": "00000000-0000-0000-0000-000000000469",
+ "id": "00000000-0000-0000-0000-000000000474",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000471",
+ "id": "00000000-0000-0000-0000-000000000476",
},
},
"viewGroups": {},
@@ -1681,133 +1701,133 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"messageThreadTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000476",
+ "id": "00000000-0000-0000-0000-000000000481",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000479",
+ "id": "00000000-0000-0000-0000-000000000484",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000478",
+ "id": "00000000-0000-0000-0000-000000000483",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000475",
+ "id": "00000000-0000-0000-0000-000000000480",
},
"isAutomaticallyAssigned": {
- "id": "00000000-0000-0000-0000-000000000484",
+ "id": "00000000-0000-0000-0000-000000000489",
},
"isManuallyAssigned": {
- "id": "00000000-0000-0000-0000-000000000485",
+ "id": "00000000-0000-0000-0000-000000000490",
},
"messageThread": {
- "id": "00000000-0000-0000-0000-000000000483",
+ "id": "00000000-0000-0000-0000-000000000488",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000481",
+ "id": "00000000-0000-0000-0000-000000000486",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000482",
+ "id": "00000000-0000-0000-0000-000000000487",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000487",
+ "id": "00000000-0000-0000-0000-000000000492",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000488",
+ "id": "00000000-0000-0000-0000-000000000493",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000486",
+ "id": "00000000-0000-0000-0000-000000000491",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000477",
+ "id": "00000000-0000-0000-0000-000000000482",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000480",
+ "id": "00000000-0000-0000-0000-000000000485",
},
},
- "id": "00000000-0000-0000-0000-000000000489",
+ "id": "00000000-0000-0000-0000-000000000494",
"views": {},
},
"note": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000527",
+ "id": "00000000-0000-0000-0000-000000000532",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000525",
+ "id": "00000000-0000-0000-0000-000000000530",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000517",
+ "id": "00000000-0000-0000-0000-000000000522",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000520",
+ "id": "00000000-0000-0000-0000-000000000525",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000519",
+ "id": "00000000-0000-0000-0000-000000000524",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000516",
+ "id": "00000000-0000-0000-0000-000000000521",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000526",
+ "id": "00000000-0000-0000-0000-000000000531",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000522",
+ "id": "00000000-0000-0000-0000-000000000527",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000523",
+ "id": "00000000-0000-0000-0000-000000000528",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000528",
+ "id": "00000000-0000-0000-0000-000000000533",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000524",
+ "id": "00000000-0000-0000-0000-000000000529",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000518",
+ "id": "00000000-0000-0000-0000-000000000523",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000521",
+ "id": "00000000-0000-0000-0000-000000000526",
},
},
- "id": "00000000-0000-0000-0000-000000000540",
+ "id": "00000000-0000-0000-0000-000000000545",
"views": {
"allNotes": {
- "id": "00000000-0000-0000-0000-000000000534",
+ "id": "00000000-0000-0000-0000-000000000539",
"viewFieldGroups": {},
"viewFields": {
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000531",
+ "id": "00000000-0000-0000-0000-000000000536",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000533",
+ "id": "00000000-0000-0000-0000-000000000538",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000532",
+ "id": "00000000-0000-0000-0000-000000000537",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000530",
+ "id": "00000000-0000-0000-0000-000000000535",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000529",
+ "id": "00000000-0000-0000-0000-000000000534",
},
},
"viewGroups": {},
},
"noteRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000539",
+ "id": "00000000-0000-0000-0000-000000000544",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000538",
+ "id": "00000000-0000-0000-0000-000000000543",
},
},
"viewFields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000536",
+ "id": "00000000-0000-0000-0000-000000000541",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000535",
+ "id": "00000000-0000-0000-0000-000000000540",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000537",
+ "id": "00000000-0000-0000-0000-000000000542",
},
},
"viewGroups": {},
@@ -1817,62 +1837,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"noteTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000542",
+ "id": "00000000-0000-0000-0000-000000000547",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000545",
+ "id": "00000000-0000-0000-0000-000000000550",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000544",
+ "id": "00000000-0000-0000-0000-000000000549",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000541",
+ "id": "00000000-0000-0000-0000-000000000546",
},
"note": {
- "id": "00000000-0000-0000-0000-000000000549",
+ "id": "00000000-0000-0000-0000-000000000554",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000547",
+ "id": "00000000-0000-0000-0000-000000000552",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000548",
+ "id": "00000000-0000-0000-0000-000000000553",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000551",
+ "id": "00000000-0000-0000-0000-000000000556",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000552",
+ "id": "00000000-0000-0000-0000-000000000557",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000550",
+ "id": "00000000-0000-0000-0000-000000000555",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000543",
+ "id": "00000000-0000-0000-0000-000000000548",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000546",
+ "id": "00000000-0000-0000-0000-000000000551",
},
},
- "id": "00000000-0000-0000-0000-000000000559",
+ "id": "00000000-0000-0000-0000-000000000564",
"views": {
"allNoteTargets": {
- "id": "00000000-0000-0000-0000-000000000558",
+ "id": "00000000-0000-0000-0000-000000000563",
"viewFieldGroups": {},
"viewFields": {
"id": {
- "id": "00000000-0000-0000-0000-000000000553",
+ "id": "00000000-0000-0000-0000-000000000558",
},
"note": {
- "id": "00000000-0000-0000-0000-000000000554",
+ "id": "00000000-0000-0000-0000-000000000559",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000556",
+ "id": "00000000-0000-0000-0000-000000000561",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000557",
+ "id": "00000000-0000-0000-0000-000000000562",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000555",
+ "id": "00000000-0000-0000-0000-000000000560",
},
},
"viewGroups": {},
@@ -1882,192 +1902,192 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"opportunity": {
"fields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000569",
+ "id": "00000000-0000-0000-0000-000000000574",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000579",
+ "id": "00000000-0000-0000-0000-000000000584",
},
"calendarEventTargets": {
- "id": "00000000-0000-0000-0000-000000000577",
+ "id": "00000000-0000-0000-0000-000000000582",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000570",
+ "id": "00000000-0000-0000-0000-000000000575",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000573",
+ "id": "00000000-0000-0000-0000-000000000578",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000561",
+ "id": "00000000-0000-0000-0000-000000000566",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000564",
+ "id": "00000000-0000-0000-0000-000000000569",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000563",
+ "id": "00000000-0000-0000-0000-000000000568",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000560",
+ "id": "00000000-0000-0000-0000-000000000565",
},
"messageThreadTargets": {
- "id": "00000000-0000-0000-0000-000000000578",
+ "id": "00000000-0000-0000-0000-000000000583",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000568",
+ "id": "00000000-0000-0000-0000-000000000573",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000576",
+ "id": "00000000-0000-0000-0000-000000000581",
},
"owner": {
- "id": "00000000-0000-0000-0000-000000000574",
+ "id": "00000000-0000-0000-0000-000000000579",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000572",
+ "id": "00000000-0000-0000-0000-000000000577",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000566",
+ "id": "00000000-0000-0000-0000-000000000571",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000567",
+ "id": "00000000-0000-0000-0000-000000000572",
},
"stage": {
- "id": "00000000-0000-0000-0000-000000000571",
+ "id": "00000000-0000-0000-0000-000000000576",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000575",
+ "id": "00000000-0000-0000-0000-000000000580",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000580",
+ "id": "00000000-0000-0000-0000-000000000585",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000562",
+ "id": "00000000-0000-0000-0000-000000000567",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000565",
+ "id": "00000000-0000-0000-0000-000000000570",
},
},
- "id": "00000000-0000-0000-0000-000000000618",
+ "id": "00000000-0000-0000-0000-000000000623",
"views": {
"allOpportunities": {
- "id": "00000000-0000-0000-0000-000000000587",
+ "id": "00000000-0000-0000-0000-000000000592",
"viewFieldGroups": {},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000582",
+ "id": "00000000-0000-0000-0000-000000000587",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000584",
+ "id": "00000000-0000-0000-0000-000000000589",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000585",
+ "id": "00000000-0000-0000-0000-000000000590",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000583",
+ "id": "00000000-0000-0000-0000-000000000588",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000581",
+ "id": "00000000-0000-0000-0000-000000000586",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000586",
+ "id": "00000000-0000-0000-0000-000000000591",
},
},
"viewGroups": {},
},
"byStage": {
- "id": "00000000-0000-0000-0000-000000000599",
+ "id": "00000000-0000-0000-0000-000000000604",
"viewFieldGroups": {},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000589",
+ "id": "00000000-0000-0000-0000-000000000594",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000591",
+ "id": "00000000-0000-0000-0000-000000000596",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000592",
+ "id": "00000000-0000-0000-0000-000000000597",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000590",
+ "id": "00000000-0000-0000-0000-000000000595",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000588",
+ "id": "00000000-0000-0000-0000-000000000593",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000593",
+ "id": "00000000-0000-0000-0000-000000000598",
},
},
"viewGroups": {
"customer": {
- "id": "00000000-0000-0000-0000-000000000598",
+ "id": "00000000-0000-0000-0000-000000000603",
},
"meeting": {
- "id": "00000000-0000-0000-0000-000000000596",
+ "id": "00000000-0000-0000-0000-000000000601",
},
"new": {
- "id": "00000000-0000-0000-0000-000000000594",
+ "id": "00000000-0000-0000-0000-000000000599",
},
"proposal": {
- "id": "00000000-0000-0000-0000-000000000597",
+ "id": "00000000-0000-0000-0000-000000000602",
},
"screening": {
- "id": "00000000-0000-0000-0000-000000000595",
+ "id": "00000000-0000-0000-0000-000000000600",
},
},
},
"opportunityRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000617",
+ "id": "00000000-0000-0000-0000-000000000622",
"viewFieldGroups": {
"deal": {
- "id": "00000000-0000-0000-0000-000000000614",
+ "id": "00000000-0000-0000-0000-000000000619",
},
"relations": {
- "id": "00000000-0000-0000-0000-000000000615",
+ "id": "00000000-0000-0000-0000-000000000620",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000616",
+ "id": "00000000-0000-0000-0000-000000000621",
},
},
"viewFields": {
"amount": {
- "id": "00000000-0000-0000-0000-000000000600",
+ "id": "00000000-0000-0000-0000-000000000605",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000612",
+ "id": "00000000-0000-0000-0000-000000000617",
},
"closeDate": {
- "id": "00000000-0000-0000-0000-000000000601",
+ "id": "00000000-0000-0000-0000-000000000606",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000603",
+ "id": "00000000-0000-0000-0000-000000000608",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000606",
+ "id": "00000000-0000-0000-0000-000000000611",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000607",
+ "id": "00000000-0000-0000-0000-000000000612",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000611",
+ "id": "00000000-0000-0000-0000-000000000616",
},
"owner": {
- "id": "00000000-0000-0000-0000-000000000605",
+ "id": "00000000-0000-0000-0000-000000000610",
},
"pointOfContact": {
- "id": "00000000-0000-0000-0000-000000000604",
+ "id": "00000000-0000-0000-0000-000000000609",
},
"stage": {
- "id": "00000000-0000-0000-0000-000000000602",
+ "id": "00000000-0000-0000-0000-000000000607",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000610",
+ "id": "00000000-0000-0000-0000-000000000615",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000613",
+ "id": "00000000-0000-0000-0000-000000000618",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000608",
+ "id": "00000000-0000-0000-0000-000000000613",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000609",
+ "id": "00000000-0000-0000-0000-000000000614",
},
},
"viewGroups": {},
@@ -2077,187 +2097,187 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"person": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000640",
+ "id": "00000000-0000-0000-0000-000000000645",
},
"avatarFile": {
- "id": "00000000-0000-0000-0000-000000000633",
+ "id": "00000000-0000-0000-0000-000000000638",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000632",
+ "id": "00000000-0000-0000-0000-000000000637",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000642",
+ "id": "00000000-0000-0000-0000-000000000647",
},
"calendarEventTargets": {
- "id": "00000000-0000-0000-0000-000000000638",
+ "id": "00000000-0000-0000-0000-000000000643",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000634",
+ "id": "00000000-0000-0000-0000-000000000639",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000620",
+ "id": "00000000-0000-0000-0000-000000000625",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000623",
+ "id": "00000000-0000-0000-0000-000000000628",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000622",
+ "id": "00000000-0000-0000-0000-000000000627",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000628",
+ "id": "00000000-0000-0000-0000-000000000633",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000619",
+ "id": "00000000-0000-0000-0000-000000000624",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000630",
+ "id": "00000000-0000-0000-0000-000000000635",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000629",
+ "id": "00000000-0000-0000-0000-000000000634",
},
"listMemberships": {
- "id": "00000000-0000-0000-0000-000000000644",
+ "id": "00000000-0000-0000-0000-000000000649",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000641",
+ "id": "00000000-0000-0000-0000-000000000646",
},
"messageThreadTargets": {
- "id": "00000000-0000-0000-0000-000000000639",
+ "id": "00000000-0000-0000-0000-000000000644",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000627",
+ "id": "00000000-0000-0000-0000-000000000632",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000637",
+ "id": "00000000-0000-0000-0000-000000000642",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000631",
+ "id": "00000000-0000-0000-0000-000000000636",
},
"pointOfContactForOpportunities": {
- "id": "00000000-0000-0000-0000-000000000635",
+ "id": "00000000-0000-0000-0000-000000000640",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000625",
+ "id": "00000000-0000-0000-0000-000000000630",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000626",
+ "id": "00000000-0000-0000-0000-000000000631",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000636",
+ "id": "00000000-0000-0000-0000-000000000641",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000643",
+ "id": "00000000-0000-0000-0000-000000000648",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000621",
+ "id": "00000000-0000-0000-0000-000000000626",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000624",
+ "id": "00000000-0000-0000-0000-000000000629",
},
},
- "id": "00000000-0000-0000-0000-000000000677",
+ "id": "00000000-0000-0000-0000-000000000682",
"views": {
"allPeople": {
- "id": "00000000-0000-0000-0000-000000000653",
+ "id": "00000000-0000-0000-0000-000000000658",
"viewFieldGroups": {},
"viewFields": {
"company": {
- "id": "00000000-0000-0000-0000-000000000648",
+ "id": "00000000-0000-0000-0000-000000000653",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000650",
+ "id": "00000000-0000-0000-0000-000000000655",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000647",
+ "id": "00000000-0000-0000-0000-000000000652",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000646",
+ "id": "00000000-0000-0000-0000-000000000651",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000651",
+ "id": "00000000-0000-0000-0000-000000000656",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000652",
+ "id": "00000000-0000-0000-0000-000000000657",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000645",
+ "id": "00000000-0000-0000-0000-000000000650",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000649",
+ "id": "00000000-0000-0000-0000-000000000654",
},
},
"viewGroups": {},
},
"personRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000676",
+ "id": "00000000-0000-0000-0000-000000000681",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000672",
+ "id": "00000000-0000-0000-0000-000000000677",
},
"social": {
- "id": "00000000-0000-0000-0000-000000000674",
+ "id": "00000000-0000-0000-0000-000000000679",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000675",
+ "id": "00000000-0000-0000-0000-000000000680",
},
"work": {
- "id": "00000000-0000-0000-0000-000000000673",
+ "id": "00000000-0000-0000-0000-000000000678",
},
},
"viewFields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000668",
+ "id": "00000000-0000-0000-0000-000000000673",
},
"avatarFile": {
- "id": "00000000-0000-0000-0000-000000000664",
+ "id": "00000000-0000-0000-0000-000000000669",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000659",
+ "id": "00000000-0000-0000-0000-000000000664",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000670",
+ "id": "00000000-0000-0000-0000-000000000675",
},
"company": {
- "id": "00000000-0000-0000-0000-000000000656",
+ "id": "00000000-0000-0000-0000-000000000661",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000660",
+ "id": "00000000-0000-0000-0000-000000000665",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000661",
+ "id": "00000000-0000-0000-0000-000000000666",
},
"emails": {
- "id": "00000000-0000-0000-0000-000000000654",
+ "id": "00000000-0000-0000-0000-000000000659",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000657",
+ "id": "00000000-0000-0000-0000-000000000662",
},
"linkedinLink": {
- "id": "00000000-0000-0000-0000-000000000658",
+ "id": "00000000-0000-0000-0000-000000000663",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000669",
+ "id": "00000000-0000-0000-0000-000000000674",
},
"noteTargets": {
- "id": "00000000-0000-0000-0000-000000000667",
+ "id": "00000000-0000-0000-0000-000000000672",
},
"phones": {
- "id": "00000000-0000-0000-0000-000000000655",
+ "id": "00000000-0000-0000-0000-000000000660",
},
"pointOfContactForOpportunities": {
- "id": "00000000-0000-0000-0000-000000000665",
+ "id": "00000000-0000-0000-0000-000000000670",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000666",
+ "id": "00000000-0000-0000-0000-000000000671",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000671",
+ "id": "00000000-0000-0000-0000-000000000676",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000662",
+ "id": "00000000-0000-0000-0000-000000000667",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000663",
+ "id": "00000000-0000-0000-0000-000000000668",
},
},
"viewGroups": {},
@@ -2267,185 +2287,185 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"task": {
"fields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000692",
+ "id": "00000000-0000-0000-0000-000000000697",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000691",
+ "id": "00000000-0000-0000-0000-000000000696",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000687",
+ "id": "00000000-0000-0000-0000-000000000692",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000679",
+ "id": "00000000-0000-0000-0000-000000000684",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000682",
+ "id": "00000000-0000-0000-0000-000000000687",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000681",
+ "id": "00000000-0000-0000-0000-000000000686",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000688",
+ "id": "00000000-0000-0000-0000-000000000693",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000678",
+ "id": "00000000-0000-0000-0000-000000000683",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000684",
+ "id": "00000000-0000-0000-0000-000000000689",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000685",
+ "id": "00000000-0000-0000-0000-000000000690",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000689",
+ "id": "00000000-0000-0000-0000-000000000694",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000690",
+ "id": "00000000-0000-0000-0000-000000000695",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000693",
+ "id": "00000000-0000-0000-0000-000000000698",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000686",
+ "id": "00000000-0000-0000-0000-000000000691",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000680",
+ "id": "00000000-0000-0000-0000-000000000685",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000683",
+ "id": "00000000-0000-0000-0000-000000000688",
},
},
- "id": "00000000-0000-0000-0000-000000000732",
+ "id": "00000000-0000-0000-0000-000000000737",
"views": {
"allTasks": {
- "id": "00000000-0000-0000-0000-000000000702",
+ "id": "00000000-0000-0000-0000-000000000707",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000699",
+ "id": "00000000-0000-0000-0000-000000000704",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000700",
+ "id": "00000000-0000-0000-0000-000000000705",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000701",
+ "id": "00000000-0000-0000-0000-000000000706",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000697",
+ "id": "00000000-0000-0000-0000-000000000702",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000698",
+ "id": "00000000-0000-0000-0000-000000000703",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000695",
+ "id": "00000000-0000-0000-0000-000000000700",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000696",
+ "id": "00000000-0000-0000-0000-000000000701",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000694",
+ "id": "00000000-0000-0000-0000-000000000699",
},
},
"viewGroups": {},
},
"assignedToMe": {
- "id": "00000000-0000-0000-0000-000000000714",
+ "id": "00000000-0000-0000-0000-000000000719",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000707",
+ "id": "00000000-0000-0000-0000-000000000712",
},
"bodyV2": {
- "id": "00000000-0000-0000-0000-000000000708",
+ "id": "00000000-0000-0000-0000-000000000713",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000709",
+ "id": "00000000-0000-0000-0000-000000000714",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000705",
+ "id": "00000000-0000-0000-0000-000000000710",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000706",
+ "id": "00000000-0000-0000-0000-000000000711",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000704",
+ "id": "00000000-0000-0000-0000-000000000709",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000703",
+ "id": "00000000-0000-0000-0000-000000000708",
},
},
"viewGroups": {
"done": {
- "id": "00000000-0000-0000-0000-000000000712",
+ "id": "00000000-0000-0000-0000-000000000717",
},
"empty": {
- "id": "00000000-0000-0000-0000-000000000713",
+ "id": "00000000-0000-0000-0000-000000000718",
},
"inProgress": {
- "id": "00000000-0000-0000-0000-000000000711",
+ "id": "00000000-0000-0000-0000-000000000716",
},
"todo": {
- "id": "00000000-0000-0000-0000-000000000710",
+ "id": "00000000-0000-0000-0000-000000000715",
},
},
},
"byStatus": {
- "id": "00000000-0000-0000-0000-000000000723",
+ "id": "00000000-0000-0000-0000-000000000728",
"viewFieldGroups": {},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000718",
+ "id": "00000000-0000-0000-0000-000000000723",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000719",
+ "id": "00000000-0000-0000-0000-000000000724",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000717",
+ "id": "00000000-0000-0000-0000-000000000722",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000716",
+ "id": "00000000-0000-0000-0000-000000000721",
},
"title": {
- "id": "00000000-0000-0000-0000-000000000715",
+ "id": "00000000-0000-0000-0000-000000000720",
},
},
"viewGroups": {
"done": {
- "id": "00000000-0000-0000-0000-000000000722",
+ "id": "00000000-0000-0000-0000-000000000727",
},
"inProgress": {
- "id": "00000000-0000-0000-0000-000000000721",
+ "id": "00000000-0000-0000-0000-000000000726",
},
"todo": {
- "id": "00000000-0000-0000-0000-000000000720",
+ "id": "00000000-0000-0000-0000-000000000725",
},
},
},
"taskRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000731",
+ "id": "00000000-0000-0000-0000-000000000736",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000730",
+ "id": "00000000-0000-0000-0000-000000000735",
},
},
"viewFields": {
"assignee": {
- "id": "00000000-0000-0000-0000-000000000726",
+ "id": "00000000-0000-0000-0000-000000000731",
},
"attachments": {
- "id": "00000000-0000-0000-0000-000000000728",
+ "id": "00000000-0000-0000-0000-000000000733",
},
"dueAt": {
- "id": "00000000-0000-0000-0000-000000000724",
+ "id": "00000000-0000-0000-0000-000000000729",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000725",
+ "id": "00000000-0000-0000-0000-000000000730",
},
"taskTargets": {
- "id": "00000000-0000-0000-0000-000000000727",
+ "id": "00000000-0000-0000-0000-000000000732",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000729",
+ "id": "00000000-0000-0000-0000-000000000734",
},
},
"viewGroups": {},
@@ -2455,62 +2475,62 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"taskTarget": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000734",
+ "id": "00000000-0000-0000-0000-000000000739",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000737",
+ "id": "00000000-0000-0000-0000-000000000742",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000736",
+ "id": "00000000-0000-0000-0000-000000000741",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000733",
+ "id": "00000000-0000-0000-0000-000000000738",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000739",
+ "id": "00000000-0000-0000-0000-000000000744",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000740",
+ "id": "00000000-0000-0000-0000-000000000745",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000743",
+ "id": "00000000-0000-0000-0000-000000000748",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000744",
+ "id": "00000000-0000-0000-0000-000000000749",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000742",
+ "id": "00000000-0000-0000-0000-000000000747",
},
"task": {
- "id": "00000000-0000-0000-0000-000000000741",
+ "id": "00000000-0000-0000-0000-000000000746",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000735",
+ "id": "00000000-0000-0000-0000-000000000740",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000738",
+ "id": "00000000-0000-0000-0000-000000000743",
},
},
- "id": "00000000-0000-0000-0000-000000000751",
+ "id": "00000000-0000-0000-0000-000000000756",
"views": {
"allTaskTargets": {
- "id": "00000000-0000-0000-0000-000000000750",
+ "id": "00000000-0000-0000-0000-000000000755",
"viewFieldGroups": {},
"viewFields": {
"id": {
- "id": "00000000-0000-0000-0000-000000000745",
+ "id": "00000000-0000-0000-0000-000000000750",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000748",
+ "id": "00000000-0000-0000-0000-000000000753",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000749",
+ "id": "00000000-0000-0000-0000-000000000754",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000747",
+ "id": "00000000-0000-0000-0000-000000000752",
},
"task": {
- "id": "00000000-0000-0000-0000-000000000746",
+ "id": "00000000-0000-0000-0000-000000000751",
},
},
"viewGroups": {},
@@ -2520,128 +2540,128 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"timelineActivity": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000753",
+ "id": "00000000-0000-0000-0000-000000000758",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000756",
+ "id": "00000000-0000-0000-0000-000000000761",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000755",
+ "id": "00000000-0000-0000-0000-000000000760",
},
"happensAt": {
- "id": "00000000-0000-0000-0000-000000000762",
+ "id": "00000000-0000-0000-0000-000000000767",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000752",
+ "id": "00000000-0000-0000-0000-000000000757",
},
"linkedObjectMetadataId": {
- "id": "00000000-0000-0000-0000-000000000778",
+ "id": "00000000-0000-0000-0000-000000000783",
},
"linkedRecordCachedName": {
- "id": "00000000-0000-0000-0000-000000000776",
+ "id": "00000000-0000-0000-0000-000000000781",
},
"linkedRecordId": {
- "id": "00000000-0000-0000-0000-000000000777",
+ "id": "00000000-0000-0000-0000-000000000782",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000758",
+ "id": "00000000-0000-0000-0000-000000000763",
},
"properties": {
- "id": "00000000-0000-0000-0000-000000000763",
+ "id": "00000000-0000-0000-0000-000000000768",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000759",
+ "id": "00000000-0000-0000-0000-000000000764",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000766",
+ "id": "00000000-0000-0000-0000-000000000771",
},
"targetDashboard": {
- "id": "00000000-0000-0000-0000-000000000773",
+ "id": "00000000-0000-0000-0000-000000000778",
},
"targetMessageCampaign": {
- "id": "00000000-0000-0000-0000-000000000775",
+ "id": "00000000-0000-0000-0000-000000000780",
},
"targetMessageList": {
- "id": "00000000-0000-0000-0000-000000000774",
+ "id": "00000000-0000-0000-0000-000000000779",
},
"targetNote": {
- "id": "00000000-0000-0000-0000-000000000769",
+ "id": "00000000-0000-0000-0000-000000000774",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000767",
+ "id": "00000000-0000-0000-0000-000000000772",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000765",
+ "id": "00000000-0000-0000-0000-000000000770",
},
"targetTask": {
- "id": "00000000-0000-0000-0000-000000000768",
+ "id": "00000000-0000-0000-0000-000000000773",
},
"targetWorkflow": {
- "id": "00000000-0000-0000-0000-000000000770",
+ "id": "00000000-0000-0000-0000-000000000775",
},
"targetWorkflowRun": {
- "id": "00000000-0000-0000-0000-000000000772",
+ "id": "00000000-0000-0000-0000-000000000777",
},
"targetWorkflowVersion": {
- "id": "00000000-0000-0000-0000-000000000771",
+ "id": "00000000-0000-0000-0000-000000000776",
},
"timelineActivityTypeId": {
- "id": "00000000-0000-0000-0000-000000000760",
+ "id": "00000000-0000-0000-0000-000000000765",
},
"timelineActivityTypeSnapshot": {
- "id": "00000000-0000-0000-0000-000000000761",
+ "id": "00000000-0000-0000-0000-000000000766",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000754",
+ "id": "00000000-0000-0000-0000-000000000759",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000757",
+ "id": "00000000-0000-0000-0000-000000000762",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000764",
+ "id": "00000000-0000-0000-0000-000000000769",
},
},
- "id": "00000000-0000-0000-0000-000000000792",
+ "id": "00000000-0000-0000-0000-000000000797",
"views": {
"allTimelineActivities": {
- "id": "00000000-0000-0000-0000-000000000791",
+ "id": "00000000-0000-0000-0000-000000000796",
"viewFieldGroups": {},
"viewFields": {
"happensAt": {
- "id": "00000000-0000-0000-0000-000000000780",
+ "id": "00000000-0000-0000-0000-000000000785",
},
"linkedRecordCachedName": {
- "id": "00000000-0000-0000-0000-000000000779",
+ "id": "00000000-0000-0000-0000-000000000784",
},
"targetCompany": {
- "id": "00000000-0000-0000-0000-000000000783",
+ "id": "00000000-0000-0000-0000-000000000788",
},
"targetDashboard": {
- "id": "00000000-0000-0000-0000-000000000790",
+ "id": "00000000-0000-0000-0000-000000000795",
},
"targetNote": {
- "id": "00000000-0000-0000-0000-000000000786",
+ "id": "00000000-0000-0000-0000-000000000791",
},
"targetOpportunity": {
- "id": "00000000-0000-0000-0000-000000000784",
+ "id": "00000000-0000-0000-0000-000000000789",
},
"targetPerson": {
- "id": "00000000-0000-0000-0000-000000000782",
+ "id": "00000000-0000-0000-0000-000000000787",
},
"targetTask": {
- "id": "00000000-0000-0000-0000-000000000785",
+ "id": "00000000-0000-0000-0000-000000000790",
},
"targetWorkflow": {
- "id": "00000000-0000-0000-0000-000000000787",
+ "id": "00000000-0000-0000-0000-000000000792",
},
"targetWorkflowRun": {
- "id": "00000000-0000-0000-0000-000000000789",
+ "id": "00000000-0000-0000-0000-000000000794",
},
"targetWorkflowVersion": {
- "id": "00000000-0000-0000-0000-000000000788",
+ "id": "00000000-0000-0000-0000-000000000793",
},
"workspaceMember": {
- "id": "00000000-0000-0000-0000-000000000781",
+ "id": "00000000-0000-0000-0000-000000000786",
},
},
"viewGroups": {},
@@ -2651,80 +2671,80 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflow": {
"fields": {
"attachments": {
- "id": "00000000-0000-0000-0000-000000000809",
+ "id": "00000000-0000-0000-0000-000000000814",
},
"automatedTriggers": {
- "id": "00000000-0000-0000-0000-000000000807",
+ "id": "00000000-0000-0000-0000-000000000812",
},
"coreWorkflowId": {
- "id": "00000000-0000-0000-0000-000000000803",
+ "id": "00000000-0000-0000-0000-000000000808",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000794",
+ "id": "00000000-0000-0000-0000-000000000799",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000797",
+ "id": "00000000-0000-0000-0000-000000000802",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000796",
+ "id": "00000000-0000-0000-0000-000000000801",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000793",
+ "id": "00000000-0000-0000-0000-000000000798",
},
"lastPublishedVersionId": {
- "id": "00000000-0000-0000-0000-000000000802",
+ "id": "00000000-0000-0000-0000-000000000807",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000801",
+ "id": "00000000-0000-0000-0000-000000000806",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000799",
+ "id": "00000000-0000-0000-0000-000000000804",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000806",
+ "id": "00000000-0000-0000-0000-000000000811",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000800",
+ "id": "00000000-0000-0000-0000-000000000805",
},
"statuses": {
- "id": "00000000-0000-0000-0000-000000000804",
+ "id": "00000000-0000-0000-0000-000000000809",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000808",
+ "id": "00000000-0000-0000-0000-000000000813",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000795",
+ "id": "00000000-0000-0000-0000-000000000800",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000798",
+ "id": "00000000-0000-0000-0000-000000000803",
},
"versions": {
- "id": "00000000-0000-0000-0000-000000000805",
+ "id": "00000000-0000-0000-0000-000000000810",
},
},
- "id": "00000000-0000-0000-0000-000000000817",
+ "id": "00000000-0000-0000-0000-000000000822",
"views": {
"allWorkflows": {
- "id": "00000000-0000-0000-0000-000000000816",
+ "id": "00000000-0000-0000-0000-000000000821",
"viewFieldGroups": {},
"viewFields": {
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000813",
+ "id": "00000000-0000-0000-0000-000000000818",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000810",
+ "id": "00000000-0000-0000-0000-000000000815",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000815",
+ "id": "00000000-0000-0000-0000-000000000820",
},
"statuses": {
- "id": "00000000-0000-0000-0000-000000000811",
+ "id": "00000000-0000-0000-0000-000000000816",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000812",
+ "id": "00000000-0000-0000-0000-000000000817",
},
"versions": {
- "id": "00000000-0000-0000-0000-000000000814",
+ "id": "00000000-0000-0000-0000-000000000819",
},
},
"viewGroups": {},
@@ -2734,79 +2754,79 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowAutomatedTrigger": {
"fields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000819",
+ "id": "00000000-0000-0000-0000-000000000824",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000822",
+ "id": "00000000-0000-0000-0000-000000000827",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000821",
+ "id": "00000000-0000-0000-0000-000000000826",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000818",
+ "id": "00000000-0000-0000-0000-000000000823",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000824",
+ "id": "00000000-0000-0000-0000-000000000829",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000825",
+ "id": "00000000-0000-0000-0000-000000000830",
},
"settings": {
- "id": "00000000-0000-0000-0000-000000000827",
+ "id": "00000000-0000-0000-0000-000000000832",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000826",
+ "id": "00000000-0000-0000-0000-000000000831",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000820",
+ "id": "00000000-0000-0000-0000-000000000825",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000823",
+ "id": "00000000-0000-0000-0000-000000000828",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000828",
+ "id": "00000000-0000-0000-0000-000000000833",
},
},
- "id": "00000000-0000-0000-0000-000000000840",
+ "id": "00000000-0000-0000-0000-000000000845",
"views": {
"allWorkflowAutomatedTriggers": {
- "id": "00000000-0000-0000-0000-000000000832",
+ "id": "00000000-0000-0000-0000-000000000837",
"viewFieldGroups": {},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000831",
+ "id": "00000000-0000-0000-0000-000000000836",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000829",
+ "id": "00000000-0000-0000-0000-000000000834",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000830",
+ "id": "00000000-0000-0000-0000-000000000835",
},
},
"viewGroups": {},
},
"workflowAutomatedTriggerRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000839",
+ "id": "00000000-0000-0000-0000-000000000844",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000837",
+ "id": "00000000-0000-0000-0000-000000000842",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000838",
+ "id": "00000000-0000-0000-0000-000000000843",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000835",
+ "id": "00000000-0000-0000-0000-000000000840",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000836",
+ "id": "00000000-0000-0000-0000-000000000841",
},
"type": {
- "id": "00000000-0000-0000-0000-000000000833",
+ "id": "00000000-0000-0000-0000-000000000838",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000834",
+ "id": "00000000-0000-0000-0000-000000000839",
},
},
"viewGroups": {},
@@ -2816,130 +2836,130 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowRun": {
"fields": {
"coreWorkflowId": {
- "id": "00000000-0000-0000-0000-000000000858",
+ "id": "00000000-0000-0000-0000-000000000863",
},
"coreWorkflowVersionId": {
- "id": "00000000-0000-0000-0000-000000000859",
+ "id": "00000000-0000-0000-0000-000000000864",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000842",
+ "id": "00000000-0000-0000-0000-000000000847",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000845",
+ "id": "00000000-0000-0000-0000-000000000850",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000844",
+ "id": "00000000-0000-0000-0000-000000000849",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000854",
+ "id": "00000000-0000-0000-0000-000000000859",
},
"enqueuedAt": {
- "id": "00000000-0000-0000-0000-000000000852",
+ "id": "00000000-0000-0000-0000-000000000857",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000841",
+ "id": "00000000-0000-0000-0000-000000000846",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000849",
+ "id": "00000000-0000-0000-0000-000000000854",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000847",
+ "id": "00000000-0000-0000-0000-000000000852",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000848",
+ "id": "00000000-0000-0000-0000-000000000853",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000853",
+ "id": "00000000-0000-0000-0000-000000000858",
},
"state": {
- "id": "00000000-0000-0000-0000-000000000856",
+ "id": "00000000-0000-0000-0000-000000000861",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000855",
+ "id": "00000000-0000-0000-0000-000000000860",
},
"stepLogs": {
- "id": "00000000-0000-0000-0000-000000000857",
+ "id": "00000000-0000-0000-0000-000000000862",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000860",
+ "id": "00000000-0000-0000-0000-000000000865",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000843",
+ "id": "00000000-0000-0000-0000-000000000848",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000846",
+ "id": "00000000-0000-0000-0000-000000000851",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000851",
+ "id": "00000000-0000-0000-0000-000000000856",
},
"workflowVersion": {
- "id": "00000000-0000-0000-0000-000000000850",
+ "id": "00000000-0000-0000-0000-000000000855",
},
},
- "id": "00000000-0000-0000-0000-000000000880",
+ "id": "00000000-0000-0000-0000-000000000885",
"views": {
"allWorkflowRuns": {
- "id": "00000000-0000-0000-0000-000000000864",
+ "id": "00000000-0000-0000-0000-000000000869",
"viewFieldGroups": {},
"viewFields": {
"name": {
- "id": "00000000-0000-0000-0000-000000000861",
+ "id": "00000000-0000-0000-0000-000000000866",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000863",
+ "id": "00000000-0000-0000-0000-000000000868",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000862",
+ "id": "00000000-0000-0000-0000-000000000867",
},
},
"viewGroups": {},
},
"workflowRunRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000879",
+ "id": "00000000-0000-0000-0000-000000000884",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000877",
+ "id": "00000000-0000-0000-0000-000000000882",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000878",
+ "id": "00000000-0000-0000-0000-000000000883",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000870",
+ "id": "00000000-0000-0000-0000-000000000875",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000871",
+ "id": "00000000-0000-0000-0000-000000000876",
},
"endedAt": {
- "id": "00000000-0000-0000-0000-000000000869",
+ "id": "00000000-0000-0000-0000-000000000874",
},
"enqueuedAt": {
- "id": "00000000-0000-0000-0000-000000000872",
+ "id": "00000000-0000-0000-0000-000000000877",
},
"startedAt": {
- "id": "00000000-0000-0000-0000-000000000868",
+ "id": "00000000-0000-0000-0000-000000000873",
},
"state": {
- "id": "00000000-0000-0000-0000-000000000873",
+ "id": "00000000-0000-0000-0000-000000000878",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000865",
+ "id": "00000000-0000-0000-0000-000000000870",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000876",
+ "id": "00000000-0000-0000-0000-000000000881",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000874",
+ "id": "00000000-0000-0000-0000-000000000879",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000875",
+ "id": "00000000-0000-0000-0000-000000000880",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000866",
+ "id": "00000000-0000-0000-0000-000000000871",
},
"workflowVersion": {
- "id": "00000000-0000-0000-0000-000000000867",
+ "id": "00000000-0000-0000-0000-000000000872",
},
},
"viewGroups": {},
@@ -2949,118 +2969,118 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workflowVersion": {
"fields": {
"coreWorkflowVersionId": {
- "id": "00000000-0000-0000-0000-000000000895",
+ "id": "00000000-0000-0000-0000-000000000900",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000882",
+ "id": "00000000-0000-0000-0000-000000000887",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000885",
+ "id": "00000000-0000-0000-0000-000000000890",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000884",
+ "id": "00000000-0000-0000-0000-000000000889",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000881",
+ "id": "00000000-0000-0000-0000-000000000886",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000889",
+ "id": "00000000-0000-0000-0000-000000000894",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000887",
+ "id": "00000000-0000-0000-0000-000000000892",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000893",
+ "id": "00000000-0000-0000-0000-000000000898",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000888",
+ "id": "00000000-0000-0000-0000-000000000893",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000892",
+ "id": "00000000-0000-0000-0000-000000000897",
},
"steps": {
- "id": "00000000-0000-0000-0000-000000000894",
+ "id": "00000000-0000-0000-0000-000000000899",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000896",
+ "id": "00000000-0000-0000-0000-000000000901",
},
"trigger": {
- "id": "00000000-0000-0000-0000-000000000891",
+ "id": "00000000-0000-0000-0000-000000000896",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000883",
+ "id": "00000000-0000-0000-0000-000000000888",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000886",
+ "id": "00000000-0000-0000-0000-000000000891",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000890",
+ "id": "00000000-0000-0000-0000-000000000895",
},
},
- "id": "00000000-0000-0000-0000-000000000916",
+ "id": "00000000-0000-0000-0000-000000000921",
"views": {
"allWorkflowVersions": {
- "id": "00000000-0000-0000-0000-000000000902",
+ "id": "00000000-0000-0000-0000-000000000907",
"viewFieldGroups": {},
"viewFields": {
"name": {
- "id": "00000000-0000-0000-0000-000000000897",
+ "id": "00000000-0000-0000-0000-000000000902",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000901",
+ "id": "00000000-0000-0000-0000-000000000906",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000899",
+ "id": "00000000-0000-0000-0000-000000000904",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000900",
+ "id": "00000000-0000-0000-0000-000000000905",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000898",
+ "id": "00000000-0000-0000-0000-000000000903",
},
},
"viewGroups": {},
},
"workflowVersionRecordPageFields": {
- "id": "00000000-0000-0000-0000-000000000915",
+ "id": "00000000-0000-0000-0000-000000000920",
"viewFieldGroups": {
"general": {
- "id": "00000000-0000-0000-0000-000000000913",
+ "id": "00000000-0000-0000-0000-000000000918",
},
"system": {
- "id": "00000000-0000-0000-0000-000000000914",
+ "id": "00000000-0000-0000-0000-000000000919",
},
},
"viewFields": {
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000906",
+ "id": "00000000-0000-0000-0000-000000000911",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000908",
+ "id": "00000000-0000-0000-0000-000000000913",
},
"runs": {
- "id": "00000000-0000-0000-0000-000000000911",
+ "id": "00000000-0000-0000-0000-000000000916",
},
"status": {
- "id": "00000000-0000-0000-0000-000000000903",
+ "id": "00000000-0000-0000-0000-000000000908",
},
"steps": {
- "id": "00000000-0000-0000-0000-000000000907",
+ "id": "00000000-0000-0000-0000-000000000912",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000912",
+ "id": "00000000-0000-0000-0000-000000000917",
},
"trigger": {
- "id": "00000000-0000-0000-0000-000000000905",
+ "id": "00000000-0000-0000-0000-000000000910",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000909",
+ "id": "00000000-0000-0000-0000-000000000914",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000910",
+ "id": "00000000-0000-0000-0000-000000000915",
},
"workflow": {
- "id": "00000000-0000-0000-0000-000000000904",
+ "id": "00000000-0000-0000-0000-000000000909",
},
},
"viewGroups": {},
@@ -3070,110 +3090,110 @@ exports[`getStandardObjectMetadataRelatedEntityIds should return standard object
"workspaceMember": {
"fields": {
"accountOwnerForCompanies": {
- "id": "00000000-0000-0000-0000-000000000936",
+ "id": "00000000-0000-0000-0000-000000000941",
},
"assignedTasks": {
- "id": "00000000-0000-0000-0000-000000000934",
+ "id": "00000000-0000-0000-0000-000000000939",
},
"avatarUrl": {
- "id": "00000000-0000-0000-0000-000000000930",
+ "id": "00000000-0000-0000-0000-000000000935",
},
"blocklist": {
- "id": "00000000-0000-0000-0000-000000000938",
+ "id": "00000000-0000-0000-0000-000000000943",
},
"calendarEventParticipants": {
- "id": "00000000-0000-0000-0000-000000000939",
+ "id": "00000000-0000-0000-0000-000000000944",
},
"calendarStartDay": {
- "id": "00000000-0000-0000-0000-000000000944",
+ "id": "00000000-0000-0000-0000-000000000949",
},
"colorScheme": {
- "id": "00000000-0000-0000-0000-000000000926",
+ "id": "00000000-0000-0000-0000-000000000931",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000918",
+ "id": "00000000-0000-0000-0000-000000000923",
},
"createdBy": {
- "id": "00000000-0000-0000-0000-000000000921",
+ "id": "00000000-0000-0000-0000-000000000926",
},
"dateFormat": {
- "id": "00000000-0000-0000-0000-000000000942",
+ "id": "00000000-0000-0000-0000-000000000947",
},
"deletedAt": {
- "id": "00000000-0000-0000-0000-000000000920",
+ "id": "00000000-0000-0000-0000-000000000925",
},
"id": {
- "id": "00000000-0000-0000-0000-000000000917",
+ "id": "00000000-0000-0000-0000-000000000922",
},
"jobTitle": {
- "id": "00000000-0000-0000-0000-000000000932",
+ "id": "00000000-0000-0000-0000-000000000937",
},
"locale": {
- "id": "00000000-0000-0000-0000-000000000929",
+ "id": "00000000-0000-0000-0000-000000000934",
},
"messageParticipants": {
- "id": "00000000-0000-0000-0000-000000000937",
+ "id": "00000000-0000-0000-0000-000000000942",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000925",
+ "id": "00000000-0000-0000-0000-000000000930",
},
"numberFormat": {
- "id": "00000000-0000-0000-0000-000000000945",
+ "id": "00000000-0000-0000-0000-000000000950",
},
"openRecordIn": {
- "id": "00000000-0000-0000-0000-000000000928",
+ "id": "00000000-0000-0000-0000-000000000933",
},
"ownedOpportunities": {
- "id": "00000000-0000-0000-0000-000000000935",
+ "id": "00000000-0000-0000-0000-000000000940",
},
"position": {
- "id": "00000000-0000-0000-0000-000000000923",
+ "id": "00000000-0000-0000-0000-000000000928",
},
"searchVector": {
- "id": "00000000-0000-0000-0000-000000000924",
+ "id": "00000000-0000-0000-0000-000000000929",
},
"timeFormat": {
- "id": "00000000-0000-0000-0000-000000000943",
+ "id": "00000000-0000-0000-0000-000000000948",
},
"timeZone": {
- "id": "00000000-0000-0000-0000-000000000941",
+ "id": "00000000-0000-0000-0000-000000000946",
},
"timelineActivities": {
- "id": "00000000-0000-0000-0000-000000000940",
+ "id": "00000000-0000-0000-0000-000000000945",
},
"uiScale": {
- "id": "00000000-0000-0000-0000-000000000927",
+ "id": "00000000-0000-0000-0000-000000000932",
},
"updatedAt": {
- "id": "00000000-0000-0000-0000-000000000919",
+ "id": "00000000-0000-0000-0000-000000000924",
},
"updatedBy": {
- "id": "00000000-0000-0000-0000-000000000922",
+ "id": "00000000-0000-0000-0000-000000000927",
},
"userEmail": {
- "id": "00000000-0000-0000-0000-000000000931",
+ "id": "00000000-0000-0000-0000-000000000936",
},
"userId": {
- "id": "00000000-0000-0000-0000-000000000933",
+ "id": "00000000-0000-0000-0000-000000000938",
},
},
- "id": "00000000-0000-0000-0000-000000000951",
+ "id": "00000000-0000-0000-0000-000000000956",
"views": {
"allWorkspaceMembers": {
- "id": "00000000-0000-0000-0000-000000000950",
+ "id": "00000000-0000-0000-0000-000000000955",
"viewFieldGroups": {},
"viewFields": {
"assignedTasks": {
- "id": "00000000-0000-0000-0000-000000000949",
+ "id": "00000000-0000-0000-0000-000000000954",
},
"createdAt": {
- "id": "00000000-0000-0000-0000-000000000947",
+ "id": "00000000-0000-0000-0000-000000000952",
},
"name": {
- "id": "00000000-0000-0000-0000-000000000946",
+ "id": "00000000-0000-0000-0000-000000000951",
},
"ownedOpportunities": {
- "id": "00000000-0000-0000-0000-000000000948",
+ "id": "00000000-0000-0000-0000-000000000953",
},
},
"viewGroups": {},
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/build-standard-flat-view-field-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/build-standard-flat-view-field-metadata-maps.util.ts
index 0eca5809816..e0e8cf4aee0 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/build-standard-flat-view-field-metadata-maps.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/build-standard-flat-view-field-metadata-maps.util.ts
@@ -15,6 +15,7 @@ import { computeStandardMessageCampaignViewFields } from 'src/engine/workspace-m
import { computeStandardMessageChannelMessageAssociationMessageFolderViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-message-association-message-folder-view-fields.util';
import { computeStandardMessageChannelMessageAssociationViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-channel-message-association-view-fields.util';
import { computeStandardMessageListViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-list-view-fields.util';
+import { computeStandardMessageListMemberViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-list-member-view-fields.util';
import { computeStandardMessageParticipantViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-participant-view-fields.util';
import { computeStandardMessageThreadViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-thread-view-fields.util';
import { computeStandardMessageViewFields } from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-view-fields.util';
@@ -53,6 +54,7 @@ const STANDARD_FLAT_VIEW_FIELD_METADATA_BUILDERS_BY_OBJECT_NAME = {
messageChannelMessageAssociationMessageFolder:
computeStandardMessageChannelMessageAssociationMessageFolderViewFields,
messageList: computeStandardMessageListViewFields,
+ messageListMember: computeStandardMessageListMemberViewFields,
messageParticipant: computeStandardMessageParticipantViewFields,
messageThread: computeStandardMessageThreadViewFields,
note: computeStandardNoteViewFields,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-list-member-view-fields.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-list-member-view-fields.util.ts
new file mode 100644
index 00000000000..135509d299a
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view-field/compute-standard-message-list-member-view-fields.util.ts
@@ -0,0 +1,60 @@
+import { type FlatViewField } from 'src/engine/metadata-modules/flat-view-field/types/flat-view-field.type';
+import {
+ createStandardViewFieldFlatMetadata,
+ type CreateStandardViewFieldArgs,
+} from 'src/engine/workspace-manager/twenty-standard-application/utils/view-field/create-standard-view-field-flat-metadata.util';
+
+export const computeStandardMessageListMemberViewFields = (
+ args: Omit<CreateStandardViewFieldArgs<'messageListMember'>, 'context'>,
+): Record<string, FlatViewField> => {
+ return {
+ allMessageListMembersId: createStandardViewFieldFlatMetadata({
+ ...args,
+ objectName: 'messageListMember',
+ context: {
+ viewName: 'allMessageListMembers',
+ viewFieldName: 'id',
+ fieldName: 'id',
+ position: 0,
+ isVisible: true,
+ size: 210,
+ },
+ }),
+ allMessageListMembersPerson: createStandardViewFieldFlatMetadata({
+ ...args,
+ objectName: 'messageListMember',
+ context: {
+ viewName: 'allMessageListMembers',
+ viewFieldName: 'person',
+ fieldName: 'person',
+ position: 1,
+ isVisible: true,
+ size: 150,
+ },
+ }),
+ allMessageListMembersList: createStandardViewFieldFlatMetadata({
+ ...args,
+ objectName: 'messageListMember',
+ context: {
+ viewName: 'allMessageListMembers',
+ viewFieldName: 'list',
+ fieldName: 'list',
+ position: 2,
+ isVisible: true,
+ size: 150,
+ },
+ }),
+ allMessageListMembersCreatedAt: createStandardViewFieldFlatMetadata({
+ ...args,
+ objectName: 'messageListMember',
+ context: {
+ viewName: 'allMessageListMembers',
+ viewFieldName: 'createdAt',
+ fieldName: 'createdAt',
+ position: 3,
+ isVisible: true,
+ size: 150,
+ },
+ }),
+ };
+};
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/build-standard-flat-view-metadata-maps.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/build-standard-flat-view-metadata-maps.util.ts
index fde7a7fe427..61154c82802 100644
--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/build-standard-flat-view-metadata-maps.util.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/build-standard-flat-view-metadata-maps.util.ts
@@ -15,6 +15,7 @@ import { computeStandardMessageCampaignViews } from 'src/engine/workspace-manage
import { computeStandardMessageChannelMessageAssociationMessageFolderViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-message-folder-views.util';
import { computeStandardMessageChannelMessageAssociationViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-channel-message-association-views.util';
import { computeStandardMessageListViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-list-views.util';
+import { computeStandardMessageListMemberViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-list-member-views.util';
import { computeStandardMessageParticipantViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-participant-views.util';
import { computeStandardMessageThreadViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-thread-views.util';
import { computeStandardMessageViews } from 'src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-views.util';
@@ -53,6 +54,7 @@ const STANDARD_FLAT_VIEW_METADATA_BUILDERS_BY_OBJECT_NAME = {
messageChannelMessageAssociationMessageFolder:
computeStandardMessageChannelMessageAssociationMessageFolderViews,
messageList: computeStandardMessageListViews,
+ messageListMember: computeStandardMessageListMemberViews,
messageParticipant: computeStandardMessageParticipantViews,
messageThread: computeStandardMessageThreadViews,
note: computeStandardNoteViews,
diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-list-member-views.util.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-list-member-views.util.ts
new file mode 100644
index 00000000000..e3cc38c56d3
--- /dev/null
+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/view/compute-standard-message-list-member-views.util.ts
@@ -0,0 +1,27 @@
+import { ViewType, ViewKey } from 'twenty-shared/types';
+
+import { INDEX_VIEW_NAME } from 'src/engine/metadata-modules/view/constants/index-view-name.constant';
+import { type FlatView } from 'src/engine/metadata-modules/flat-view/types/flat-view.type';
+import {
+ createStandardViewFlatMetadata,
+ type CreateStandardViewArgs,
+} from 'src/engine/workspace-manager/twenty-standard-application/utils/view/create-standard-view-flat-metadata.util';
+
+export const computeStandardMessageListMemberViews = (
+ args: Omit<CreateStandardViewArgs<'messageListMember'>, 'context'>,
+): Record<string, FlatView> => {
+ return {
+ allMessageListMembers: createStandardViewFlatMetadata({
+ ...args,
+ objectName: 'messageListMember',
+ context: {
+ viewName: 'allMessageListMembers',
+ name: INDEX_VIEW_NAME,
+ type: ViewType.TABLE,
+ key: ViewKey.INDEX,
+ position: 0,
+ icon: 'IconTable',
+ },
+ }),
+ };
+};
diff --git a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
index 162bf6d5ca2..088033f6323 100644
--- a/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
+++ b/packages/twenty-shared/src/metadata/__tests__/__snapshots__/standardObjectUniversalIdentifiers.test.ts.snap
@@ -1623,6 +1623,25 @@ exports[`STANDARD_OBJECTS universal identifiers should never change without an e
},
},
"universalIdentifier": "27773d24-8ce3-40f8-aa6c-1f590f2c08d2",
+ "views": {
+ "allMessageListMembers": {
+ "universalIdentifier": "3644ee45-c77f-5d55-a358-b982e0bfcb24",
+ "viewFields": {
+ "createdAt": {
+ "universalIdentifier": "a682eecd-e89c-5101-b3e2-b4d8153e2e75",
+ },
+ "id": {
+ "universalIdentifier": "9b3e754c-a529-5e1b-9da2-fc72bbd3af1e",
+ },
+ "list": {
+ "universalIdentifier": "fa1c5fad-d1e0-5aaf-8dfa-6f3c01c99463",
+ },
+ "person": {
+ "universalIdentifier": "d3bd59ad-04b8-55b1-8322-d7bd90be4064",
+ },
+ },
+ },
+ },
},
"messageParticipant": {
"fields": {
diff --git a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
index ebc9278eca5..89ad3523f62 100644
--- a/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
+++ b/packages/twenty-shared/src/metadata/constants/standard-object.constant.ts
@@ -474,6 +474,14 @@ export const STANDARD_OBJECTS = {
universalIdentifier: 'e5497dc2-1d72-418c-a389-a0645ca0195a',
},
},
+ views: {
+ allMessageListMembers: buildStandardObjectIndexView({
+ objectUniversalIdentifier:
+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.messageListMember,
+ fields: STANDARD_OBJECT_FIELDS.messageListMember,
+ viewFieldNames: ['id', 'person', 'list', 'createdAt'],
+ }),
+ },
},
messageChannelMessageAssociation: {
universalIdentifier: