Manage Sharepoint 2013 list email settings using CSOM - sharepoint-2013

I am migrating a code written using server object model to CSOM. The server object model has code that deals with creating lists with incoming email enabled. It also has code to retrieve the email address of the list(s).
I want the CSOM equivalent of
while setting:
list.EmailAlias = "abc#abc.com";
While retreiving:
list.CanReceiveEmail
list.EmailAlias
I have tried to find reference on official site and other literature on the internet but found nothing. That's why I have turned to SO for an answer.

In csom List class, there is no property which equals to "CanReceiveEmail","EmailAlias", checked from Official document:
List members
If you are using SharePoint On-Premise, you can create a web service with SSOM and call with Client Script:
Create ASMX Service For SharePoint

Related

How to create subsite with custom layout in sharepoint 2013?

SubSite creats this way in sharepoint 2013
Image 1
But i want create subsite in step by step. similar to 2nd image.
Image 2
if anyone have a solution or Reference or a word search in google how to create subsite in that way then pls share with me.
You can achieve above by following below:
Create a list with the fields mentioned in the snapshot
Modify the form with Nintex, InfoPath or Client side rendering depending upon availability & comfort in mentioned options
For sub-site creation, you can either JS CSOM, web-services etc.
Follow this link for info on how to create sub-site using web-services
Follow this link for info on how to create sub-site using JS CSOM
One done, you can ask user to request site using newform.aspx of the list
Pls. note that I've not tested the code

Access 2013 on SharePoint 2013 Online - Multiple Questions

Very long time since I even look at Access.. but on SPO, with a database on Azure it seems really nice ... wondering tho..
Any way to remove that left pane with the Databases from the UI?
Set a list button to go to a URL formatted using selected column fields in the row?
Join in oData datasource like SharePoint Online List? Validate against SharePoint list Data? set dropdowns to lookup using SharePoint list data?
Any file upload control and upload to a sharePoint Library? A way to add metadata to a file and do some validation - like does file exist with this metadata. Dynamically rename files to some unique string.
Perform complex field validation with REGEX?
Secure the application and database to SharePoint groups.
What's the business language of choice? Not clear on how to edit and save macros. Can it make calls to webservices?
Any way to change that obsure url you get for the App in SharePoint 2013 Online?
Any way to remove that left pane with the Databases from the UI?
No, but there is a workaround. Right click on the tables you don't want to be visible, and select the option to hide them individually. You can also rename the table-views in that pane, so they appear to have more user-friendly names for your end-users.
Set a list button to go to a URL formatted using selected column fields in the row?
The best way to achieve something like this would be using a hyperlink control attached to a calculated column in your table/query where the URL and display text are computed and linked together automatically. If you need list functionality, you can allow the user to select an item in the list, and have that automatically update a separate hyperlink control to provide the link functionality.
Join in oData data source like SharePoint Online List? Validate against SharePoint list Data? set dropdowns to lookup using SharePoint list data?
Access 2013 Web Apps cannot pull external data at this time. Access 2013 Web Apps only accept incoming data connections e.g. a MS-SQL or oData service can use industry-standard methods to connect to your Access Web App and validate data.
Any file upload control and upload to a SharePoint Library? A way to add metadata to a file and do some validation - like does file exist with this metadata. Dynamically rename files to some unique string.
The only file support currently provided by Access Web Apps is in the form of images uploaded to an image field inside a table. This is useful to add people's photos to their records in a "contacts" table, and things like this. Other than that, you will need to use a custom SharePoint library interface for this type of functionality.
Perform complex field validation with REGEX?
Not currently supported to my knowledge.
Secure the application and database to SharePoint groups.
This functionality is handled within SharePoint, not within Access or SQL Azure. Secure your SharePoint site collection as needed, and these security settings will apply appropriately to read and/or write operations by SharePoint users within your database. e.g. a SharePoint "visitor" (read-only access) will not be able to edit any data in your database - only view it.
What's the business language of choice? Not clear on how to edit and save macros. Can it make calls to web-services?
In Access 2013 Web Apps, VBA is no longer supported. Macros have to be written using the GUI "wizardy" macro interface, which greatly limits the scope of available operations. As a result, you cannot perform more complex tasks, such as making calls to external web-services. However, for basic data operations and UI operations, the GUI macro interface serves the purpose well.
Any way to change that obscure URL you get for the App in SharePoint 2013 Online?
The URL is randomly assigned when you create an Access 2013 Web App, but is guaranteed to never change after it is assigned. Therefore, you could reasonably use your DNS/web-host to "mask" the URL with a CNAME or other type of HTTP redirection. There are many ways to do this, and they are all external to SharePoint and Access 2013 Web Apps, so it's up to your DNS and web providers to support this.

