{"title":"Codeunit 1034 Job Planning Line - Calendar, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1034-job-planning-line-calendar/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":1034,"name":"Job Planning Line - Calendar","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1034-job-planning-line-calendar/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1034-job-planning-line-calendar/source/","path":"src/Layers/W1/BaseApp/Projects/Project/Planning/JobPlanningLineCalendar.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":{"table:1034":{"name":"Job Planning Line - Calendar","url":"https://jonas-paprotka.de/ref/table/1034-job-planning-line-calendar/"},"table:9500":{"name":"Email Item","url":"https://jonas-paprotka.de/ref/table/9500-email-item/"},"codeunit:1630":{"name":"Office Management","url":"https://jonas-paprotka.de/ref/codeunit/1630-office-management/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"},"codeunit:3960":{"name":"Regex","url":"https://jonas-paprotka.de/ref/codeunit/3960-regex/"},"codeunit:8893":{"name":"Email Scenario","url":"https://jonas-paprotka.de/ref/codeunit/8893-email-scenario/"}},"procs":[{"name":"OnRun","line":21,"kind":"trigger","steps":[[32,"call","SetPlanningLine",1],[33,"call","CreateAndSend",0]]},{"name":"SetPlanningLine","line":56,"kind":"procedure","params":1,"steps":[[59,"call","UpdateJob",0],[60,"call","UpdateJobTask",0],[61,"call","UpdateResource",0],[63,"event","OnAfterSetPlanningLine",0]]},{"name":"CreateAndSend","line":67,"kind":"procedure","params":0,"steps":[[75,"ext","table",1034,"ShouldSendCancellation",1],[76,"call","CreateCancellation",1],[77,"ext","table",9500,"Send",2],[79,"ext","table",1034,"ShouldSendRequest",1],[80,"call","CreateRequest",1],[81,"ext","codeunit",1630,"GetOfficeAddinTelemetryCategory",0],[82,"ext","table",9500,"Send",2]]},{"name":"CreateRequest","line":87,"kind":"procedure","params":1,"steps":[[94,"call","GetResourceEmail",1],[97,"ext","table",1034,"InsertOrUpdate",1],[98,"call","GenerateEmail",3]]},{"name":"CreateCancellation","line":104,"kind":"procedure","params":1,"steps":[[111,"ext","table",1034,"HasBeenSent",1],[114,"call","GetResourceEmail",1],[116,"call","GenerateEmail",3],[117,"write",1034,"Delete"]]},{"name":"GenerateEmail","line":122,"kind":"procedure","access":"local","params":3,"steps":[[129,"call","GenerateICS",1],[130,"ext","codeunit",4100,"CreateOutStream",2],[132,"ext","codeunit",4100,"CreateInStream",1],[134,"ext","table",9500,"Initialize",0],[136,"ext","table",9500,"AddAttachment",2]]},{"name":"GenerateICS","line":140,"kind":"procedure","access":"local","params":1,"steps":[[159,"call","GetDescription",0],[168,"call","GetOrganizer",0],[170,"call","GetStartDate",0],[171,"call","GetEndDate",0],[174,"call","GetHtmlDescription",1]]},{"name":"GetDescription","line":212,"kind":"procedure","access":"local","params":0,"steps":[[226,"call","GetContactPhone",0],[229,"call","GetAdditionalResources",0]]},{"name":"GetHtmlDescription","line":235,"kind":"procedure","access":"local","params":1,"steps":[[239,"ext","codeunit",3960,"Replace",3],[240,"ext","codeunit",3960,"Replace",3]]},{"name":"GetOrganizer","line":244,"kind":"procedure","access":"local","params":0,"steps":[[255,"ext","codeunit",8893,"GetEmailAccount",2]]},{"name":"GetStartDate","line":260,"kind":"procedure","access":"local","params":0,"steps":[[271,"event","OnAfterGetStartDate",0]]},{"name":"GetEndDate","line":274,"kind":"procedure","access":"local","params":0,"steps":[[290,"event","OnAfterGetEndDate",0]]},{"name":"OnDeletePlanningLine","line":330,"kind":"procedure","access":"local","params":2,"steps":[[336,"ext","table",1034,"HasBeenSent",1],[337,"call","SetPlanningLine",1],[338,"call","CreateAndSend",0]]}]}