Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

SharePoint Online development: use Flow to create a workflow for List

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Blog link: https://blog.51cto.com/13969817

For many organizations, in order to enhance internal collaboration and process management, they use third-party tools, such as K2 and Nintex, to easily and quickly create solutions to common business problems. Starting in 2016, Microsoft released Microsoft PowerApps and Microsoft Flow, the first new toolkits for SharePoint customization in nearly a decade. It is exciting that it provides a large number of templates to deal with the business scenarios created. Can connect to many services, not just SharePoint, so far, there are nearly hundreds of different service families used to connect to flow, these tools will be extended to Library, list, and so on to work together, next I will share with you how to use Flow to quickly create custom workflows.

Flow has three main components:

Flow.microsoft.com is a browser-based drag-and-drop designer for Android, Windows, iOS Flow mobile app you can download from App Store, download from Windows Store, download from Google Play, Flow Mobile not only allows you to start the stream, but also allows you to design and edit the stream.

For example, we have a management list for warehouse storage or distribution, and customers hope that when a record is added to the list, it can be automatically triggered and dynamically sent to the person in charge by email.

The overall workflow is as follows:

Sample Code when creating an Item:

{

"inputs": {

"host": {

"connection": {

"name": @ parameters ('$connections') ['shared_sharepointonline'] [' connectionId'] "

}

}

"method": "get"

"path": "/ datasets/@ {encodeURIComponent (encodeURIComponent ('https://mvptrainingcn.sharepoint.com/sites/Service-to-Sales'))}/tables/@{encodeURIComponent(encodeURIComponent('85fab108-1923-425f-b3d3-2ce9c043dd0f'))}/onnewitems",)

"queries": {

"view": "94a98661-edb3-4947-9979-ba650c9fdb6e"

}

Authentication ":" @ parameters ('$authentication') "

}

"recurrence": {

"interval": 5

"frequency": "Minute"

}

"splitOn": "@ triggerBody ()? ['value']"

}

Sample Code to send email:

{

"inputs": {

"host": {

"connection": {

"name": @ parameters ('$connections') ['sharedoffice365'] [' connectionId'] "

}

}

"method": "post"

"body": {

"To": "@ triggerBody ()? ['ODatax5730x533ax8d1fx8d23x4e']? [' Email']"

"Subject": "increase in cargo records"

Body ":"

Hello @ {triggerBody ()? ['ODatax5730x533ax8d1fx8d23x4e']? [' DisplayName']}

\ n

\ n @ {triggerBody ()? ['{Name}']} has been added. The basic information is as follows:

\ n

\ n @ {triggerBody ()? ['Title']}

\ n @ {triggerBody ()? ['ODatax5730x533a']? [' Value']}

\ n @ {triggerBody ()? ['ODatax5730x533ax8d1fx8d23__x4e']? [' DisplayName']}

\ n

\ nThanks

"

}

"path": "/ v2/Mail"

Authentication ":" @ parameters ('$authentication') "

}

}

You can choose a specific action or trigger according to your actual needs, and so on. This is just for the purpose of attracting jade. If you need to discuss it in the future, you can communicate offline.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report