{"title":"Codeunit 2004 Machine Learning KeyVaultMgmt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/2004-machine-learning-keyvaultmgmt/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":2004,"name":"Machine Learning KeyVaultMgmt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/2004-machine-learning-keyvaultmgmt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/2004-machine-learning-keyvaultmgmt/source/","path":"src/Layers/W1/BaseApp/System/AI/MachineLearningKeyVaultMgmt.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:2200":{"name":"Azure Key Vault","url":"https://jonas-paprotka.de/ref/codeunit/2200-azure-key-vault/"},"codeunit:501":{"name":"OAuth2","url":"https://jonas-paprotka.de/ref/codeunit/501-oauth2/"}},"procs":[{"name":"GetMachineLearningCredentials","line":30,"kind":"procedure","params":5,"steps":[[43,"ext","codeunit",2200,"GetAzureKeyVaultSecret",2],[48,"ext","codeunit",2200,"GetAzureKeyVaultSecret",2],[55,"call","GetAsText",3],[59,"call","GetAsText",3],[63,"call","GetLimitTypeOptionFromText",1],[65,"call","GetAsArray",3],[68,"call","GetAsArray",3],[75,"call","GetAsSecretText",3],[76,"call","GetAsText",3]]},{"name":"GetMachineLearningCredentials","line":81,"kind":"procedure","params":4,"steps":[[88,"call","GetAPIUrlAndLimit",4],[91,"call","GetAppId",2],[94,"call","GetCertificate",2],[97,"call","GetAuthUrl",2],[101,"ext","codeunit",501,"AcquireTokensWithCertificate",7]]},{"name":"GetAPIUrlAndLimit","line":115,"kind":"procedure","access":"local","params":4,"steps":[[125,"ext","codeunit",2200,"GetAzureKeyVaultSecret",2],[132,"call","GetAsText",3],[136,"call","GetAsText",3],[140,"call","GetLimitTypeOptionFromText",1],[142,"call","GetAsArray",3],[149,"call","GetAsText",3]]},{"name":"GetAppId","line":156,"kind":"procedure","access":"local","params":2,"steps":[[160,"ext","codeunit",2200,"GetAzureKeyVaultSecret",2]]},{"name":"GetAuthUrl","line":169,"kind":"procedure","access":"local","params":2,"steps":[[173,"ext","codeunit",2200,"GetAzureKeyVaultSecret",2]]},{"name":"GetCertificate","line":182,"kind":"procedure","access":"local","params":2,"steps":[[187,"ext","codeunit",2200,"GetAzureKeyVaultSecret",2],[192,"ext","codeunit",2200,"GetAzureKeyVaultCertificate",2]]},{"name":"GetAsSecretText","line":211,"kind":"procedure","access":"local","params":3,"steps":[[215,"call","GetAsText",3]]}]}