另一个列表中的MS Flow Update sharepoint项 [英] MS Flow Update sharepoint item in another list
问题描述
我有2个列表
评分列表和所有等级列表
Grading List and All Grades List
评分列表包含以下列
- 学生姓名
- 季度:(价值将为第一季度,第二季度,第三季度,第四季度)
- Quarter: (values will be First Quarter, Second Quarter, Third Quarter, Fourth Quarter)
- 成绩
在所有成绩列表中,它包含所有学生的姓名,列是
In the All Grades List, it contains all the names of students, columns are
- 学生姓名
- 第一季度
- 第二季度
- 第三季度
- 第四季度
当教授在评分表中创建一个项目时,我想要发生的事情是以下数值
What I want to happen is that when the professor creates an item in the Grading List with the following values
学生姓名:John Doe
Student Name: John Doe
季度:第一季度
年级:50
流程将运行并在所有等级列表中查找John Doe的条目,因此他的条目现在将变为
A Flow will run and look for the entry of John Doe in the All Grades List so his entry will now become
学生姓名:John Doe
Student Name: John Doe
第一季度:50
第二季度:
Second Quarter:
第三季度:
第四季度:
如果教授为第二季度创建另一个条目,那么它将更新所有等级的第二季度字段列表
and if the professor creates another entry for Second Quarter then it will update that Second Quarter field in the All Grades List
推荐答案
基本上你需要创建两个流到"评分列表"。一个是"当在SharePoint中添加新项目时,完成自定义操作",另一个
是"当一个现有列表项目时已修改,完成自定义操作"。
对于新项目添加流程,基本逻辑是(我在我的环境中测试两个季度:第一和第二):
For new item added flow, basic logic is(I am testing in my environment with two quarter:first and second):
1.初始化名为"Exists"的bool类型变量,然后将其设置为false。
2.从"所有等级列表"中获取项目。
3.应用于每个项目以检查学生姓名是否已存在于"所有成绩列表"中,如果找到匹配的名称,则将"存在"变量指定为true,然后将
指定为更新已存在的学生项目(在这里你还需要一个开关盒来检查应该输入哪个等级的分数。)
4.如果找不到匹配的名称,这意味着"存在"保持为假,请在"所有成绩列表"中创建一个新的学生项目。
对于项目修改流程,基本逻辑是:
1.从"所有等级列表"中获取项目。
2.申请每个项目以查找"所有成绩列表"中匹配的学生姓名项目,然后更新现有的学生项目(这里还需要一个开关
的案例来检查哪个季度等级应该输入)。
最好的问候,
Allen Allen
这篇关于另一个列表中的MS Flow Update sharepoint项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!