4

Power Apps 中修改 SharePoint Online 数据

 2 years ago
source link: https://www.cnblogs.com/jianyus/p/15823211.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Power Apps 中修改 SharePoint Online 数据

  前言

  我们经常会在Power Apps里去修改SharePoint Online的数据,除了Form空间之外,就是Patch了。

  正文

  1.首先,我们需要有一个列表保存数据,如下图:

256729-20220129205145872-368103068.png

  2.在Power Apps中添加数据源,将SharePoint Online列表添加进来,如下图:

256729-20220129205258524-477561099.png

  3.如果已经有连接了,直接选择就行了,没有的话就需要手动添加了,如下图:

256729-20220129205358345-733273550.png

  4.在右侧面板输入站点名称,会自动读取列表信息,选择列表点击连接就行了,如下图:

256729-20220129205516990-1974222136.png

  5.下面是使用Patch方法新建项目,如下图:

256729-20220129205716474-1614975541.png

  6.如果更新项目,需要将patch的第二个参数,写成需要更新的项目,使用Lookup方法查询就可以,如下图:

  Tips:Lookup方法的好处就是,返回符合查询条件的第一个项目,记得筛选条件用唯一值的主键。

  自己之前不知道这个方法的时候,都是first(filter(datasource,id=1))的方式,现在想想有点傻

256729-20220129205924565-1868416521.png

  结束语

  Power Apps的Patch方法真的很好用,不过,如果碰上查阅项、人员字段,就需要特别的写法了,后面我们会给大家分享。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK