sharepoint - 通过 Flow 从 PowerApps 上传图像到 SharePoint

标签 sharepoint powerapps power-automate

正如标题所说......我正在构建一个将图像上传到共享点目录的强大应用程序。

关注 this blog我能够成功上传由 Camera Control 捕获的图像。

但是,我想做同样的事情,但使用“添加图片”控件。

我执行此操作的 PowerApp 功能是

ClearCollect(PictureCollection2, AddMediaButton2.Media);
MediaToSharePoint.Run("test.png", First(PictureCollection2).Value)

我将媒体添加到集合中,然后使用该值运行流。此值是一种 URL 形式,其中包含存储为 blob 的图像。这是传递给 Flow 的值的示例
blob:https://create.powerapps.com/79d7f767-4dff-448d-87ec-b3d2f7cdf27d

该流程有两个步骤; PowerApp 连接器和共享点创建文件

流程在第二步失败,出现“错误请求”错误。

有没有人能够通过“添加图片”控件将图像上传到 Sharepoint?

任何帮助将不胜感激,如果我应该提供更多细节,请告诉我。

最佳答案

我们能够通过将图片保存到 SharePoint 列表来解决该问题。
以下是解释解决方案的有用链接。

  • "Save Attachments to SharePoint List using PowerApps" (YouTube Video)
  • "Add attachments to SharePoint lists" (Blog Post)
  • "Showing List Attachments in a gallery" (Forum Thread)

  • 它正在工作!

    关于sharepoint - 通过 Flow 从 PowerApps 上传图像到 SharePoint,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47084869/

    相关文章:

    c# - 找不到 SPSite namespace

    SharePoint 2007 网站模板内容类型

    sql - Azure SQL - 创建带有约束的自动生成 ID,导致 powerapps 出现问题

    api - PowerApps调用Azure API应用程序

    powerapps - 在 PowerApps 中将对象转换为字符串

    azure - 尝试通过 python msal 库访问 Microsoft Power Automate API

    sharepoint - 检查是否在 Sharepoint 中启用了 BlobCaching(无需查看 web.config)

    SharePoint CAML 查询最大大小

    power-automate - 获取昨天的日期 (MS Power Automate)

    python-3.x - 有没有办法在没有 Azure 的情况下通过 Power Automate 运行 python 脚本?