Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Errors in SP 2013 workflow project in Visual Studio 2012

$
0
0

with Visual Studio 2012 Update 1 installed, I'm getting a series of errors during build:

Error    22    Failed to translate expression 'My.GetSpUserFromField(My.FieldDisplayNames.DocOwner, currentItem).LoginName' because of the following error:
Translating the method 'My.GetSpUserFromField' or one of its overloads to an activity is not supported.
    
Error    21    Failed to translate expression 'DateTime.Now' because of the following error:
Property access conversion to an activity is not supported for property 'Now' defined on type 'System.DateTime'.

Particularly the 2nd error, how to get the current time in the workflow then?  Say I need to add 10 days to a DateTime column vlaue of the current list item.

In general, is there documentation on how the "translation" of methods and properties into activities works?


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>