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 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?
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.
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