Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-02 22:57:35 09月28日 Update

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.

Tags: Work tools design workflow business e-mail goods mail storage services management difference throw a brick to attract jade and then three not just warehouse function just Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Microsoft Shulou Tech Info Docker MySQL