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

  Рет қаралды 13,921

Erik Hougaard

Erik Hougaard

Күн бұрын

Пікірлер: 61
@eduschimu
@eduschimu 2 жыл бұрын
Erik, the explanation with Themepark and Rollercoaster is a very good metaphor. Thanks also for the in code explanation. Very clear.
@sarapngsinigang5129
@sarapngsinigang5129 Жыл бұрын
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.
@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?
@ghazalehghandchi1621
@ghazalehghandchi1621 Ай бұрын
Super, very good explanation and easy to use ! Thanks
@anada1124
@anada1124 2 жыл бұрын
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 :)
@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
@brettmazz2607
@brettmazz2607 11 ай бұрын
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?
@TheJolyonSpencer
@TheJolyonSpencer Жыл бұрын
Thank you for posting. Very good sample.
@StevenGER92
@StevenGER92 2 жыл бұрын
Thanks for this great explanation. Helps me a lot for more understanding
@klauskaan6320
@klauskaan6320 2 жыл бұрын
Best ELI5 for OAuth2 anywhere!
@JerMs2701
@JerMs2701 2 жыл бұрын
Thanks a lot for your explanation. It's pretty complicated but now it became more-less understandable.
@IvanPololi-e3x
@IvanPololi-e3x Жыл бұрын
Top video, very good explanation and easy to use code!
@rishichourey
@rishichourey 11 күн бұрын
Thanks a lot Erik🤗
@walterxfiles
@walterxfiles 11 ай бұрын
Thank you thank you very much, a good explanation, greetings from El Salvador, new follower my friend
@lamakhaled98
@lamakhaled98 5 ай бұрын
Thank you very useful explanation, how I can do that not on C# but with AL ?!
@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 Жыл бұрын
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?
@yukuocheng
@yukuocheng 2 жыл бұрын
Thank you for this video! It helps a lot!
@henrikfrederiksen5863
@henrikfrederiksen5863 2 жыл бұрын
So SUPER! I’ll go make my theme park now❤️
@mrdimba
@mrdimba 2 жыл бұрын
Your videos are very informative. Can you make a video for creating and updating data in business central using C#
@stevendesilets9796
@stevendesilets9796 2 жыл бұрын
Great explanation Thank you so much!
@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?
@m-cos
@m-cos 10 ай бұрын
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 10 ай бұрын
Yeah, "Entra" is now the thing :)
@ramonmurillo167
@ramonmurillo167 5 ай бұрын
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 5 ай бұрын
called Entra apps now
@ramonmurillo167
@ramonmurillo167 5 ай бұрын
@@Hougaard Thank you.
@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.
@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
@kennethquesada7692
@kennethquesada7692 2 жыл бұрын
Hi Erick thanks again, is there son Inser/Post example?? regards.
@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💪🏽🙌🏽
@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
@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?
@farheen1912
@farheen1912 2 жыл бұрын
what can be other reasons that giving bad request error
@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.
@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
@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: "*"
@ДенисГапонов-и3э
@ДенисГапонов-и3э 2 жыл бұрын
why c# and not AL?
@Hougaard
@Hougaard 2 жыл бұрын
Seems to be a better example...
ELI5 Create a new table in Business Central with AL
45:34
Erik Hougaard
Рет қаралды 4,9 М.
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 11 МЛН
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Business Central Under the Hood episode 3: How many users can Business Central handle in the cloud?
31:16
Microsoft Dynamics 365 Business Central
Рет қаралды 2,6 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 717 М.
20211221 - OAuth authentication with Business Central APIs
1:04:14
Areopa webinars
Рет қаралды 4,8 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,7 МЛН
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 139 М.
Use DotNet in AL - Even in the Business Central Cloud!
23:21
Erik Hougaard
Рет қаралды 10 М.
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 645 М.
What's new: Web services in Business Central
14:00
Microsoft Dynamics 365 Business Central
Рет қаралды 2 М.
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34