Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 5739

Representation of a list item within the SharePoint API.

1
vote
4answers
I want to performe some Action on ItemAdding. I have a Custom List that reacts on Item Creation. In particular on Item Adding performs some action using the After Properties.. If, at this level, i wa …
asked Jun 12 '12 by Ziba Leah
0
votes
Seems that the SPWeb.GetListItem method doesn't work with list elements but only with files.. I have the same problem, I tried this way: How to get an SPListItem from a Search Query Programmatically It works but I think it's a little inefficent. …
answered Jul 17 '12 by Ziba Leah
1
vote
3answers
I have a workflow linked to my list. Is there any programmatically way to select a list item and restart the associated workflow? Something like: SPListItem item = List.Items.GetById(1); item.Workflows[GUID].Restart(); Is there any other way to get the same result? Thank you very much! …
asked Dec 5 '12 by Ziba Leah
1
vote
void RestartWorkflow(SPListItem listItem, string workflowName) { SPWorkflowAssociation wfAssoc = listItem.ParentList.WorkflowAssociations.GetAssociationByName(workflowName …
answered Dec 6 '12 by Ziba Leah
0
votes
3answers
I'm querying my Search Server and getting some results... How can i get the SPListItem linked to that object? I tried with many ways, but every method fails.. Here's my code: string … = searchResultTables[ResultType.RelevantResults]; searchResult.Read(); SPListItem listItem = null …
asked Feb 9 '12 by Ziba Leah
0
votes
3answers
I'm trying to get file versions from an an SPListItem... I tried in many way, looping on SPListItem.Versions or SPListItem.File.Versions, tring to return my byte stream.. I can retrieve file info's …
asked Mar 23 '12 by Ziba Leah
3
votes
1answer
I need to get all my custom fields from my list by Javascript Object Model.. The code I wrote down is this: var items; $(document).ready(function () { $("[name=ItemChildCount]").text("Fi …
asked Sep 28 '12 by Ziba Leah
2
votes
I find a way to get that SPListItem... I modified my code this way: Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite scSite = new … ; webRoot.AllowUnsafeUpdates = true; SPListItem listItem = null;//= GetItemByContentId(updateContentObj.contentId); KeywordQuery keywordQuery = new …
answered Feb 9 '12 by Ziba Leah