简体   繁体   English

如何使用自定义组件导出然后导入具有 canvas 应用程序的 powerapps 解决方案

[英]how to export then import a powerapps solution that has a canvas app using a custom component

I cannot seem to export then import a powerapps solution that has a canvas app that references a custom component.我似乎无法导出然后导入具有引用自定义组件的 canvas 应用程序的 powerapps 解决方案。 I'm using the powerapps portal to create the solution, where I add the canvas app that uses the custom component.我正在使用 powerapps 门户创建解决方案,并在其中添加了使用自定义组件的 canvas 应用程序。 When I export, download, and try to import the solution at this point it fails with the error:当我此时导出、下载并尝试导入解决方案时,它会失败并出现以下错误:

error code 8004F036: The dependent component CustomControl (Id=xxx) does not exist.错误代码 8004F036:依赖组件 CustomControl (Id=xxx) 不存在。 Failure trying to associate it with CanvasApp (Id=yyy) as a dependency.尝试将其与 CanvasApp (Id=yyy) 作为依赖项关联失败。 Missing dependency lookup type = EntityNameLookup.缺少依赖项查找类型 = EntityNameLookup。

If I first go to the solution and click 'add required objects' it will not add the custom component.如果我首先将 go 加入解决方案并单击“添加所需对象”,它将不会添加自定义组件。 If I manually add it, it shows it as added, but still after exporting, downloading, and importing, I get the same error.如果我手动添加它,它会显示为已添加,但在导出、下载和导入之后,我仍然收到相同的错误。 It would be great if someone knows the proper steps to get this working.如果有人知道完成这项工作的正确步骤,那就太好了。

You will have to do this in 2 steps.您必须分两步完成此操作。

  1. custom control (either you created on or you used from some 3 rd party) should be deployed (imported) to Target system.自定义控件(您创建的或从某个第 3 方使用的)应部署(导入)到 Target 系统。 If it is managed solution from 3rd party then you might have solution.zip file use this and deploy to target system.如果它是来自第 3 方的托管解决方案,那么您可能有 solution.zip 文件使用它并部署到目标系统。 If you created this custom control, then create separate solution and just add your custom control and deploy this solution.如果您创建了此自定义控件,则创建单独的解决方案并添加您的自定义控件并部署此解决方案。
  2. Once custom control is imported, then deploy/import your powerapps solutions.导入自定义控件后,部署/导入您的 powerapps 解决方案。

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

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