{"title":"Codeunit 2351 Rest Client Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/2351-rest-client-impl/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":2351,"name":"Rest Client Impl.","app":"System Application","url":"https://jonas-paprotka.de/ref/codeunit/2351-rest-client-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/2351-rest-client-impl/source/","path":"src/System Application/App/Rest Client/src/RestClientImpl.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:2351":{"name":"Rest Client Impl.","url":"https://jonas-paprotka.de/ref/codeunit/2351-rest-client-impl/"},"codeunit:2356":{"name":"Http Response Message","url":"https://jonas-paprotka.de/ref/codeunit/2356-http-response-message/"},"codeunit:2354":{"name":"Http Content","url":"https://jonas-paprotka.de/ref/codeunit/2354-http-content/"},"codeunit:2352":{"name":"Http Request Message","url":"https://jonas-paprotka.de/ref/codeunit/2352-http-request-message/"},"codeunit:2362":{"name":"Rest Client Exception Builder","url":"https://jonas-paprotka.de/ref/codeunit/2362-rest-client-exception-builder/"}},"procs":[{"name":"Create","line":28,"kind":"procedure","params":0,"steps":[[30,"ext","codeunit",2351,"Create",2]]},{"name":"Create","line":33,"kind":"procedure","params":1,"steps":[[35,"ext","codeunit",2351,"Create",2]]},{"name":"Create","line":38,"kind":"procedure","params":1,"steps":[[40,"ext","codeunit",2351,"Create",2]]},{"name":"Create","line":43,"kind":"procedure","params":2,"steps":[[45,"call","Initialize",2]]},{"name":"Initialize","line":66,"kind":"procedure","params":2,"steps":[[74,"call","SetDefaultUserAgentHeader",0]]},{"name":"SetDefaultRequestHeader","line":77,"kind":"procedure","params":2,"steps":[[79,"call","CheckInitialized",0]]},{"name":"SetDefaultRequestHeader","line":85,"kind":"procedure","params":2,"steps":[[87,"call","CheckInitialized",0]]},{"name":"SetBaseAddress","line":93,"kind":"procedure","params":1,"steps":[[95,"call","CheckInitialized",0]]},{"name":"GetBaseAddress","line":99,"kind":"procedure","params":0,"steps":[[101,"call","CheckInitialized",0]]},{"name":"SetTimeOut","line":105,"kind":"procedure","params":1,"steps":[[107,"call","CheckInitialized",0]]},{"name":"GetTimeOut","line":113,"kind":"procedure","params":0,"steps":[[115,"call","CheckInitialized",0]]},{"name":"AddCertificate","line":119,"kind":"procedure","params":1,"steps":[[121,"call","CheckInitialized",0]]},{"name":"AddCertificate","line":125,"kind":"procedure","params":2,"steps":[[127,"call","CheckInitialized",0]]},{"name":"SetUseServerCertificateValidation","line":131,"kind":"procedure","params":1,"steps":[[133,"call","CheckInitialized",0]]},{"name":"SetAuthorizationHeader","line":137,"kind":"procedure","params":1,"steps":[[139,"call","SetDefaultRequestHeader",2]]},{"name":"SetUserAgentHeader","line":142,"kind":"procedure","params":1,"steps":[[144,"call","SetDefaultRequestHeader",2]]},{"name":"SetUseResponseCookies","line":147,"kind":"procedure","params":1,"steps":[[149,"call","CheckInitialized",0]]},{"name":"GetAsJson","line":155,"kind":"procedure","params":1,"steps":[[159,"call","Send",2],[164,"ext","codeunit",2356,"GetIsSuccessStatusCode",0],[165,"ext","codeunit",2356,"GetException",0],[171,"ext","codeunit",2356,"GetContent",0]]},{"name":"PostAsJson","line":174,"kind":"procedure","params":2,"steps":[[179,"call","Send",3],[179,"ext","codeunit",2354,"Create",1],[184,"ext","codeunit",2356,"GetIsSuccessStatusCode",0],[185,"ext","codeunit",2356,"GetException",0],[191,"ext","codeunit",2356,"GetContent",0]]},{"name":"PatchAsJson","line":194,"kind":"procedure","params":2,"steps":[[199,"call","Send",3],[199,"ext","codeunit",2354,"Create",1],[204,"ext","codeunit",2356,"GetIsSuccessStatusCode",0],[205,"ext","codeunit",2356,"GetException",0],[211,"ext","codeunit",2356,"GetContent",0]]},{"name":"PutAsJson","line":214,"kind":"procedure","params":2,"steps":[[219,"call","Send",3],[219,"ext","codeunit",2354,"Create",1],[224,"ext","codeunit",2356,"GetIsSuccessStatusCode",0],[225,"ext","codeunit",2356,"GetException",0],[231,"ext","codeunit",2356,"GetContent",0]]},{"name":"Send","line":243,"kind":"procedure","params":3,"steps":[[247,"call","CreateHttpRequestMessage",3]]},{"name":"Send","line":251,"kind":"procedure","params":1,"steps":[[253,"call","CheckInitialized",0],[255,"call","SendRequest",2],[256,"ext","codeunit",2356,"GetException",0]]},{"name":"CheckInitialized","line":262,"kind":"procedure","access":"local","params":0,"steps":[[265,"call","Initialize",0]]},{"name":"SetDefaultUserAgentHeader","line":268,"kind":"procedure","access":"local","params":0,"steps":[[276,"call","SetUserAgentHeader",1]]},{"name":"CreateHttpRequestMessage","line":279,"kind":"procedure","access":"local","params":3,"steps":[[282,"call","GetBaseAddress",0],[283,"ext","codeunit",2352,"Create",3]]},{"name":"SendRequest","line":286,"kind":"procedure","access":"local","params":2,"steps":[[291,"call","Authorize",1],[294,"ext","codeunit",2356,"GetIsBlockedByEnvironment",0],[295,"ext","codeunit",2356,"SetException",1],[296,"ext","codeunit",2362,"CreateException",2],[297,"ext","codeunit",2352,"GetRequestUri",0],[299,"ext","codeunit",2356,"SetException",1],[300,"ext","codeunit",2362,"CreateException",2],[301,"ext","codeunit",2352,"GetRequestUri",0],[305,"ext","codeunit",2356,"GetIsSuccessStatusCode",0],[306,"ext","codeunit",2356,"SetException",1],[307,"ext","codeunit",2362,"CreateException",2],[308,"ext","codeunit",2352,"GetRequestUri",0],[308,"ext","codeunit",2356,"GetHttpStatusCode",0],[308,"ext","codeunit",2356,"GetReasonPhrase",0]]},{"name":"Authorize","line":313,"kind":"procedure","access":"local","params":1,"steps":[[322,"ext","codeunit",2352,"SetHeader",2]]}]}