Run your entire business with a single solution
Go to siteThe Microsoft Dynamics 365 Business Central API enables you to streamline business processes by automating tasks and integrating with other services. With this API, you can access Dynamics 365 Business Central data such as financials, sales, service, and operations. It's perfect for creating custom workflows in Pipedream that can manipulate data, synchronize information across platforms, generate reports, and notify team members of important events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dynamics_365_business_central_api: {
type: "app",
app: "dynamics_365_business_central_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/beta/me`,
headers: {
Authorization: `Bearer ${this.dynamics_365_business_central_api.$auth.oauth_access_token}`,
},
})
},
})
Automated Invoice Processing: When a new sale is recorded in another app like Shopify, use Pipedream to automatically create an invoice in Dynamics 365 Business Central, record the transaction, and send a confirmation email to the customer via SendGrid.
Inventory Management: Set up a workflow on Pipedream that monitors stock levels in Dynamics 365 Business Central. When inventory for a particular item falls below a threshold, generate a purchase order, and send it to the supplier using an email service like Mailgun, or directly post it to a supplier's portal via webhooks.
Customer Relationship Updates: Whenever a customer's details are updated in a CRM like Salesforce, use Pipedream to reflect those changes in Dynamics 365 Business Central. Additionally, segment customers based on their purchase history or interactions and enrich their profiles for targeted marketing campaigns.
Creates a new customer. See the documentation
Retrieves a sales order by ID. See the documentation
Updates an existing customer. See the documentation
Microsoft Dynamics 365 Business Central API uses OAuth authentication. When you connect your Microsoft Dynamics 365 Business Central API account, Pipedream will open a popup window where you can sign into Microsoft Dynamics 365 Business Central API and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Microsoft Dynamics 365 Business Central API API.
Pipedream requests the following authorization scopes when you connect your account:
User.Read
email
offline_access
openid
profile
Financials.ReadWrite.All
GET
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://login.microsoftonline.com/common/oauth2/v2.0/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
&
scope={{oauth.space_separated_scopes}}
POST
https://login.microsoftonline.com/common/oauth2/v2.0/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}