Skip to main content

Ms Flow: Copy a set of files in SharePoint using their ID's

    If you have a small set of files in a SharePoint Library, which has too many folders, using MS Flow to copy all files from one specific folder is easy. But if you want to pick a small set of files from multiple folders and copy them all using one Flow, it might be tricky.

If you open any document from SharePoint in a web-browser, you'll notice a text like "Listitemid = ####" where #### is a number. That is a unique ID of that file in that SharePoint. You can use this to get the details of that file.

Example:
https://testsite.sharepoint.com/:x:/r/sites/test123/_layouts/15/Doc.aspx?sourcedoc=%7Bb8exxx66-2f8a-486a-9426-6cd93abcd22097b%7D&action=default&uid=%7BB8EFG30666-2F8A-486A-9426-6CD93A22097B%7D&ListItemId=671204&ListId=%7B7BDD3AD3-36BCDE-4E43-BB21-9B68136E8091%7D&odsp=1&env=prod

You can store a set of those values as an array variable in the Initialize Variable step(blue box in below screenshot) in MS Flow and use those to Get file properties and the copy the respective files. Please find a sample screenshot below.

Copy specific files in SharePoint


Comments

Popular Posts

Power Query - "SUBSTITUTE" Function: Remove/Replace multiple values in a column in One Step.

Often times, when you get data from a source, there will most probably be something incorrect that needs to be fixed using an ETL process of Power Query. And most of those transformations would require either Replacing or Removing string's that are not necessary. For example, if you extract any financial data from a source which has multiple currency symbols, there's a chance that the numbers get extracted along with the currency symbols like "$700"/"€700" instead of 700. And these type of cases makes it tough to Transform the Data to our wish as the value will be considered as a text instead of a number. In those type of cases, we would most likely have to create multiple steps to remove the multiple currency symbols from the Column. But thanks to the solution provided by Marcel for one of the questions posted on Stack Overflow, with a little manipulation of the Query language (M), we can replace/Remove multiple strings in one step using the List.

Scribble on your PC/Mac screen with these annotation tools

     While you are in a presentation or hosting a webinar, you might want to write/highlight a part of your screen to draw the attention of your audience on something important. Although you can use the tools from powerpoint to scribble in the PPT file, you might want to write something on other apps as well.      That's where these awesome apps come into play. Although these apps have similar features, you might prefer one above the other. ZoomIt :       ZoomIt is an application developed by Microsoft which can be installed from the following link . It is a free tool with features like Text, Shapes, whiteboard, blackboard, zoom . When activated, the tool converts the current screen into a static image and allows you to draw/write on it. One the tool is activated, you can also choose to create a whiteboard/blackboard screen on your PC to draw on. Although the colors are limited to 6 colors: Red (R) , Green (G) , Blue (B) , Orange (O) , Yellow (Y) , Pink (P) , it should be

Change the orientation of Snap Grid in Revit.(Rotate Grid/UCS)(09 of 10)

One of the shortcomings of Revit is that unlike AutoCAD you can't save multiple UCS to rotate the snap grid based on the orientation of the building. But we can make use of the grid from the workplane to align/snap the elements in whichever angle you want. To see and manipulate the grid in any of the plan views, Go to the plan view. Click on "Show"  button in the "Workplane" toolbar of "Architecture" tab in the ribbon. The grid by default will show up aligned to the screen orientation. You can select the grid and click on rotate to rotate the grid to your desired orientation. Snap Grid

Grasshopper: offsetting curves on surface vs scaling curves on surface

Though in Grasshopper Offset and Scale are two different node functions, when it comes to a planar surface, the results of the both are similar. But, I found the " Scale" node to be effective when you want to loft the resultant curve with another. The following images show the different results of a Voronoi structure that yielded when scale and offset nodes are used. When the Offset node is used When Scale is used