0

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" enter image description here

1

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 – Thomas Mathew Aug 4 '14 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? – Aanchal Aug 4 '14 at 6:03
  • 1
  • List is created by adding a new item (An instance of Announcement List ) in project. Name of the List - AnnouncementList. – Thomas Mathew Aug 4 '14 at 6:06
  • First create that list on your site and then try. – Aanchal Aug 4 '14 at 6:07
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.