Hamed GH Hamed GH - 7 months ago 54
C# Question

Using Custom Types for Variables during SharePoint 2013 Workflows

I want to define a simple object from a class with only one property as a variable in sharepoint 2013 workflow.

The Class code is:

public class RssFeedItem
public string Title { get; set; }

I can create a variable with this type in workflow as you can see at the following image:

enter image description here

After that i add an Assign Activity, and set FeedTitle=MyFeed.Title:

enter image description here

But when i built workflow i get the following error:

enter image description here

Error message is: Failed to translate expression 'MyFeed.Title' because of the following error: Property access conversion to an activity is not supported for property 'Title' defined on type 'FeedReaderLib.RssFeedItem'.

Could anyone help me to solve this problem?

Any help would be appreciated.


I solve my problem.

I just need to update SharePoint 2013 to Service Pack 1, and then Rerun SP-Register workflow service on SharePoint.