{"title":"Table 5054 Contact Business Relation, extension points 29","url":"https://jonas-paprotka.de/ref/table/5054-contact-business-relation/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"table","id":5054,"name":"Contact Business Relation","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/5054-contact-business-relation/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/5054-contact-business-relation/source/","path":"src/Layers/W1/BaseApp/CRM/BusinessRelation/ContactBusinessRelation.Table.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:5054":{"name":"Contact Business Relation","url":"https://jonas-paprotka.de/ref/table/5054-contact-business-relation/"},"table:5050":{"name":"Contact","url":"https://jonas-paprotka.de/ref/table/5050-contact/"},"codeunit:5056":{"name":"CustCont-Update","url":"https://jonas-paprotka.de/ref/codeunit/5056-custcont-update/"},"codeunit:5057":{"name":"VendCont-Update","url":"https://jonas-paprotka.de/ref/codeunit/5057-vendcont-update/"},"table:5200":{"name":"Employee","url":"https://jonas-paprotka.de/ref/table/5200-employee/"},"page:5061":{"name":"Contact Business Relations","url":"https://jonas-paprotka.de/ref/page/5061-contact-business-relations/"},"page:21":{"name":"Customer Card","url":"https://jonas-paprotka.de/ref/page/21-customer-card/"},"page:26":{"name":"Vendor Card","url":"https://jonas-paprotka.de/ref/page/26-vendor-card/"},"page:370":{"name":"Bank Account Card","url":"https://jonas-paprotka.de/ref/page/370-bank-account-card/"},"page:5200":{"name":"Employee Card","url":"https://jonas-paprotka.de/ref/page/5200-employee-card/"}},"procs":[{"name":"Contact No..OnValidate","line":29,"kind":"trigger","steps":[[32,"validate",5054,"Business Relation Code"]]},{"name":"OnInsert","line":126,"kind":"trigger","steps":[[136,"event","OnInsertOnBeforeFindByContact",1],[138,"ext","table",5054,"FindByContact",2],[142,"event","OnInsertOnBeforeFindByRelation",1],[144,"ext","table",5054,"FindByRelation",2],[145,"call","GetContactBusinessRelation",1],[152,"write",5054,"DeleteAll"]]},{"name":"GetContactBusinessRelation","line":167,"kind":"procedure","access":"local","params":1,"steps":[[185,"event","OnGetContactBusinessRelation",0]]},{"name":"GetLinkedTables","line":189,"kind":"procedure","params":3,"steps":[[192,"call","FindByRelation",2],[193,"call","FindByContact",2]]},{"name":"GetContactNo","line":215,"kind":"procedure","params":2,"steps":[[217,"call","FindByRelation",2]]},{"name":"CreateRelation","line":222,"kind":"procedure","params":3,"steps":[[226,"call","GetBusinessRelationCodeFromSetup",1],[229,"write",5054,"Insert",1]]},{"name":"FindOrRestoreContactBusinessRelation","line":232,"kind":"procedure","params":3,"steps":[[243,"call","FindByRelation",2],[246,"ext","table",5050,"CheckForExistingRelationships",1],[247,"call","CreateRelation",3],[251,"ext","codeunit",5056,"OnInsert",1],[253,"ext","codeunit",5057,"OnInsert",1],[255,"event","OnFindOrRestoreContactBusinessRelationCaseElse",0],[258,"validate",5050,"Company No."],[259,"write",5050,"Modify",1]]},{"name":"GetBusinessRelationCodeFromSetup","line":263,"kind":"procedure","access":"local","params":1,"steps":[[286,"event","OnGetBusinessRelationCodeFromSetupCaseElse",0]]},{"name":"UpdateEmptyNoForContact","line":291,"kind":"procedure","params":3,"steps":[[307,"ext","table",5054,"FindByContact",2],[310,"write",5054,"Modify"]]},{"name":"FindContactsByRelation","line":317,"kind":"procedure","params":3,"steps":[[319,"call","FindByRelation",2]]},{"name":"GetName","line":330,"kind":"procedure","params":0,"steps":[[359,"ext","table",5200,"FullName",0],[362,"event","OnGetNameCaseElse",0]]},{"name":"ShowRelatedCardPage","line":366,"kind":"procedure","params":0,"steps":[[374,"run","page",5061],[383,"run","page",21],[389,"run","page",26],[395,"run","page",370],[400,"run","page",5200],[403,"event","OnShowRelatedCardPageCaseElse",0]]},{"name":"UpdateContactBusinessRelation","line":407,"kind":"procedure","params":0,"steps":[[416,"event","OnBeforeUpdateContactBusinessRelation",1],[422,"ext","table",5050,"UpdateBusinessRelation",0],[423,"write",5050,"Modify"],[429,"ext","table",5050,"UpdateBusinessRelation",0],[430,"write",5050,"Modify"]]}]}