Convert Postman “get new authorization token” to curl command

Hi!

I’m trying to generate/export CURL code from Postman. This works very well with single GET request with basic authentication. I can build the command in Postman (nice UI) and generate/export code in many formats including CURL.

Now with Dynamics Business Central software, I need get access token first (oAuth 2.0) and then get the actual data.

All works fine in Postman, but…

  1. Get oAuth token → How to get/export CURL code for this?
  2. Get actual data → This works fine, I can get CURL code snippet

Thanks!

@ariintelligents I wasn’t able to reproduce the following:

  1. Get oAuth token → How to get/export CURL code for this?

However I did find this article that I think would be helpful and has a sample cURL request for Dynamics 365.

Thanks, I’ll give it a try.

I don’t want to close this thread yet, maybe there is a more elegant way? I mean without authentication request conversion code snippet, it is kind of half-measure only in Postman :slight_smile: