Migrate to Microsoft Flow from SharePoint Designer practical examples – part 1 – Clone list items

After yesterday’s post about migrating from SharePoint Designer to Microsoft Flow I will start today with a series of posts with practical examples of losing the Work in your Workflow and make things just Flow.

I’m going to start with an easy workflow, but I’m planning to attack more complicated workflows in the following examples.

Migrate to Microsoft Flow example

So my example in SharePoint designer will run when list items in SharePoint are changed. More specifically I will clone the list item when the column test column is set to clone.

So my workflow will trigger when the item is created or modified. Then all the fields are copied to a new list item making sure that we don’t copy the test column value as that would trigger more processes to start. Maybe this would be a nice test, but this time I’m not going to push the system too hard.

Within SharePoint Designer my workflow now looks like this:

The Create new item copies all the column values. For the test column I’m going to set the value to “cloned by SPD”

Now it is time to replicate the same within Microsoft Flow.

 

Within no time I’ve build the following Flow:

Creating the item is a easy as well. Simply select the site, list and values for all of the columns and all is done:

 

This is where you can see the big difference between Flow and Workflows. As i ran the SPD workflow, I can now see my status column for the workflow that was added to the list. Flow doesn’t add a column. If you want to know if your flows were successful  you will have to go to the run history in Flow.

This shows the separation that Workflow Manager 1.0 was supposed to bring is now really happening with Microsoft Flow. So no need for workflow history lists in SharePoint anymore.

When you click on the history of one of the flows that clones my list item you will now see what the Create Item actually did.

How often did you include a Log action in SharePoint Designer just to spit out some information helping you to debug the workflow? Flow simply gives you the details in the run history.

 

Share
Pieter Veenstra

Business Applications and Office Apps & Services Microsoft MVP working as a Microsoft Productivity Principal Consultant at HybrIT Services. You can contact me using contact@veenstra.me.uk.

View Comments

Recent Posts

Get started with adaptive cards in Power Automate

Getting started with adaptive cards can be difficult. In this post i have written some…

6 days ago

Create PDF documents from data in Power Automate

In this post I will look at how to create PDF documents from data. Use…

7 days ago

Unnest nested arrays in Power Automate

We all know this problem, you have a nested array in Power Automate but how…

2 weeks ago

Advanced settings not loading in Power Platform

Yesterday one of my clients showed me an issues where the Advanced settings didn't load.…

3 weeks ago

1 Better way to use Create Item in SharePoint with Power Automate

Have you been using the REST API instead of the create item action in Power…

3 weeks ago

Filter by Content Type using Get Items in Power Automate.

In a comment on my Filter Query on Get Items in the SharePoint connector post…

3 weeks ago
%%footer%%