简体   繁体   English

在Microsoft Dynamics CRM中自动导入数据

[英]Automate data import in microsoft dynamics crm

I have written code that imports CSV file records into crm using an existing data map. 我编写了使用现有数据映射将CSV文件记录导入到crm的代码。 Now I want this to be run on crm server periodically and automatically. 现在,我希望它可以在crm服务器上定期自动运行。 Guide me what's needed to make it part of crm? 指导我,使它成为crm的一部分需要什么?

If your code is a plugin, you can set up a recursive workflow that performs whatever action is needed in order to kick off your code, waits for however long you need, then calls itself again. 如果您的代码是插件,则可以设置一个递归工作流,该工作流执行所需的任何操作以启动代码,等待所需的时间长短,然后再次调用自身。 There are checks that block infinite looping depending on the how often it calls itself, so be careful of that. 有一些检查会阻止无限循环,具体取决于它调用自身的频率,因此请注意这一点。

I wouldn't set up these kind of things with a workflow if I can avoid it, you don't want to have stuff ticking away in CRM if you can avoid it plus you have a set number of times a workflow can do recursive calls and then you need to bend stuff to make it work. 如果可以避免,我就不会在工作流程中设置此类的东西,如果您不想避免,那么您就不想在CRM中滴答作响,而且您有一定次数的工作流程可以进行递归调用然后您需要弯曲一些东西才能使其正常工作。 As it is a console program (more or less) and if you have a server to run it on, I'd Schedule it using the the scheduler in WS, or make it as a service. 由于它是一个控制台程序(或多或少),并且如果您有要在其上运行的服务器,那么我将使用WS中的调度程序对它进行调度,或者将其作为服务。 This is if you can do that, and as I asked earlier, how do you want to run it and where do you import the data from? 这是您可以做到的,并且正如我之前所问的,您要如何运行它以及从何处导入数据?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM