英文:
Exception : Custom plugin execution is not allowed in nested pipeline for Virtual Entity
问题
我正在使用Power Apps中的Dynamics插件代码创建一个新的虚拟实体记录。我可以通过前端手动完成这个过程吗?
但插件代码如下:
var verecord = new Entity("mserp_virtualentity")
{ ["mserp_name"] = "Create" };
verecord.Id = service.Create(verecord); //<-- throws exception
异常:"在虚拟实体的嵌套管道中不允许自定义插件执行。"
DLL步骤在postContactUpdate事件上注册。而且不确定这是否有任何影响,但数据源(财务与运营)已激活此表的数据事件以处理'OnExternalUpdate'(插件在其他地方但在此处未调用或触发)。
英文:
I am creating a new virtual entity record using Dynamics Plugin Code in Power Apps. I can manually do this through the front end?
but plugin code :
var verecord = new Entity("mserp_virtualentity")
{ ["mserp_name"] = "Create" };
verecord.Id = service.Create(verecord); //<-- throws exception
Exception : "Custom plugin execution is not allowed in nested pipeline for Virtual Entity."
dll step is registered on the postContactUpdate event. Also not sure if this has any bearing but the datasource (Finance & Operations) has this table Data Event(s') also Activated to handle 'OnExternalUpdate' (plugin elsewhere but is never called or triggered here)
答案1
得分: 0
"plugin execution is not allowed in nested pipeline for Virtual Entity" - because these Virtual entities does have their own data events registered any plugin code cannot be part of the pipeline.
Running the plugin async will resolve this issue running in its own execution pipeline.
英文:
As the exception says "plugin execution is not allowed in nested pipeline for Virtual Entity" - because these Virtual entities does have their own data events registered any plugin code cannot be part of the pipeline.
Running the plugin async will resolve this issue running in its own execution pipeline.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论