SP 2013 Online Client Object Model limitation 3M on uploading a file from a SharePoint APP

I tried to upload large files (over 3M) to SharePoint 2013 Online in a provider-hosted APP (OAuth authentication by passing “StandardTokens”). I tried many ways, but there is no way to work for so far.
Use SharePoint Client Model below, but in SharePoint online, the limitation of file size is about 3M. Other people have the similar issue
microsoft.sharepoint.client.file uploadedfile = folder.files.add(filecreationinformation);
clientcontext.load(uploadedfile);
clientcontext.executequery();
Tried to increase MaxReceivedMessageSize according to http://msdn.microsoft.com/en-us/library/ff599489.aspx, but I cannot call Server Object Model to do it with SharePoint Online. Tried to find if I can change the settings through PowerShell to SharePoint Online, but there is no command exposed for MaxReceivedMessageSize in Windows PowerShell for SharePoint Online cmdlets .
I tried a workaround to use WebDAV in Uploading large files to Sharepoint 365. It works when I use claims based authentication by providing user name and password. However, in provider-hosted APP, I cannot use this kind of authentication, and need OAuth authentication work. I added "Authorization", "Bearer " + accessToken in HTTTP headers according to http://code.msdn.microsoft.com/officeapps/SharePoint-2013-Use-HTTPs-dc7227a7. It works well for Web Service calls, but it doesn’t work for WebDAV calls. Here is the code.
request.Headers.Add("Authorization", "Bearer " + accessToken);
I tried Microsoft.SharePoint.Client.File.SaveBinaryDirect() in Client Model. There are many posts that indicate SaveBinaryDirect() doesn’t work due to cookies being attached to request too late. I got http 403 error on SaveBinaryDirect().
"917656; Access denied. Before opening files in this location, you must first browse to the web site and select the option to login automatically."
Basically, I tried the four ways above, but all failed. It is such a common scenario to upload a little bit large file (3M) to SharePoint 2013 Online in an APP, but there is no solution for me yet. Would you please help me find a way out?

creating web service for querying TFS

I have been tasked with creating a web service(usingVS2010) to query TFS (2010) by the workitem number. The user would access the web service, then type in the workitem number and project name and hit a go button. This would call the web service, retrieve the title, and description and display it for the user on a seperate application. So starting this process I thought I would create a simple console application that does the same thing. I was able to connect to the server and I am able to see the collection of project that exists. What I am looking for is some help in querying the Server so that I can type in a number and get a response in my console. Does anyone have any examples, or direction or websites? While I wait for an answer I will be searching the web. Thanks in advance.
You'll want to use the TFS SDK to query work items programmatically.
Ewald Hoffman has posted an excellent example of how to get a work item by ID:
Part One discusses how to get connected to your server
Part Two shows how to query for a work item by ID.

Using information from User Profiles Outside of SharePoint

I'm creating website that creates a page for each person in our department with their contact information. The page can then be linked to from a qr code on a business card.
What is the best way to get the information out of their SharePoint profiles?
edit: I'm not very familiar with creating stuff in Visual Studio. I'm using Ruby on Rails for the website and I've read SharePoint has REST services which would work great but I can't seem to figure out how to access the User Profile information.
You don't need to use Visual Studio. You just need to be able to use a SOAP based web service from Ruby. The documentation for the User Profile web service is here:
http://msdn.microsoft.com/en-us/library/aa980957(office.12).aspx
You can use the SharePoint UserProfile WebService to achieve this.
http://msdn.microsoft.com/en-us/library/ms494053.aspx
Or, if you need something more specific, you could create your own WebService which access's the UserProfile API like this -
using (var site = new SPSite("http://yourserver"))
{
var userProfileManager =
new UserProfileManager(SPServiceContext.GetContext(site));
var userProfile =
userProfileManager.GetUserProfile("domain\accountName");
//iterate the userprofile properties
foreach (UserProfileValueCollection prop in userProfile)
Console.WriteLine(prop.Value);
}