{"title":"Report 5199 Update Contact Classification, extension points 29","url":"https://jonas-paprotka.de/ref/report/5199-update-contact-classification/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":"report","id":5199,"name":"Update Contact Classification","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/5199-update-contact-classification/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/5199-update-contact-classification/source/","path":"src/Layers/W1/BaseApp/CRM/Contact/UpdateContactClassification.Report.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:5101":{"name":"Contact Value","url":"https://jonas-paprotka.de/ref/table/5101-contact-value/"},"table:5089":{"name":"Contact Profile Answer","url":"https://jonas-paprotka.de/ref/table/5089-contact-profile-answer/"},"table:5088":{"name":"Profile Questionnaire Line","url":"https://jonas-paprotka.de/ref/table/5088-profile-questionnaire-line/"}},"procs":[{"name":"Profile Questionnaire Line.OnAfterGetRecord","line":34,"kind":"trigger","steps":[[43,"write",5101,"DeleteAll"],[60,"call","AnswersExists",3],[65,"call","FindCustomerValues",1],[67,"call","FindVendorValues",1],[69,"call","FindContactValues",1],[72,"call","MarkContactByMethod",2]]},{"name":"Integer.OnAfterGetRecord","line":96,"kind":"trigger","steps":[[98,"call","UpdateRating",0]]},{"name":"AnswersExists","line":169,"kind":"procedure","access":"protected","params":3,"steps":[[191,"write",5089,"DeleteAll"]]},{"name":"FindCustomerValues","line":196,"kind":"procedure","access":"local","params":1,"steps":[[213,"event","OnBeforeFindCustomerValues",0],[217,"event","OnFindCustomerValuesOnBeforeCustLoop",0],[221,"call","GetContactNo",3],[232,"event","OnFindCustomerValuesOnBeforeCustomerClassFieldCase",0],[237,"call","InsertContactValue",5],[242,"call","InsertContactValue",5],[252,"call","InsertContactValue",5],[263,"call","InsertContactValue",5],[265,"call","InsertContactValue",5],[282,"call","InsertContactValue",5],[287,"call","InsertContactValue",5],[289,"call","InsertContactValue",5],[317,"call","InsertContactValue",5],[320,"event","OnFindCustomerValuesOnAvgOverdueDayOnZeroInvoices",1],[322,"call","InsertContactValue",5],[327,"event","OnFindCustomerValuesOnElseCustomerClassFieldCase",1],[329,"call","InsertContactValue",5],[332,"event","OnFindCustomerValuesOnAfterCustomerClassFieldCase",0]]},{"name":"FindVendorValues","line":337,"kind":"procedure","access":"local","params":1,"steps":[[356,"call","GetContactNo",3],[372,"call","InsertContactValue",5],[382,"call","InsertContactValue",5],[394,"call","InsertContactValue",5],[396,"call","InsertContactValue",5],[413,"call","InsertContactValue",5],[418,"call","InsertContactValue",5],[420,"call","InsertContactValue",5],[448,"call","InsertContactValue",5],[450,"call","InsertContactValue",5]]},{"name":"FindContactValues","line":457,"kind":"procedure","access":"local","params":1,"steps":[[467,"event","OnBeforeFindContactValues",0],[471,"event","OnFindContactValuesOnBeforeContLoop",0],[475,"call","GetContactNo",3],[490,"call","InsertContactValue",5],[496,"call","InsertContactValue",5],[502,"call","InsertContactValue",5],[504,"call","InsertContactValue",5],[510,"call","InsertContactValue",5],[512,"call","InsertContactValue",5],[523,"call","InsertContactValue",5],[525,"call","InsertContactValue",5],[528,"event","OnFindContactValuesOnAfterContactClassFieldCase",0]]},{"name":"GetContactNo","line":533,"kind":"procedure","access":"local","params":3,"steps":[[562,"event","OnGetContactNoOnBeforeCheckContactValid",1]]},{"name":"InsertContactValue","line":585,"kind":"procedure","access":"protected","params":5,"steps":[[595,"write",5101,"Insert"]]},{"name":"MarkByDefinedValue","line":599,"kind":"procedure","access":"local","params":2,"steps":[[604,"call","InRange",3],[605,"call","MarkContact",5]]},{"name":"MarkByPercentageOfValue","line":611,"kind":"procedure","access":"local","params":2,"steps":[[638,"call","InRange",3],[639,"call","MarkContact",5]]},{"name":"MarkByPercentageOfContacts","line":645,"kind":"procedure","access":"local","params":2,"steps":[[674,"call","InRange",3],[675,"call","MarkContact",5]]},{"name":"InRange","line":682,"kind":"procedure","access":"local","params":3,"steps":[[694,"event","OnAfterInRange",0]]},{"name":"MarkContact","line":698,"kind":"procedure","access":"local","params":5,"steps":[[709,"event","OnBeforeMarkContact",1],[728,"event","OnMarkContactOnBeforeCheckContactType",1],[753,"write",5089,"Insert"]]},{"name":"UpdateRating","line":756,"kind":"procedure","params":1,"steps":[[797,"ext","table",5088,"FindQuestionLine",0],[819,"write",5101,"DeleteAll"],[820,"call","AnswersExists",3],[830,"call","GetContactNo",3],[832,"call","FindContactRatingValue",4],[834,"call","InsertContactValue",5],[837,"call","MarkContactByMethod",2]]},{"name":"FindContactRatingValue","line":848,"kind":"procedure","access":"local","params":4,"steps":[[863,"ext","table",5088,"FindQuestionLine",0],[870,"write",5088,"Insert"],[871,"call","AnswersExists",3]]},{"name":"MarkContactByMethod","line":890,"kind":"procedure","access":"local","params":2,"steps":[[905,"call","MarkByDefinedValue",2],[907,"call","MarkByPercentageOfValue",2],[909,"call","MarkByPercentageOfContacts",2]]}]}