Set up a Postman environment
You can use Postman to connect to your Dynamics 365 for Customer Engagement (on-premises) instance and to compose Web API requests, send them, and view responses. Managing authentication challenges many people. This topic describes how to configure a Postman environment to work for both online and on-premises environments.
You can use a Postman environment to save a set of variables that you use to connect. These values can be accessed within Postman by using this syntax: {{name}}
. For more information about Postman variables, see Postman Documentation > Variables.
Note
The documentation that is applicable to Dynamics 365 Customer Engagement app (online) users is now available in the Power Apps documentation at: Set up a Postman environment.
Prerequisites
- Have an online or on-premises environment you can connect to.
- Download and install the Postman desktop application.
Select the connection option that works for your environment:
Connect with an online environment
To connect with an online environment, see the information provided in this Power Apps Dataverse topic: Connect with an online environment.
Connect with an on-premises environment
- Launch the Postman desktop application.
- Select the Environment Options gear icon in the top-right corner.
- In the Manage Environments dialog box, select the Add button to add a new environment.
- In the dialog box that opens, add a name for the environment. Then copy the following key-value pairs into the editing space.
Variable Name | Value |
---|---|
url |
https://yourservername/yourorgname |
version |
9.1 |
webapiurl |
{{url}}/api/data/v{{version}}/ |
- Replace the instance URL placeholder value with your Dynamics 365 Customer Engagement (on-premises) instance URL, and select Add to save the environment.
- Close the Manage environments dialog box.
Set credentials
- On the Authorization tab, select NTLM Authentication [Beta].
- Set the following values in the form:
• Username. Type the alias only; do not include the domain.
• Password. You have the option to show the password.
• Domain. You must set this if you are accessing the account from a different domain, although you can set it to ~ so that the default domain of the server is used.
Your authentication might look like this if you are logging in as an administrator.
Test your connection
Create a new Web API request to test the connection with your Dynamics 365 Customer Engagement (on-premises) instance. Use the WhoAmI function:
- Select
GET
as the HTTP method and add{{webapiurl}}WhoAmI
in the editing space. - Select Send to send this request.
- If your request is successful, you see the data from the WhoAmIResponse ComplexType that is returned by the WhoAmI Function.
See also
Use the Dynamics 365 Customer Engagement Web API
Walkthrough: Register a Dynamics 365 Customer Engagement app with Active Directory
Feedback
Submit and view feedback for