Sales Order integration with PowerPlatform - Dynamics 365
Set up the mapping for the sales order status columns
The columns that indicate sales order status have different enumeration values in Microsoft Dynamics 365 Supply Chain Management and Dynamics 365 Sales. Additional setup is required to map these columns in dual-write.
columns in Supply Chain Management
In Supply Chain Management, two columns reflect the status of the sales order. The columns that you must map are Status and Document Status.
The Status enumeration specifies the overall status of the order. This status is shown on the order header.
The Status enumeration has the following values:
- Open Order
- Delivered
- Invoiced
- Cancelled
The Document Status enumeration specifies the most recent document that was generated for the order. For example, if the order is confirmed, this document is a sales order confirmation. If a sales order is partially invoiced, and then the remaining line is confirmed, the document status remains Invoice, because the invoice is generated later in the process.
The Document Status enumeration has the following values:
- Confirmation
- Picking List
- Packing Slip
- Invoice
columns in Sales
In Sales, two columns indicate the status of the order. The columns that you must map are Status and Processing Status.
The Status enumeration specifies the overall status of the order. It has the following values:
- Active
- Submitted
- Fulfilled
- Invoiced
- Cancelled
The Processing Status enumeration was introduced so that the status can be mapped more accurately with Supply Chain Management.
The following table shows the mapping of Processing Status in Supply Chain Management.
Processing Status | Status in Supply Chain Management | Document Status in Supply Chain Management |
---|---|---|
Active | Open Order | None |
Confirmed | Open Order | Confirmation |
Picked | Open Order | Picking List |
Partially Delivered | Open Order | Packing Slip |
Delivered | Delivered | Packing Slip |
Partially Invoiced | Delivered | Invoice |
Invoiced | Invoiced | Invoice |
Cancelled | Cancelled | Not applicable |
The following table shows the mapping of Processing Status between Sales and Supply Chain Management.
Processing Status | Status in Sales | Status in Supply Chain Management |
---|---|---|
Active | Active | Open Order |
Confirmed | Submitted | Open Order |
Picked | Submitted | Open Order |
Partially Delivered | Active | Open Order |
Partially Invoiced | Active | Open Order |
Partially Invoiced | Fulfilled | Delivered |
Invoiced | Invoiced | Invoiced |
Cancelled | Cancelled | Cancelled |
Setup
To set up the mapping for the sales order status columns, you must enable the IsSOPIntegrationEnabled and isIntegrationUser attributes.
To enable the IsSOPIntegrationEnabled attribute, follow these steps.
-
In a browser, go to
https://<test-name>.crm.dynamics.com/api/data/v9.0/organizations
. Replace <test-name> with your company's link to Sales. -
On the page that is opened, find organizationid, and make a note of the value.
-
In Sales, open the browser console, and run following script. Use the organizationid value from step 2.
JavaScriptXrm.WebApi.updateRecord("organization", "d9a7c5f7-acbf-4aa9-86e8-a891c43f748c", {"issopintegrationenabled" : true}).then( function success(result) { console.log("Account updated"); // perform operations on row update }, function (error) { console.log(error.message); // handle error conditions } );
-
Verify that IsSOPIntegrationEnabled is set to true. Use the URL from step 1 to check the value.
To enable the isIntegrationUser attribute, follow these steps.
-
In Sales, go to Setting > Customization > Customize the System, select User table, and then open Form > User.
-
In Field Explorer, find Integration user mode, and double-click it to add it to the form. Save your change.
-
In Sales, go to Setting > Security > Users, and change the view from Enabled Users to Application Users.
-
Select the two entries for DualWrite IntegrationUser.
-
Change the value of the Integration user mode column to Yes.
Your sales orders are now mapped.
posted on 2021-03-17 14:46 lingdanglfw 阅读(66) 评论(0) 编辑 收藏 举报
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?