Skip to content

SharePains

  • Facebook
  • X
  • LinkedIn
  • YouTube
  • WhatsApp
  • Home
  • Trending
  • Tech
  • Lifestyle
  • Design

SharePoint 2016 – Aaah, SharePoint Designer workflows!

SharePoint 2016 – Aaah, SharePoint Designer workflows!

By:

Pieter Veenstra

Date:

December 22, 2017

Over the last year or so I’ve only really looked at the bleeding edge technology released by Microsoft. Microsoft Teams, Microsoft Forms, SharePoint Online, PowerApps and Microsoft Flow  and anything related have been very interesting.

Just before the 2017 year ends however I’m now working on a SharePoint 2016 project and it’s quite a challenge to go back to technology like SharePoint Designer workflows. Today one of those small problems that can be a bit of a challenge is to get the value of a Managed Metadata column.

I first went down the root of simply setting a variable to my column

SharePoint 2016 - Aaah, SharePoint Designer workflows!

But I bumped quite quickly into the following error as I was setting a string variable to the value of the Managed Metadata column:

Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InvalidCastException: The value ‘d/results(0)/Location’ cannot be read as type ‘String’. at Microsoft.Activities.GetDynamicValueProperty`1.CheckedRead(String propertyName, DynamicItem value) at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Quite quickly I now found:

https://sharepoint.stackexchange.com/questions/156579/get-metadata-column-value-in-spd-workflow

So I went throguh these steps:

  1. Choose action – set variable to value

  2. In the value section (popup when you click value)- choose the data source as the list which you are fetching the column from –

  3. In the field from source – choose the managed metadata column internal name

  4. In the find in the list item section – choose the field tp be ID and value to be CurrentItem -> ID (should look like CurrentItem.ID)

  5. Click on OK. This should get you value of the managed metadata column.

  6. If you want, you can use the action Log item to the history list to check the value.

 

So I change my set variable step into something like this: where I selected my Location column again:

SharePoint 2016 - Aaah, SharePoint Designer workflows!

But still no luck. Then I tried the Location_0 column, Huh what is this. My internal name of the column is definitely Location and not Location_0

SharePoint 2016 - Aaah, SharePoint Designer workflows!

Then I simplified my step again and the Location_0 column did the trick again.

SharePoint 2016 - Aaah, SharePoint Designer workflows!

SharePoint 2016 – Aaah, SharePoint Designer workflows!

 

 

 

Pieter Veenstra

Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There’s a better way — and I can show you exactly what it looks like. I’m the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide. For over 30 years I’ve been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions. SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://staging.sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/ Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://staging.sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/ You can contact me using contact@staging.sharepains.com

Categories:

Microsoft Office 365

Tags:

Leave a Reply Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Invoke an HTTP request and External Guest Users in Power Apps

    This morning I had a look at an app that security details of a user. The…

    By

    Pieter Veenstra
  • Solution Layers Spaghetti Nightmares in the Power Platform

    We all know that we should use solutions in the Power Platform, but with solution come…

    By

    Pieter Veenstra
  • AI Skill Config in Power Platform

    This week I’ve been working with a client on creating tables within a solution. We found…

    By

    Pieter Veenstra
  • Bulk update records within a Dataverse table

    Earlier this week a question on Reddit started the idea of this post. You have a…

    By

    Pieter Veenstra
  • How do I loop through each character in a string in Power Automate?

    This morning on Reddit someone asked in the Power Automate community “How do I loop through…

    By

    Pieter Veenstra

All Categories

  • AI Builder (1)
  • Angular 2 (1)
  • Azure AI Foundry (2)
  • Copilot Studio (12)
  • Hyper-V (2)
  • Microsoft 365 (42)
  • Microsoft Azure (23)
  • Microsoft Bookings (1)
  • Microsoft CRM (3)
  • Microsoft Dataverse (12)
  • Microsoft Delve (1)
  • Microsoft Dynamics 365 (17)
  • Microsoft Edge (2)
  • Microsoft Fabric (1)
  • Microsoft Forms (6)
  • Microsoft Graph (12)
  • Microsoft Infopath (2)
  • Microsoft Office (4)
  • Microsoft Office 365 (558)
  • Microsoft Office Online (3)
  • Microsoft Outlook (4)
  • Microsoft Power Apps (209)
  • Microsoft Power Automate (192)
  • Microsoft Power BI (9)
  • Microsoft Power Platform (85)
  • Microsoft Project (14)
  • Microsoft SharePoint (209)
  • Microsoft SharePoint Online (154)
  • Microsoft SQL Server (3)
  • Microsoft Syntex (1)
  • Microsoft Teams (66)
  • Microsoft Word (5)
  • Microsoft Yammer (5)
  • MSDN Forum Assistant (1)
  • Nintex Workflow (19)
  • Office web apps (1)
  • OneDrive for Business (8)
  • Patterns And Practices (25)
  • Power Automate (191)
  • Power Pages (6)
  • PowerShell (52)
  • SharePoint 2010 (24)
  • SharePoint 2013 (99)
  • SharePoint 2016 (30)
  • SharePoint Designer (19)
  • SharePoint Embedded (1)
  • Skype for Business (4)
  • SPFx or SharePoint Framework (14)
  • Technet Forum Assistant (1)
  • Visual Studio (9)
  • Windows 10 Mobile (1)
  • Windows Server (1)
  • WordPress (3)
  • Workflow Manager 1.0 (16)

SharePains

  • Facebook
  • X
  • YouTube
  • WhatsApp

Contact US

Blog

Terms of Use

Give Us Feedbacks

Copyright @ 2026 WENS XBlog, All Rights Reserved