Friday, 7 November 2014
What is the difference between NameSpace and Assembly
√ Assembly is physical grouping of logical units. Namespace logically groups classes.
√ Namespace can span multiple assembly.
√ Namespace can span multiple assembly.
How to recall email from outlook
Go to the Sent Items folder in Outlook and open the message you want to recall.
Tools menu-->Click on Recall This Message
If your message hasn't already been opened by the recipient, either delete the message or replace it with a new message.
if there are multiple recipients, you can request notification of whether the recall succeeded or failed for each one (at least you'll know whom to apologize to). Even if you successfully recall a message, the recipient may still know that you sent a message and then recalled it. So if you didn't replace it with a corrected message, you'll need to get your story straight as to why you recalled it.
SharePoint 2013 WCF and REST Url
Get Web Details
https://microsoft.sharepoint.com/teams/MySite/Test/_vti_bin/client.svc/web
Get All List information
https://microsoft.sharepoint.com/teams/MySite/Test/_vti_bin/client.svc/web/Lists
Get List Titles using
https://microsoft.sharepoint.com/teams/MySite/Test/_vti_bin/client.svc/web/Lists?$Select=Title
Or
We can use below one.
https://microsoft.sharepoint.com/teams/MySite/Test/_api/web/Lists?$Select=Title
Get List
https://microsoft.sharepoint.com/teams/MySite/Test/_api/web/Lists/GetByTitle('Documents')
When you open above link, you can see below tag.
<id>https://microsoft.sharepoint.com/teams/MySite/Test/_api/Web/Lists(guid'103d796b-25cf-4c85-bfbd-ab533b94ee08')</id>
https://microsoft.sharepoint.com/teams/MySite/Test/_api/Web/Lists(guid'103d796b-25cf-4c85-bfbd-ab533b94ee08')
We can open list using Guid. What it will do it internall it will call server side API to get the list using Guid.
_api is alias for _vti_bin/client.svc
We can replace _vti_bin/client.svc with _api
Get list items
https://microsoft.sharepoint.com/teams/MySite/Test/_api/web/Lists/GetByTitle('Documents')/items
Get Only some columns
https://microsoft.sharepoint.com/teams/MySite/Test/_api/web/Lists/GetByTitle('Documents')/items?$select=Title
https://microsoft.sharepoint.com/teams/MySite/Test/_api/web/Lists/GetByTitle('Documents')/items?$select=Title,Modified
For my custom list
https://microsoft.sharepoint.com/teams/MySite/Test/_api/web/Lists/GetByTitle('MyList')/items?$select=Title,Group
Get Specific Item
https://microsoft.sharepoint.com/teams/MySite/Test/_api/web/Lists/GetByTitle('MyList')/items(2)
Filter on title, which starts with T
https://microsoft.sharepoint.com/teams/MySite/Test/_api/web/Lists/GetByTitle('MyList')/items?$filter=startswith(Title,'T')
More than one query string
https://microsoft.sharepoint.com/teams/MySite/Test/_api/web/Lists/GetByTitle('MyList')/items?$select=Title,Group&$filter=startswith(Title,'Test2')
Based on Column: REST API
List item id:
url: http://site url/_api/web/lists/GetByTitle(‘Test')/items(item id)
filter based on column
/_vti_bin/ListData.svc/ListName?$filter=COLUMN1 eq 'VALUE11’
Get all List Columns:
https://SP2010/XXXX/_api/web/Lists/GetByTitle('MyListName')/items
Sharepoint change Maximum Upload Size
Open SharePoint 2010
Go to Central Administration -->Application Management -->Manage web applications
Select web application which you are tring to change upload size.
Once you select web application it will hilight, in the top you can find...
Web Application-->general Settings
click down arrow under general Settings
select general Settings.
scroll down you can find "Maximum Upload Size"
Here you can increase the size.
In the same page you can change Security validation expires, tile also
Max no of Alert are default :500
you can change this no.
Default Quota Template.
If it is no noquota, you can data with out limit
if it is personal site: 100 Mb limit
Go to Central Administration -->Application Management -->Manage web applications
Select web application which you are tring to change upload size.
Once you select web application it will hilight, in the top you can find...
Web Application-->general Settings
click down arrow under general Settings
select general Settings.
scroll down you can find "Maximum Upload Size"
Here you can increase the size.
In the same page you can change Security validation expires, tile also
Max no of Alert are default :500
you can change this no.
Default Quota Template.
If it is no noquota, you can data with out limit
if it is personal site: 100 Mb limit
SharePoint 2010 Customizing the Access Denied Message (AccessDenied.aspx)
Open below Page, and add the and add Custom Text under <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\AccessDenied.aspx
SharePoint Search result Refinement count using search API
Using below api we can get search result refinement count.
I am search for Bill Gates, and file type is based on my requirement...
You can find below...
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("pptx")'
<d:RefinementCount m:type="Edm.Int64">43373</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("docx")'
<d:RefinementCount m:type="Edm.Int64">32977</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("msg")'
<d:RefinementCount m:type="Edm.Int64">14322</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("pdf")'
<d:RefinementCount m:type="Edm.Int64">6602</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("html")'
<d:RefinementCount m:type="Edm.Int64">19587</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("zip")'
<d:RefinementCount m:type="Edm.Int64">2219</d:RefinementCount>
I am search for Bill Gates, and file type is based on my requirement...
You can find below...
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("pptx")'
<d:RefinementCount m:type="Edm.Int64">43373</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("docx")'
<d:RefinementCount m:type="Edm.Int64">32977</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("msg")'
<d:RefinementCount m:type="Edm.Int64">14322</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("pdf")'
<d:RefinementCount m:type="Edm.Int64">6602</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("html")'
<d:RefinementCount m:type="Edm.Int64">19587</d:RefinementCount>
https://SPO/search/_api/search/query?querytext='Bill Gates'&refiners='filetype'&refinementfilters='filetype:equals("zip")'
<d:RefinementCount m:type="Edm.Int64">2219</d:RefinementCount>
Subscribe to:
Posts (Atom)