{"title":"Codeunit 1636 Office Contact Handler, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1636-office-contact-handler/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":"codeunit","id":1636,"name":"Office Contact Handler","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1636-office-contact-handler/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1636-office-contact-handler/source/","path":"src/Layers/W1/BaseApp/CRM/Outlook/OfficeContactHandler.Codeunit.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":{"codeunit:1800":{"name":"Assisted Company Setup","url":"https://jonas-paprotka.de/ref/codeunit/1800-assisted-company-setup/"},"page:1604":{"name":"Office New Contact Dlg","url":"https://jonas-paprotka.de/ref/page/1604-office-new-contact-dlg/"},"table:1600":{"name":"Office Add-in Context","url":"https://jonas-paprotka.de/ref/table/1600-office-add-in-context/"},"page:1625":{"name":"Office Contact Associations","url":"https://jonas-paprotka.de/ref/page/1625-office-contact-associations/"},"codeunit:1630":{"name":"Office Management","url":"https://jonas-paprotka.de/ref/codeunit/1630-office-management/"},"table:1626":{"name":"Office Contact Details","url":"https://jonas-paprotka.de/ref/table/1626-office-contact-details/"},"page:1628":{"name":"Office No Vendor Dlg","url":"https://jonas-paprotka.de/ref/page/1628-office-no-vendor-dlg/"},"page:1627":{"name":"Office No Customer Dlg","url":"https://jonas-paprotka.de/ref/page/1627-office-no-customer-dlg/"},"page:5050":{"name":"Contact Card","url":"https://jonas-paprotka.de/ref/page/5050-contact-card/"},"page:21":{"name":"Customer Card","url":"https://jonas-paprotka.de/ref/page/21-customer-card/"},"codeunit:1637":{"name":"Office Document Handler","url":"https://jonas-paprotka.de/ref/codeunit/1637-office-document-handler/"},"page:26":{"name":"Vendor Card","url":"https://jonas-paprotka.de/ref/page/26-vendor-card/"}},"procs":[{"name":"OnRun","line":18,"kind":"trigger","steps":[[20,"call","HasValidRecipient",1],[21,"call","FindAndRedirectContact",1],[23,"call","ShowContactSelection",1]]},{"name":"FindAndRedirectContact","line":42,"kind":"procedure","access":"local","params":1,"steps":[[50,"ext","codeunit",1800,"GetAllowedCompaniesForCurrentUser",1],[57,"call","FindContacts",5],[63,"call","FindContacts",5],[68,"run","page",1604],[73,"ext","table",1600,"CommandType",0],[76,"call","ChangeCompanyAndShowContact",3],[82,"call","ChangeCompanyAndShowContact",3],[89,"run","page",1625]]},{"name":"ChangeCompanyAndShowContact","line":92,"kind":"procedure","access":"local","params":3,"steps":[[96,"ext","codeunit",1630,"ChangeCompanyWithPrompt",2],[97,"run","page",1604],[102,"call","ShowCustomerVendor",4],[102,"ext","table",1626,"GetContactNo",0]]},{"name":"FindContacts","line":105,"kind":"procedure","access":"local","params":5,"steps":[[118,"call","CollectMultipleContacts",5]]},{"name":"ShowContactSelection","line":121,"kind":"procedure","params":1,"steps":[[126,"call","FilterContacts",2]]},{"name":"ShowCustomerVendor","line":134,"kind":"procedure","params":4,"steps":[[143,"ext","table",1600,"CommandType",0],[144,"run","page",1628],[147,"call","RedirectCustomer",2],[152,"ext","table",1600,"CommandType",0],[153,"run","page",1627],[156,"call","RedirectVendor",2],[160,"ext","table",1600,"CommandType",0],[161,"run","page",1627],[164,"ext","table",1600,"CommandType",0],[165,"run","page",1628],[171,"run","page",5050]]},{"name":"CollectMultipleContacts","line":174,"kind":"procedure","access":"local","params":5,"steps":[[176,"call","FilterContactBusinessRelations",2],[177,"ext","table",1600,"IsAppointment",0],[190,"ext","table",1600,"CommandType",0],[192,"ext","table",1600,"CommandType",0],[194,"write",1626,"Insert"],[200,"call","CreateUnlinkedContactAssociation",3]]},{"name":"CreateUnlinkedContactAssociation","line":204,"kind":"procedure","access":"local","params":3,"steps":[[209,"write",1626,"Delete"],[220,"write",1626,"Insert"]]},{"name":"FilterContacts","line":242,"kind":"procedure","access":"local","params":2,"steps":[[248,"ext","table",1600,"CommandType",0],[249,"ext","table",1600,"IsAppointment",0]]},{"name":"RedirectCustomer","line":270,"kind":"procedure","access":"local","params":2,"steps":[[274,"run","page",21],[275,"ext","codeunit",1637,"HandleSalesCommand",2]]},{"name":"RedirectVendor","line":278,"kind":"procedure","access":"local","params":2,"steps":[[282,"run","page",26],[283,"ext","codeunit",1637,"HandlePurchaseCommand",2]]},{"name":"OnContactSelected","line":287,"kind":"procedure","access":"local","params":1,"steps":[[292,"ext","codeunit",1630,"IsAvailable",0],[293,"ext","codeunit",1630,"GetContext",1],[294,"call","HasValidRecipient",1],[299,"ext","codeunit",1630,"AddRecipient",2],[300,"ext","codeunit",1630,"InitializeContext",1]]}]}