Count items in specific folder in sharepoint 2010 - sharepoint-2010

I have sharepoint 2010 site on intranet with document library. Document library has folder structure with sub folders. I need number documents in specific subfolder . I know that this field exists in document library but i don't know how i use them for specific subfolder in another list where this field will be displayed

Where and how do you want to use the count? In code, display in a list?
In a list you can edit the view and just add the "Item Child Count" column to the view.
Several code solutions here: How to find item count in a SPFolder?
If using 2013: From code using the REST API see here: https://sharepoint.stackexchange.com/questions/145219/how-to-get-itemchildcount-of-documentset-folder-using-rest-api

Related

How to Move Emails Containing Name of a Folder?

We manually create a folder each time we get a new client.
I'd like if an email contains a keyword that matches the name of a folder, then move the email to said folder.
E.g.
If email in inbox contains keyword "Apple" and an "Apple" folder exists, then move email to the "Apple" folder. Else nothing.
Similarly, if email in inbox contains keyword "Google" and a "Google" folder exists, then move the email to the "Google" folder. Else nothing.
Without having to set rules for each new folder that is created.
Yes, it is possible. In VBA you can scan all folders for email with a specific keyword and if a corresponding folder exists in Outlook you could move it to that folder. Let's consider what needs to be done for that. First, you need to scan all folders. The AdvancedSearch method of the Application class allows to perform a search based on a specified DAV Searching and Locating (DASL) search string. The key benefits of using the AdvancedSearch method in Outlook are:
The search is performed in another thread. You don’t need to run another thread manually since the AdvancedSearch method runs it automatically in the background.
Possibility to search for any item types: mail, appointment, calendar, notes etc. in any location, i.e. beyond the scope of a certain folder. The Restrict and Find/FindNext methods can be applied to a particular Items collection (see the Items property of the Folder class in Outlook).
Full support for DASL queries (custom properties can be used for searching too). To improve the search performance, Instant Search keywords can be used if Instant Search is enabled for the store (see the IsInstantSearchEnabled property of the Store class).
You can stop the search process at any moment using the Stop method of the Search class.
Read more about that in the Advanced search in Outlook programmatically: C#, VB.NET article.
So, you could run a search for items in the background and then at some point when the search is completed you may be notified.
To find the target folder you could iterate over all folders in Outlook recursively. See Enumerate folders for more information on that.
Finally, to move items you can use the Move method which moves a Microsoft Outlook item to a new folder.

Automatically take specific data out of specific emails and put it into an excel form

I'm completely new to VBA.
Is it possible to write some code that would search for emails from a specific sender and search inside that email for a specific line in a table, which it would then put into an already existing excel form?
Any advice on where to get started learning this or if it's even possible would be greatly appreciated.
it is possible to make that. You have three types to search something like that.
You have the View, AdvancedSearch and the Explorer.Search.
The View is only for one folder.
The Filter for the View is called Distributed Authoring Search and Location (DASL). Here is a good link for that filter type: https://msdn.microsoft.com/en-us/library/ms874577(v=exchg.65).aspx
The AdvancedSearch is like the View, but you can search over all folders and all nameboxes. BUT there is problem! When you use AdvancedSearch you have to create an folder and in this folder are your results. The filter of the folder is unchangebel, so after creading you cant change anything. The folder will update Automaticly if there are new Mail or something else. The AdvancedSearch uses the same filter as View.
The last one is the Explorer.Search. With that search you can search like the AdvancedSearch, but you have not to create an folder. This one uses the Advanced Query Syntax (AQS). Here is a good link for that filter type: https://msdn.microsoft.com/en-us/library/cc513841(v=office.12).aspx Each of the searches can filter for all typs of objects. So you can Search for things in Mails.
Text in mails is Called in..
- DASL textdescription.
- AQS contents.
I hope I could help you by starting.

How restrict viewing items on SharePoint 2010

I am a beginner in SharePoint and is currently in the process of developing a SharePoint site for leave requests, my problem and the next I have a list called off request in which you can create new equest but I have several users and I want only the author of each item created that can be seen in the list, how to restrict viewing list items.
Thank you in advance.
In list settings, click Advance Settings, in Item-level permission, select the "Read items that were created by the user"

How to add a custom field to a list item attachment?

In a SharePoint 2010 development project (in VS 2010), we need to add a custom field to the list item attachments. For example, the user has an additional boolean field next to the attachment file browser similar to the below mockup:
Any ideas?

Can I link items in one list to items in parent site list in Sharepoint 2010?

I have a parent site with several subsites in SharePoint 2010.
I have a list in the parent site (call it Product Backlog) that lists in the subsites (Sprint Backlog) need to be able to link to.
Is this possible in SharePoint 2010? That is, Can I add a lookup field in my subsite lists that points to the parent site list as the source of the data?
This is a common requirement. Event though there isn't any out-of-the-box solution, there are some workarounds for this. Check this out