Workflow - get current lits item title

I have created workflow in SP 2013 in Visual Studio. Now, I am having trouble with getting the title of the current item. I have SPLookupListItem activity and from its dynamic properties I can get almost all values except title. In activity "GetDynamicValueProperties" I have option "Title" and "Name(FileLeafRef)" but both return empty string.

Is it possible to get title of the current item??

September 5th, 2014 6:18pm

Hi,

There are 3 "Title" in the properties, Title, LinkTitleNoMenu and LinkTitle. please try to use the others to get the title.

Here is a thread for you to take a look at:

http://stackoverflow.com/questions/23630903/sharepoint-2013-visual-studio-workflow-listitem-dynamicvalue-get-field-value

Best Regards

Free Windows Admin Tool Kit Click here and download it now
September 8th, 2014 3:35am

Hi Dennis,

thanks for your answer, but I already tried all of those solutions and none of them worked. For all three Titles i get blank. If I try to get ID like this: "d/results(0)/ID" I can read ID, but if I try to get Title in the same manner: "d/results(0)/Title", I get blank.

September 8th, 2014 4:04am

Is there a way to see the entire JSON structure of that SPListItem?
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2014 4:37am

hi Mario,

1. SPLookupListItem on the Properties: set ItemId to CurrentItem and ListId to current list

2. Than click on the Get Properties link on the activity this will create DynamicValue varialbe for you

3. so click on the GetDynamicValueProperties than properties for that: here u have: properties : (Dictionary) click on ... (dot dot dot)
on the dialog choose Entity Type: YOUR LIST e.g. Lits Item of MyList

than create propertiy: Title (Title) than click on the Populate Varialbles link than OK to close the dialog.

4. now add the WriteToHistory activity and show your Title in the history

I hope this will help you

Ahmad

September 8th, 2014 4:56am

Hi Ahmad,

I have done exactly that and I get blank.

But, I have made a web service that returns title of my list item so I will no longer bother with this problem. Maybe it is problem with my environment.

Thank you guys for your help.

Free Windows Admin Tool Kit Click here and download it now
September 8th, 2014 5:14am

you welcome anytime:
change this : "d/results(0)/Title" to d/results/(0)/Title and try.

BR
Ahmad

September 8th, 2014 5:22am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics