Showing posts from 2019

Microsoft Flow - Renaming Files in SharePoint Online using Flow

So your looking to use Flow and rename some files in SharePoint.

Too easy, but wait - there are no actions available to allow a rename? So what's next!?

Well here we go, REST API to the rescue! But not so fast, there are some catches.

You create a "Sent an HTTP request to SharePoint" action and fill in the properties as follows

Site Address =
Uri = _api/web/lists/getbytitle('<LIST NAME>')/getItemByStringId('<List Item ID>')
Headers =
{ "X-HTTP-Method": "PATCH", "If-Match": "*", "Content-Type": "application/json;odata=verbose", "Accept": "application/json;odata=verbose" } Body = {'__metadata': {'type': 'SP.Data.Project_x0020_DocumentsItem'}, 'Title':'test', 'FileLeafRef':'test.bmp'}

The above can be created in the activity pretty much like for like.
But you will need to c…

Hotfix Strategy in Git

Git branching is usually pretty straight forward and although merging can be a hassle it is important to remember the reasons for the isolation.

In the event a hotfix is required, it is handy to branch off from master instead of develop - this way we can test the fix on the develop branch before merging back to master.

The beauty of this makes git so powerful and the reason it's the most popular software version control software at the moment.

Also a quick mention that git branch --merged to see what's now part of the new master as this will list each individual feature, bugfix or hotfix as a list. Great for generating release notes.