I am creating a sample workflow project in SharePoint 2013 using Visual Studio 2012. An Announcement based List instance is also created. The workflow is linked to this list.
In my Sequence window, i am using a LookUpSPListItem activity to get the Title and Created By property. But both the "Title" and 'CreatedBy" fields are not showing in the property window.
Also, if i try to force add these properties, then i get an exception in the workflow debugger window -"system.formatexception the dynamic value property was incorrectly formatted"
Add a comment
|
2 Answers
To get the created by, you first need to get AuthorID. After that you need to use LookupSPuser to get the name of the user from the ID.
For getting the Title, in entity type : List item of "Your list name". You should get the Title property.
-
Thanks for the suggestion. 1) AuthorID is working fine. I tried that already. But i am referencing an MSDN article - msdn.microsoft.com/en-us/library/office/… Title is not showing the dropdown Commented Aug 4, 2014 at 5:57
-
I tried the same thing at my end. It showing me title column. How are creating your announcement list? and what is the name of that list?– AanchalCommented Aug 4, 2014 at 6:03
-
1
-
List is created by adding a new item (An instance of Announcement List ) in project. Name of the List - AnnouncementList. Commented Aug 4, 2014 at 6:06
-
I too faced the same issue and it was resolved by creating the app list based on a content type. For some reason, workflow is picking up fields only if they are part of a content type.