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

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 61

  • @sarapngsinigang5129
    @sarapngsinigang5129 ปีที่แล้ว

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

  • @eduschimu
    @eduschimu 2 ปีที่แล้ว +1

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

  • @argusauge62
    @argusauge62 2 ปีที่แล้ว

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

  • @winifix
    @winifix 2 ปีที่แล้ว

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

  • @myvisionITmanagement
    @myvisionITmanagement 2 ปีที่แล้ว

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

  • @ghazalehghandchi1621
    @ghazalehghandchi1621 4 หลายเดือนก่อน

    Super, very good explanation and easy to use ! Thanks

  • @rishichourey
    @rishichourey 3 หลายเดือนก่อน

    Thanks a lot Erik🤗

  • @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?

  • @StevenGER92
    @StevenGER92 2 ปีที่แล้ว

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

  • @walterxfiles
    @walterxfiles ปีที่แล้ว

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

  • @TheJolyonSpencer
    @TheJolyonSpencer 2 ปีที่แล้ว

    Thank you for posting. Very good sample.

  • @anada1124
    @anada1124 2 ปีที่แล้ว +1

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

    • @Hougaard
      @Hougaard  2 ปีที่แล้ว +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 :)

  • @IvanPololi-e3x
    @IvanPololi-e3x ปีที่แล้ว

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

  • @lamakhaled98
    @lamakhaled98 8 หลายเดือนก่อน

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

  • @yukuocheng
    @yukuocheng 2 ปีที่แล้ว

    Thank you for this video! It helps a lot!

  • @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

  • @stevendesilets9796
    @stevendesilets9796 2 ปีที่แล้ว

    Great explanation Thank you so much!

  • @JerMs2701
    @JerMs2701 2 ปีที่แล้ว

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

  • @MladenMakreev
    @MladenMakreev ปีที่แล้ว

    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  ปีที่แล้ว +1

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

    • @MladenMakreev
      @MladenMakreev ปีที่แล้ว

      @@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?

  • @kennethquesada7692
    @kennethquesada7692 2 ปีที่แล้ว

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

  • @klauskaan6320
    @klauskaan6320 2 ปีที่แล้ว

    Best ELI5 for OAuth2 anywhere!

  • @henrikfrederiksen5863
    @henrikfrederiksen5863 2 ปีที่แล้ว

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

  • @ramonmurillo167
    @ramonmurillo167 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน +1

      called Entra apps now

    • @ramonmurillo167
      @ramonmurillo167 7 หลายเดือนก่อน

      @@Hougaard Thank you.

  • @brettmazz2607
    @brettmazz2607 ปีที่แล้ว

    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 2 ปีที่แล้ว

    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?

  • @youneselhamss2908
    @youneselhamss2908 ปีที่แล้ว

    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  ปีที่แล้ว

      Hvor vil du bruge APIer fra?

    • @youneselhamss2908
      @youneselhamss2908 ปีที่แล้ว

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

  • @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

  • @suzanachristie138
    @suzanachristie138 2 ปีที่แล้ว

    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.

  • @soulfulIEM
    @soulfulIEM 2 ปีที่แล้ว

    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.

  • @m-cos
    @m-cos ปีที่แล้ว

    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  ปีที่แล้ว +1

      Yeah, "Entra" is now the thing :)

  • @farheen1912
    @farheen1912 2 ปีที่แล้ว

    what can be other reasons that giving bad request error

  • @mrdimba
    @mrdimba 2 ปีที่แล้ว

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

  • @ivanzaliscky3143
    @ivanzaliscky3143 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

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

    • @ivanzaliscky3143
      @ivanzaliscky3143 2 ปีที่แล้ว

      @@Hougaard Thank you for the response

  • @farheen1912
    @farheen1912 2 ปีที่แล้ว

    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.

  • @Gras8_95
    @Gras8_95 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      Yes, what platform do you use?

  • @wintonwang168
    @wintonwang168 2 ปีที่แล้ว

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

    • @Hougaard
      @Hougaard  2 ปีที่แล้ว

      From an API, muse the PATCH http method.

    • @wintonwang168
      @wintonwang168 2 ปีที่แล้ว

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

    • @wintonwang168
      @wintonwang168 2 ปีที่แล้ว

      {
      "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 2 ปีที่แล้ว

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

  • @realeques
    @realeques 2 ปีที่แล้ว

    very interesting.

  • @mohammadnouritani
    @mohammadnouritani 2 ปีที่แล้ว

    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

  • @ДенисГапонов-и3э
    @ДенисГапонов-и3э 2 ปีที่แล้ว

    why c# and not AL?

    • @Hougaard
      @Hougaard  2 ปีที่แล้ว +1

      Seems to be a better example...