{"title":"Codeunit 30202 Shpfy Initial Import, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30202-shpfy-initial-import/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":30202,"name":"Shpfy Initial Import","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30202-shpfy-initial-import/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30202-shpfy-initial-import/source/","path":"src/Apps/W1/Shopify/App/src/Base/Codeunits/ShpfyInitialImport.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:30137":{"name":"Shpfy Initial Import Line","url":"https://jonas-paprotka.de/ref/table/30137-shpfy-initial-import-line/"},"page:674":{"name":"Job Queue Log Entries","url":"https://jonas-paprotka.de/ref/page/674-job-queue-log-entries/"},"codeunit:30101":{"name":"Shpfy Background Syncs","url":"https://jonas-paprotka.de/ref/codeunit/30101-shpfy-background-syncs/"}},"procs":[{"name":"Generate","line":16,"kind":"procedure","params":1,"steps":[[23,"call","GetEntityReportDict",1],[24,"call","GetEntityDependencyFilterDict",1],[25,"call","GetEntityPageDict",1],[28,"call","InsertLine",5]]},{"name":"GenerateSelected","line":31,"kind":"procedure","params":5,"steps":[[36,"call","GetEntityDependencyFilterDict",1],[37,"call","GetEntityPageDict",1],[40,"call","InsertLine",5],[42,"call","InsertLine",5],[44,"call","InsertLine",5]]},{"name":"InsertLine","line":47,"kind":"procedure","access":"local","params":5,"steps":[[54,"validate",30137,"Dependency Filter"],[55,"validate",30137,"Shop Code"],[56,"validate",30137,"Page ID"],[57,"validate",30137,"Demo Import"],[58,"write",30137,"Insert",1],[61,"validate",30137,"Dependency Filter"],[62,"validate",30137,"Shop Code"],[63,"validate",30137,"Page ID"],[64,"validate",30137,"Demo Import"],[65,"write",30137,"Modify",1]]},{"name":"ShowJobQueueLogEntry","line":95,"kind":"procedure","params":1,"steps":[[100,"run","page",674]]},{"name":"Start","line":117,"kind":"procedure","params":0,"steps":[[123,"call","FindLinesThatCanBeStarted",1],[125,"call","EnqueueSyncJob",3],[127,"validate",30137,"Job Queue Entry ID"],[128,"write",30137,"Modify",1]]},{"name":"EnqueueSyncJob","line":133,"kind":"procedure","access":"local","params":3,"steps":[[140,"ext","codeunit",30101,"ProductsBackgroundSync",2],[140,"call","GetDemoCompanyInitialImportNumber",0],[142,"ext","codeunit",30101,"ProductsBackgroundSync",2],[144,"ext","codeunit",30101,"CustomerBackgroundSync",1],[146,"ext","codeunit",30101,"ProductImagesBackgroundSync",1]]},{"name":"FindLinesThatCanBeStarted","line":150,"kind":"procedure","access":"local","params":1,"steps":[[155,"write",30137,"DeleteAll"],[160,"call","AreAllParentalJobsFinished",1],[162,"write",30137,"Insert"]]},{"name":"OnBeforeModifyJobQueueEntry","line":181,"kind":"procedure","params":1,"steps":[[186,"call","GetEntityNameFromJobQueueEntry",1],[192,"ext","table",30137,"SetJobQueueEntryStatus",1],[193,"write",30137,"Modify"],[195,"call","IsJobQueueEntryProcessed",1],[196,"call","Start",0]]},{"name":"GetEntityNameFromJobQueueEntry","line":200,"kind":"procedure","access":"local","params":1,"steps":[[208,"call","GetEntityReportDict",1]]}]}