Skip to content

Commit

Permalink
added custom field
Browse files Browse the repository at this point in the history
  • Loading branch information
Szandor72 committed Apr 23, 2024
1 parent 4bdc95d commit 5b2e6f9
Show file tree
Hide file tree
Showing 2 changed files with 274 additions and 0 deletions.
263 changes: 263 additions & 0 deletions force-app/main/default/layouts/Account-Account Layout.layout-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,263 @@
<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<excludeButtons>DataDotComAccountInsights</excludeButtons>
<excludeButtons>DataDotComClean</excludeButtons>
<excludeButtons>DataDotComCompanyHierarchy</excludeButtons>
<excludeButtons>Submit</excludeButtons>
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>false</detailHeading>
<editHeading>true</editHeading>
<label>Account Information</label>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>OwnerId</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>Name</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>ParentId</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>SetByFlowOnInsert__c</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>CustomField__c</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>IsVIP__c</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Phone</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Website</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>true</detailHeading>
<editHeading>true</editHeading>
<label>Additional Information</label>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>Type</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Industry</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>NumberOfEmployees</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>AnnualRevenue</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsLeftToRight</style>
</layoutSections>
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>false</detailHeading>
<editHeading>false</editHeading>
<label>Description Information</label>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>Description</field>
</layoutItems>
</layoutColumns>
<style>OneColumn</style>
</layoutSections>
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>true</detailHeading>
<editHeading>false</editHeading>
<label>Address Information</label>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>BillingAddress</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>ShippingAddress</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>true</detailHeading>
<editHeading>true</editHeading>
<label>System Information</label>
<layoutColumns>
<layoutItems>
<behavior>Readonly</behavior>
<field>CreatedById</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Readonly</behavior>
<field>LastModifiedById</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>true</detailHeading>
<editHeading>false</editHeading>
<label>Custom Links</label>
<layoutColumns>
<layoutItems>
<customLink>GoogleSearch</customLink>
</layoutItems>
<layoutItems>
<customLink>HooversProfile</customLink>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<customLink>GoogleMaps</customLink>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<customLink>GoogleNews</customLink>
</layoutItems>
</layoutColumns>
<style>CustomLinks</style>
</layoutSections>
<quickActionList>
<quickActionListItems>
<quickActionName>FeedItem.TextPost</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>FeedItem.ContentPost</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>NewTask</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>NewContact</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>NewCase</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>LogACall</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>NewOpportunity</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>NewEvent</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>FeedItem.ContentNote</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>FeedItem.RypplePost</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>FeedItem.LinkPost</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>FeedItem.PollPost</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>FeedItem.QuestionPost</quickActionName>
</quickActionListItems>
<quickActionListItems>
<quickActionName>SendEmail</quickActionName>
</quickActionListItems>
</quickActionList>
<relatedLists>
<fields>FULL_NAME</fields>
<fields>CONTACT.TITLE</fields>
<fields>CONTACT.EMAIL</fields>
<fields>CONTACT.PHONE1</fields>
<relatedList>RelatedContactList</relatedList>
</relatedLists>
<relatedLists>
<fields>TASK.SUBJECT</fields>
<fields>TASK.WHO_NAME</fields>
<fields>TASK.WHAT_NAME</fields>
<fields>ACTIVITY.TASK</fields>
<fields>TASK.DUE_DATE</fields>
<fields>TASK.STATUS</fields>
<fields>TASK.PRIORITY</fields>
<fields>CORE.USERS.FULL_NAME</fields>
<relatedList>RelatedActivityList</relatedList>
</relatedLists>
<relatedLists>
<fields>TASK.SUBJECT</fields>
<fields>TASK.WHO_NAME</fields>
<fields>TASK.WHAT_NAME</fields>
<fields>ACTIVITY.TASK</fields>
<fields>TASK.DUE_DATE</fields>
<fields>CORE.USERS.FULL_NAME</fields>
<fields>TASK.LAST_UPDATE</fields>
<relatedList>RelatedHistoryList</relatedList>
</relatedLists>
<relatedLists>
<fields>OPPORTUNITY.NAME</fields>
<fields>OPPORTUNITY.STAGE_NAME</fields>
<fields>OPPORTUNITY.AMOUNT</fields>
<fields>OPPORTUNITY.CLOSE_DATE</fields>
<relatedList>RelatedOpportunityList</relatedList>
</relatedLists>
<relatedLists>
<fields>CASES.CASE_NUMBER</fields>
<fields>NAME</fields>
<fields>CASES.SUBJECT</fields>
<fields>CASES.PRIORITY</fields>
<fields>CASES.CREATED_DATE_DATE_ONLY</fields>
<fields>CASES.STATUS</fields>
<fields>OWNER_NAME</fields>
<relatedList>RelatedCaseList</relatedList>
</relatedLists>
<relatedLists>
<fields>ACCOUNT.NAME</fields>
<fields>OPPORTUNITY.NAME</fields>
<fields>PARTNER.ROLE</fields>
<relatedList>RelatedPartnerList</relatedList>
</relatedLists>
<relatedLists>
<relatedList>RelatedNoteList</relatedList>
</relatedLists>
<relatedObjects>ParentId</relatedObjects>
<showEmailCheckbox>false</showEmailCheckbox>
<showHighlightsPanel>false</showHighlightsPanel>
<showInteractionLogPanel>false</showInteractionLogPanel>
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox>
<showSubmitAndAttachButton>false</showSubmitAndAttachButton>
<summaryLayout>
<masterLabel>00h58000001VOPM</masterLabel>
<sizeX>4</sizeX>
<sizeY>0</sizeY>
<summaryLayoutStyle>Default</summaryLayoutStyle>
</summaryLayout>
</Layout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>CustomField__c</fullName>
<externalId>false</externalId>
<label>CustomField22</label>
<length>255</length>
<required>false</required>
<trackFeedHistory>false</trackFeedHistory>
<type>Text</type>
<unique>false</unique>
</CustomField>

Check failure on line 11 in force-app/main/default/objects/Account/fields/CustomField__c.field-meta.xml

View workflow job for this annotation

GitHub Actions / Validate Metadata / PMD for sObjects

NoDescriptionInCustomFields

Custom Fields need a description

0 comments on commit 5b2e6f9

Please sign in to comment.