{"title":"Codeunit 1652 Add-in Manifest Management, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1652-add-in-manifest-management/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":1652,"name":"Add-in Manifest Management","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1652-add-in-manifest-management/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1652-add-in-manifest-management/source/","path":"src/Layers/W1/BaseApp/System/Exchange/AddinManifestManagement.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:1563":{"name":"Privacy Notice","url":"https://jonas-paprotka.de/ref/codeunit/1563-privacy-notice/"},"codeunit:1357":{"name":"Privacy Notice Registrations","url":"https://jonas-paprotka.de/ref/codeunit/1357-privacy-notice-registrations/"},"codeunit:419":{"name":"File Management","url":"https://jonas-paprotka.de/ref/codeunit/419-file-management/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"},"table:1610":{"name":"Office Add-in","url":"https://jonas-paprotka.de/ref/table/1610-office-add-in/"},"codeunit:457":{"name":"Environment Information","url":"https://jonas-paprotka.de/ref/codeunit/457-environment-information/"},"codeunit:425":{"name":"Data Compression","url":"https://jonas-paprotka.de/ref/codeunit/425-data-compression/"},"codeunit:6224":{"name":"XML DOM Management","url":"https://jonas-paprotka.de/ref/codeunit/6224-xml-dom-management/"}},"procs":[{"name":"DownloadManifestToClient","line":35,"kind":"procedure","params":2,"steps":[[42,"ext","codeunit",1563,"ConfirmPrivacyNoticeApproval",1],[42,"ext","codeunit",1357,"GetExchangePrivacyNoticeId",0],[45,"call","SaveManifestToServer",1],[48,"ext","codeunit",419,"CopyServerFile",3],[52,"ext","codeunit",419,"DownloadHandler",5]]},{"name":"SaveManifestToServer","line":56,"kind":"procedure","params":1,"steps":[[64,"call","GenerateManifest",2],[65,"ext","codeunit",4100,"CreateOutStream",2],[67,"ext","codeunit",419,"ServerTempFileName",0],[68,"ext","codeunit",419,"BLOBExportToServerFile",2]]},{"name":"UploadDefaultManifest","line":73,"kind":"procedure","params":2,"steps":[[80,"ext","codeunit",419,"BLOBImportFromServerFile",2],[81,"ext","codeunit",4100,"CreateInStream",2],[83,"call","UploadDefaultManifestText",2]]},{"name":"UploadDefaultManifestText","line":87,"kind":"procedure","params":2,"steps":[[90,"call","GetAppID",1],[94,"call","GetAppName",1],[96,"call","GetAppDescription",1],[97,"call","GetAppVersion",1],[99,"ext","table",1610,"SetDefaultManifestText",1]]},{"name":"CreateAddin","line":103,"kind":"procedure","params":6,"steps":[[110,"call","UploadDefaultManifestText",2],[111,"write",1610,"Insert",1]]},{"name":"GenerateManifest","line":115,"kind":"procedure","params":2,"steps":[[118,"call","VerifyHttps",0],[120,"event","OnGenerateManifest",0],[122,"ext","table",1610,"GetDefaultManifestText",0],[123,"call","SetCommonManifestItems",1]]},{"name":"SetCommonManifestItems","line":128,"kind":"procedure","params":1,"steps":[[133,"call","SetNodeValue",4],[134,"call","SetNodeValue",4],[135,"call","SetNodeValue",4],[136,"call","SetNodeValue",4],[136,"call","GetAppName",1],[137,"call","SetNodeValue",4],[137,"call","XMLEncode",1],[137,"call","GetAppDescription",1],[138,"ext","codeunit",457,"IsSaaS",0],[139,"call","SetNodeValue",4],[139,"call","GetImageUrl",1],[140,"call","SetNodeValue",4],[140,"call","GetImageUrl",1],[142,"call","SetNodeValue",4],[142,"call","GetImageUrl",0],[143,"call","SetNodeValue",4],[143,"call","GetImageUrl",0]]},{"name":"DownloadMultipleManifestsToClient","line":148,"kind":"procedure","params":1,"steps":[[160,"call","SaveManifestToServer",1],[161,"ext","codeunit",419,"DownloadHandler",5],[166,"ext","codeunit",425,"CreateZipArchive",0],[168,"call","GenerateManifest",2],[171,"ext","codeunit",425,"AddEntry",2],[174,"ext","codeunit",425,"SaveZipArchive",1],[175,"ext","codeunit",425,"CloseZipArchive",0],[176,"ext","codeunit",419,"DownloadFromStreamHandler",5]]},{"name":"GetManifestNamespaceManager","line":180,"kind":"procedure","access":"local","params":2,"steps":[[184,"ext","codeunit",6224,"AddNamespaces",2]]},{"name":"SetNodeValue","line":191,"kind":"procedure","params":4,"steps":[[198,"ext","codeunit",6224,"LoadXMLNodeFromText",2],[199,"call","GetManifestNamespaceManager",2],[204,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[210,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[216,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[222,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[228,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[234,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[240,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[246,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[255,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[264,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[273,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[283,"call","ReadXMLDocToText",2]]},{"name":"SetNodeResource","line":287,"kind":"procedure","params":4,"steps":[[295,"ext","codeunit",6224,"LoadXMLNodeFromText",2],[296,"call","GetManifestNamespaceManager",2],[298,"call","SetNodeLocationValue",7],[303,"call","SetNodeLocationValue",7],[309,"call","ReadXMLDocToText",2]]},{"name":"ReadXMLDocToText","line":312,"kind":"procedure","access":"local","params":2,"steps":[[319,"ext","codeunit",4100,"CreateOutStream",2],[320,"ext","codeunit",6224,"SaveXMLDocumentToOutStream",2],[321,"ext","codeunit",4100,"CreateInStream",2]]},{"name":"RemoveAddInTriggersFromManifest","line":326,"kind":"procedure","params":1,"steps":[[334,"ext","codeunit",6224,"LoadXMLNodeFromText",2],[335,"call","GetManifestNamespaceManager",2],[338,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[346,"call","ReadXMLDocToText",2]]},{"name":"SetSourceLocationNodes","line":350,"kind":"procedure","params":3,"steps":[[352,"call","SetNodeValue",4],[353,"call","SetNodeValue",4],[354,"call","SetNodeValue",4]]},{"name":"AddRegExRuleNode","line":378,"kind":"procedure","params":3,"steps":[[388,"ext","codeunit",6224,"LoadXMLNodeFromText",2],[389,"call","GetManifestNamespaceManager",2],[391,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[397,"ext","codeunit",6224,"AddAttributeWithPrefix",5],[399,"ext","codeunit",6224,"AddAttribute",3],[400,"ext","codeunit",6224,"AddAttribute",3],[401,"ext","codeunit",6224,"AddAttribute",3],[402,"ext","codeunit",6224,"AddAttribute",3],[407,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4],[412,"ext","codeunit",6224,"AddAttributeWithPrefix",5],[414,"ext","codeunit",6224,"AddAttribute",3],[415,"ext","codeunit",6224,"AddAttribute",3],[416,"ext","codeunit",6224,"AddAttribute",3],[417,"ext","codeunit",6224,"AddAttribute",3],[420,"call","ReadXMLDocToText",2]]},{"name":"GetAppID","line":435,"kind":"procedure","params":1,"steps":[[439,"call","GetXmlNodes",3]]},{"name":"GetAppName","line":444,"kind":"procedure","params":1,"steps":[[448,"call","GetXmlNodes",3]]},{"name":"GetAppDescription","line":453,"kind":"procedure","params":1,"steps":[[457,"call","GetXmlNodes",3]]},{"name":"GetAppVersion","line":462,"kind":"procedure","params":1,"steps":[[466,"call","GetXmlNodes",3]]},{"name":"GetXmlNodes","line":470,"kind":"procedure","access":"local","params":3,"steps":[[476,"ext","codeunit",6224,"LoadXMLNodeFromText",2],[477,"call","GetManifestNamespaceManager",2],[479,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4]]},{"name":"VerifyHttps","line":483,"kind":"procedure","access":"local","params":0,"steps":[[487,"call","ConstructURL",3]]},{"name":"SetNodeLocationValue","line":492,"kind":"procedure","access":"local","params":7,"steps":[[500,"call","GetImageUrl",1],[512,"ext","codeunit",6224,"FindNodesWithNamespaceManager",4]]},{"name":"GetAddinByHostType","line":531,"kind":"procedure","params":2,"steps":[[535,"event","GetManifestCodeunit",0],[536,"event","GetAddin",0]]}]}