[英]Create a generic flow in Power Automate
I am a beginner to Power Automate and currently I am working on creation of flows.我是 Power Automate 的初学者,目前我正在致力于创建流。
Presently I worked on a flow to generate a PDF for a particular SharePoint list item on the click of a button in PowerApps.目前,我在一个流程上工作,在 PowerApps 中单击一个按钮,为特定的 SharePoint 列表项生成一个 PDF。 I have 2 lists in my site and I created 2 separate flows one for each SharePoint list.
我的站点中有 2 个列表,我为每个 SharePoint 列表创建了 2 个单独的流程。 Presently I have only 2 lists but I may have 20 lists at a later point of time.
目前我只有 2 个列表,但以后可能会有 20 个列表。 Since this flow should be implemented for every list, my understanding as of now is to create 20 different flows for each list.
由于应该为每个列表实施此流程,我目前的理解是为每个列表创建 20 个不同的流程。
Is there a way to create one generic flow that will be applicable for all 20 lists in this scenario?有没有一种方法可以创建一个适用于该场景中所有 20 个列表的通用流程? If so kindly help.
如果有请帮助。
Yes, this possible.是的,这可能。 (Please note that I enabled the Experimental Features for Power Automate - this changes the way you enter expressions and dynamic content)
(请注意,我启用了 Power Automate 的实验性功能 - 这会改变您输入表达式和动态内容的方式)
Add an "Get Lists" action to your flow.向您的流程添加“获取列表”操作。 The name is pretty self-explanatory.
这个名字是不言自明的。
I assume you used a "Get Item" action in your flow to select the item you want to convert to PDF.我假设您在流向 select 的流程中使用了“获取项目”操作,您要将项目转换为 PDF。
Add "Get Item" to your flow, but now select "Add custom item" for your List Name.将“获取项目”添加到您的流程,但现在 select “添加自定义项目”作为您的列表名称。
Enter one of the outputs from "Get Lists" as Dynamic Value.输入“获取列表”的输出之一作为动态值。
This will wrap the Get Item action in a "Apply to each" loop.这会将 Get Item 操作包装在“Apply to each”循环中。
Enter DisplayName from "Get Lists" as Dynamic Value via "Add a custom item" for List Name" again再次通过“为列表名称添加自定义项”从“获取列表”中输入 DisplayName 作为动态值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.