Fix company update with accountOwner (#2687)

This commit is contained in:
Weiko 2023-11-24 10:00:45 +01:00 committed by GitHub
parent 2d0f63219f
commit 851ce73609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 6 deletions

View File

@ -66,6 +66,20 @@ export const viewPrefillData = async (
isVisible: true,
size: 100,
},
{
fieldMetadataId: objectMetadataMap['company'].fields['accountOwner'],
viewId: viewIdMap['All Companies'],
position: 2,
isVisible: true,
size: 150,
},
{
fieldMetadataId: objectMetadataMap['company'].fields['createdAt'],
viewId: viewIdMap['All Companies'],
position: 3,
isVisible: true,
size: 150,
},
{
fieldMetadataId: objectMetadataMap['company'].fields['employees'],
viewId: viewIdMap['All Companies'],
@ -102,6 +116,13 @@ export const viewPrefillData = async (
isVisible: true,
size: 150,
},
{
fieldMetadataId: objectMetadataMap['person'].fields['company'],
viewId: viewIdMap['All People'],
position: 2,
isVisible: true,
size: 150,
},
{
fieldMetadataId: objectMetadataMap['person'].fields['phone'],
viewId: viewIdMap['All People'],
@ -109,6 +130,13 @@ export const viewPrefillData = async (
isVisible: true,
size: 150,
},
{
fieldMetadataId: objectMetadataMap['person'].fields['createdAt'],
viewId: viewIdMap['All People'],
position: 4,
isVisible: true,
size: 150,
},
{
fieldMetadataId: objectMetadataMap['person'].fields['city'],
viewId: viewIdMap['All People'],
@ -143,27 +171,27 @@ export const viewPrefillData = async (
viewId: viewIdMap['All Opportunities'],
position: 0,
isVisible: true,
size: 180,
size: 150,
},
{
fieldMetadataId: objectMetadataMap['opportunity'].fields['probability'],
fieldMetadataId: objectMetadataMap['opportunity'].fields['closeDate'],
viewId: viewIdMap['All Opportunities'],
position: 1,
isVisible: true,
size: 150,
},
{
fieldMetadataId: objectMetadataMap['opportunity'].fields['closeDate'],
fieldMetadataId: objectMetadataMap['opportunity'].fields['probability'],
viewId: viewIdMap['All Opportunities'],
position: 2,
isVisible: true,
size: 100,
size: 150,
},
{
fieldMetadataId:
objectMetadataMap['opportunity'].fields['pointOfContact'],
viewId: viewIdMap['All Opportunities'],
position: 5,
position: 3,
isVisible: true,
size: 150,
},

View File

@ -150,6 +150,18 @@ const companyMetadata = {
icon: 'IconUserCircle',
isNullable: true,
},
{
isCustom: false,
isActive: true,
type: FieldMetadataType.UUID,
name: 'accountOwnerId',
label: 'Account Owner ID (foreign key)',
targetColumnMap: {},
description: 'Foreign key for account owner',
icon: undefined,
isNullable: true,
isSystem: true,
},
{
isCustom: false,
isActive: true,

View File

@ -63,7 +63,7 @@ const personMetadata = {
url: 'xLinkUrl',
},
description: 'Contacts X/Twitter account',
icon: 'IconUser',
icon: 'IconBrandX',
isNullable: true,
},
{