使用 Dynamics AX 的业务连接器生成销售订单
因此,就像标题所说,我需要创建一个应用程序,从另一个数据库获取数据,并将其推入 Dynamics AX 的喉咙。
该数据来自门户,不是企业门户,而是 PHP 门户。它将订单中的一些数据存储在单独的数据库中。如前所述,我需要将其“导入”到 AX,使用我从其他数据库获得的数据创建销售订单。
另外,我也想要一些有关 Business Conector 的参考资料,它是否可以处理 AX 为我使用的所有 RECIDS 和参考资料?
提前致谢。
编辑:
好的,我可以在 AX 的数据库中插入记录,只有一个问题。我无法生成内部 ID。就像 CustTable 的“AccountNum”字段一样。有没有办法从业务连接器捕获它?
So, just like the title says, I need to create an application that gets data from another Database, and shoves it through Dynamics AX's throat.
This data comes from a portal, not Enterprise Portal, but a PHP one. It stores some data from the order in a separate database. So as said, I need to 'import' that to AX, creating the sales orders with the data I have from the other database.
Also I'd like some references on Business Conector too, does it handle all those RECIDS and references that AX uses for me?
Thanks in advance.
EDIT:
OK, I'm able to insert records in AX's database, theres just one problem. I can't generate the internal ID. Like, the 'AccountNum' field for the CustTable. Is there a way to capture it from business connector?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最后,我没有使用.NET Business Connector,我们让其他应用程序将数据插入到 AX 数据库的表中。然后在互联网上找到了一些代码,为我插入 SalesTable 表中的每条记录生成下一个 salesID。不过我必须补充一点,根据我的搜索结果,使用 .NET Business Connector 听起来并不难。
In the end, I didn't use the .NET Business Connector, we got the other application to insert data in a table in the AX's database. Then found some code on the internet to generate the next salesID for each record I inserted in the SalesTable table. Though I must add that using the .NET Business Connector didn't sound so hard from what I've searched.
我建议您使用应用程序中的 AXSalesTable 和 AXSalesLine 类。这些将处理很多内务工作,还会自动创建销售 ID。
Business Connector 文档可在此处找到:http://msdn.microsoft.com/ en-us/library/bb496526.aspx
I suggest you use the AXSalesTable and AXSalesLine classes from your application. These will take care of a lot of the housekeeping, also automatically creation of sales id's.
Business Connector documentation can be found here: http://msdn.microsoft.com/en-us/library/bb496526.aspx