AnsweredAssumed Answered

Cannot use hyperlink field in variable

Question asked by tb_cs on Apr 14, 2015
Latest reply on Jun 15, 2015 by sjferguson

I'm using workflow online to send an email that contains a link to a document.  This link to a document exists as a hyperlink field in my list.  I've tried including this field value in the email body, setting a string variable as the field value, and setting a hyperlink variable as the field value.  I even tried doing a lookup to the list item instead of using Current Item. No matter what, I get this error message

System.InvalidCastException: The value 'd/results(0)/Link_x0020_To_x0020_Document' cannot be read as type 'String'. at Microsoft.Activities.GetDynamicValueProperty`1

 

The only format option I have when reading this field value is String, it does not give me other options (such as hyperlink).  No matter what variable type I create, the only option is String and the error is always the same.  Is there a workaround so that I can include this hyperlink in an email?

Outcomes