ELI5 How to Access Business Central Web Services/API with Oauth

Ғылым және технология

Find more information at my blog www.hougaard.com or follow me on / ehougaard
Source code can be found here: github.com/hougaard/KZread-V...

Пікірлер: 59

  • @eduschimu
    @eduschimu Жыл бұрын

    Erik, the explanation with Themepark and Rollercoaster is a very good metaphor. Thanks also for the in code explanation. Very clear.

  • @sarapngsinigang5129
    @sarapngsinigang51298 ай бұрын

    One of the best explanations and how to videos regarding oauth setup and consumption. Thanks Erick!

  • @argusauge62
    @argusauge62 Жыл бұрын

    I *LOVE* the comparison with Tivoli, Rollercoaster! Finally I understood why we need such a hell lot of fancy keys. Good Job!

  • @winifix
    @winifix Жыл бұрын

    Thank you very much for translating Microsofts non-english instructions into plain simple examples that work!!!

  • @myvisionITmanagement
    @myvisionITmanagement Жыл бұрын

    Erik, excellent! I like comparisons like this! Now I understand.

  • @StevenGER92
    @StevenGER92 Жыл бұрын

    Thanks for this great explanation. Helps me a lot for more understanding

  • @JerMs2701
    @JerMs27012 жыл бұрын

    Thanks a lot for your explanation. It's pretty complicated but now it became more-less understandable.

  • @pain-free-it
    @pain-free-it Жыл бұрын

    I was a little bit uncertain about the rollercoaster and theme park analogy at first but by the end I was fully invested! I could taste the candy floss! Also cool vintage computers in the background, I had 2 of those and other vintage stuff not in that collection... ICL OPD?

  • @TheJolyonSpencer
    @TheJolyonSpencer Жыл бұрын

    Thank you for posting. Very good sample.

  • @stevendesilets9796
    @stevendesilets9796 Жыл бұрын

    Great explanation Thank you so much!

  • @user-sg6qb3vo6k
    @user-sg6qb3vo6k Жыл бұрын

    Top video, very good explanation and easy to use code!

  • @yukuocheng
    @yukuocheng Жыл бұрын

    Thank you for this video! It helps a lot!

  • @walterxfiles
    @walterxfiles6 ай бұрын

    Thank you thank you very much, a good explanation, greetings from El Salvador, new follower my friend

  • @mrdimba
    @mrdimba Жыл бұрын

    Your videos are very informative. Can you make a video for creating and updating data in business central using C#

  • @kunalnba
    @kunalnba Жыл бұрын

    Wow! what a nightmare dude! This is really helpful; hope performance is good having to do all this stuff! We have a few heavy integrations we need to migrate to BC SaaS

  • @klauskaan6320
    @klauskaan63202 жыл бұрын

    Best ELI5 for OAuth2 anywhere!

  • @henrikfrederiksen5863
    @henrikfrederiksen5863 Жыл бұрын

    So SUPER! I’ll go make my theme park now❤️

  • @brettmazz2607
    @brettmazz26077 ай бұрын

    This video was amazing really helped to get my feet wet. Do you have any videos where you modify fa with a web service using Oauth?

  • @pierpaolopirovano
    @pierpaolopirovano Жыл бұрын

    Thanks a lot for your tutorial! You saved my application to stop working on 10-01 (I missed the right scope), but.... I have all working (in php) but... without add the app id in business central Azure Active Directory... why?

  • @suzanachristie138
    @suzanachristie138 Жыл бұрын

    Hi, it is a great post. I would just like to know, how I can receive the resault without datameta or save it as csv file. Any suggestions and help would be appriciated.

  • @lamakhaled1904
    @lamakhaled1904Ай бұрын

    Thank you very useful explanation, how I can do that not on C# but with AL ?!

  • @anada1124
    @anada11242 жыл бұрын

    Great tutorial! Perfect timing soon after BC20 no longer accepts basic authentication.

  • @Hougaard

    @Hougaard

    2 жыл бұрын

    Thanks, and yes, I have created several OAuth videos to help people transition from Basic to OAuth authentication.

  • @anada1124

    @anada1124

    2 жыл бұрын

    @@Hougaard Using a theme park to explain OAuth2 is a very good idea. It might be even better if you also refer to Disneyland :)

  • @kennethquesada7692
    @kennethquesada7692 Жыл бұрын

    Hi Erick thanks again, is there son Inser/Post example?? regards.

  • @user-vj9rz8tp8r
    @user-vj9rz8tp8r8 ай бұрын

    Hey Erik, Thanks for the great video! Is it possible to create the Application User in Business central with an API call and not manually like you did it in the video?

  • @Hougaard

    @Hougaard

    8 ай бұрын

    But then you'll need permission to perform that API call, isn't that an endless circle now?

  • @user-vj9rz8tp8r

    @user-vj9rz8tp8r

    8 ай бұрын

    @@Hougaard The idea being: Log in as an admin user trough azure to business central (only once to perform the add) -> add the application user in business central trough an API call so later that application user can be used to query the data in business central. I could not find any API documentation in the Microsoft documentation for adding an Application User like the one you create in the video. Could you also point me to that?

  • @soulfulIEM
    @soulfulIEM2 жыл бұрын

    Erik, thanks a lot for ELI5 explanation going into OAuth 2.0. I'm wondering how and if it's possible to change Bearer's token lifetime.

  • @Hougaard

    @Hougaard

    2 жыл бұрын

    No.

  • @mohdanas2846
    @mohdanas2846 Жыл бұрын

    I am trying same but keep getting bad request for custom pages and its working for standard page.. is i am missing something i need help please

  • @farheen1912
    @farheen19122 жыл бұрын

    what can be other reasons that giving bad request error

  • @realeques
    @realeques2 жыл бұрын

    very interesting.

  • @ramonmurillo167
    @ramonmurillo16716 күн бұрын

    Thank you very much for your video. Has Microsoft changed the location of Business Central Dynamics 365 for the Azure Active Directory page? I cannot get the page to load anymore

  • @Hougaard

    @Hougaard

    15 күн бұрын

    called Entra apps now

  • @ramonmurillo167

    @ramonmurillo167

    15 күн бұрын

    @@Hougaard Thank you.

  • @m-cos
    @m-cos5 ай бұрын

    Excellent explanation as always, thanks again Erik! Thankfully even though Azure Active Directory Applications appears to have been renamed to Microsoft Entra Applications, typing 'aad' into the search like you did in the video still pulls it up. I tried 'azure' first and didn't find it.

  • @Hougaard

    @Hougaard

    5 ай бұрын

    Yeah, "Entra" is now the thing :)

  • @ivanzaliscky3143
    @ivanzaliscky3143 Жыл бұрын

    Hi Erik, please suggest how to form URL (in your code it named URL2) From which parts it consists and where to get these parameters ?

  • @Hougaard

    @Hougaard

    Жыл бұрын

    learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/endpoints-apis-for-dynamics

  • @ivanzaliscky3143

    @ivanzaliscky3143

    Жыл бұрын

    @@Hougaard Thank you for the response

  • @mohammadnouritani
    @mohammadnouritani2 жыл бұрын

    It is super helpful , and if you know how to connect to business central on oauth with react or javascript that would be helpful with token login from Microsoft generation

  • @Hougaard

    @Hougaard

    2 жыл бұрын

    You should be able to take the c# example and just translate that to regular javascript

  • @aymanmakhoukhi3591

    @aymanmakhoukhi3591

    2 жыл бұрын

    @@Hougaard Thank you so much for this tutorial, it's highly appreciated. I would love to ask you how can I use AL codeunit to consume a third party rest api and generate access token to be used on the bearer

  • @marcograsselli3019
    @marcograsselli3019 Жыл бұрын

    With this API, I'm able to create a Get Request? We want to download some data from BC, without using dataverse, is it possible?

  • @Hougaard

    @Hougaard

    Жыл бұрын

    Yes, what platform do you use?

  • @youneselhamss2908
    @youneselhamss29089 ай бұрын

    Fed video, kan man gøre det uden at kode? Hvis ikke, hvor er det så du koder og hvordan connecter ide'et til det hele? Kan jeg gøre det i vscode fx?

  • @Hougaard

    @Hougaard

    9 ай бұрын

    Hvor vil du bruge APIer fra?

  • @youneselhamss2908

    @youneselhamss2908

    9 ай бұрын

    @@Hougaard jeg ville bruge postman og jeg har fundet ud af det💪🏽🙌🏽

  • @farheen1912
    @farheen19122 жыл бұрын

    Sir I am facing a problem. I need to call 3 API on same page . I am successfully able to read first API then getting Bad request for second and third API. I tried creating new token for each API but still same error.

  • @Hougaard

    @Hougaard

    2 жыл бұрын

    Then the bad request is probably your content or query string

  • @farheen1912

    @farheen1912

    2 жыл бұрын

    @@Hougaard I found the issue. its that I was missing SUPER (Data) Permission. For Standard Pages it was working fine without SUPER (Data), but for custom pages it is required.

  • @wintonwang168
    @wintonwang168 Жыл бұрын

    how can you update item properties ( Ex, update company customer's display name or phone number )

  • @Hougaard

    @Hougaard

    Жыл бұрын

    From an API, muse the PATCH http method.

  • @wintonwang168

    @wintonwang168

    Жыл бұрын

    @@Hougaard try to update purchaseInvoices, using client.PatchAsync(URL2, Content), the error message return BadRequest or MethodNotAllowed .

  • @wintonwang168

    @wintonwang168

    Жыл бұрын

    { "error": { "code": "BadRequest_InvalidToken", "message": "Could not validate the client concurrency token required by the service. Please provide a valid token in the client request. CorrelationId: 0ad47bd7-12d7-48ac-baba-7b1b716e27b6." } }

  • @wintonwang168

    @wintonwang168

    Жыл бұрын

    In order to update field, tip Headers key: "If-Match" Value: "*"

  • @user-gg3yh4xb6v
    @user-gg3yh4xb6v Жыл бұрын

    why c# and not AL?

  • @Hougaard

    @Hougaard

    Жыл бұрын

    Seems to be a better example...

Келесі