sharepoint-2013

SharePoint 2013 REST How to select a look up field and also filter based on look up field?

自闭症网瘾萝莉.ら 提交于 2019-12-03 21:40:10
I can't select look up field in my SharePoint 2013 List. also I can't filter base on a Look up field. for example I have List with Name Test and this list has fields: Title, Company, Province the Company and Province is look up fields I want to filter based on Province which is a look up field using REST query it gives error: my query: https://TestServer/sites/AIB/OBC/_api/web/lists/getByTitle('Test')/items?$select=Province/Title&$expand=Province&$filter=Province/Title eq 'ABC' it gives error when I put the URL in My browser for testing it gives the blow error: <m:message xml:lang="en-US">The

how to add user to sharepoint list item user field using REST api in sp2013?

ぃ、小莉子 提交于 2019-12-03 12:55:49
问题 I have a basic sharepoint list with people field in it, now I am trying to use rest api to add new list item and trying to set person field to my alias but it is not working and throwing me below error. looks like it is problem with how my user data is passed but I could not able to find any help online. can you guys help with the correct way to make this call, any help is greatly appreciated. my Code---------- function runAjax(){ var d = JSON.stringify({"__metadata":{"type":"SP.Data

Connect to SQL Azure containing backend for MS Access Web App

大城市里の小女人 提交于 2019-12-03 12:32:42
问题 Ok not sure what to enter in the subject line so apologies if it stands unclear. I created a simple web app using MS Access 2013. It simply had one table with sample data in it. The I launched it to my share point. Before we go ahead, I would like to tell you that I am using Office 365 enterprise version where we need to admin everything like Lync/SharePoint/Exchange etc. So as per Microsoft blogs and articles and discussions all over, and even the following screenshot suggests that the data

How to get version of SharePoint installed?

亡梦爱人 提交于 2019-12-03 05:42:54
How can I get the version of SharePoint that is installed on my server? It's crazy that there is no easy way to find out what Edition (SKU) of SharePoint 2013 are you running. To find out, you have to dig the registry: Open Regedit Navigate to HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\InstalledProducts Compare the guids with these: C5D855EE-F32B-4A1C-97A8-F0A28CE02F9C -- SharePoint Server 2013 CBF97833-C73A-4BAF-9ED3-D47B3CFF51BE -- SharePoint Server 2013 Preview B7D84C2B-0754-49E4-B7BE-7EE321DCE0A9 -- SharePoint Server 2013 Enterprise 298A586A-E3C1-42F0-AFE0

How to get request digest value from provider hosted app?

半城伤御伤魂 提交于 2019-12-03 04:20:53
问题 I am developing SharePoint 2013 Provider hosted app using javascript REST Api. In order to perform create (POST), or update (MERGE) operations on sharepoint items I need to set the 'X-RequestDigest' header with the request. When in SharePoint-hosted apps I was able to use the http://contoso.sharepoint.com/SharePointHostedApp/_api/contextinfo service to retrieve the request digest value; however, I am having trouble getting that value when in a provider hosted app. The first difference of

how to add user to sharepoint list item user field using REST api in sp2013?

落花浮王杯 提交于 2019-12-03 03:54:13
I have a basic sharepoint list with people field in it, now I am trying to use rest api to add new list item and trying to set person field to my alias but it is not working and throwing me below error. looks like it is problem with how my user data is passed but I could not able to find any help online. can you guys help with the correct way to make this call, any help is greatly appreciated. my Code---------- function runAjax(){ var d = JSON.stringify({"__metadata":{"type":"SP.Data.RepositoryItem"},"Owners":"-1;#v-mynme@microsoft.com"}); jQuery.ajax({ url: "https://microsoft.sharepoint.com

Connect to SQL Azure containing backend for MS Access Web App

大城市里の小女人 提交于 2019-12-03 03:49:21
Ok not sure what to enter in the subject line so apologies if it stands unclear. I created a simple web app using MS Access 2013. It simply had one table with sample data in it. The I launched it to my share point. Before we go ahead, I would like to tell you that I am using Office 365 enterprise version where we need to admin everything like Lync/SharePoint/Exchange etc. So as per Microsoft blogs and articles and discussions all over, and even the following screenshot suggests that the data stored in the Office 365 is stored in a SQL Azure database for office 2013 web app. So as the next step

Optimal/preferred way to call 'SP.ClientContext.executeQueryAsync' in SharePoint

左心房为你撑大大i 提交于 2019-12-03 03:02:42
I have been learning client-side object model and came across the method executeQueryAsync . I found there are quite a few ways to call this method. Some of the one I found were these: var context = new SP.ClientContext.get_current(); // Option 1 context.executeQueryAsync( function(sender, args){ }, function(sender, args){ } ); // Option 2 context.executeQueryAsync( Function.createDelegate(this, _onSucceed), Function.createDelegate(this, _onFail) ); // Option 3 context.executeQueryAsync( Function.createDelegate(this, this._onSucceed), Function.createDelegate(this, this._onFail) ); // Option 4

Creating Folders programmatically in SharePoint 2013

百般思念 提交于 2019-12-03 02:14:48
Currently I have code that creates a Folder in the Documents directory when run: using (var context = new Microsoft.SharePoint.Client.ClientContext(sharePointSite)) { context.Credentials = new Microsoft.SharePoint.Client.SharePointOnlineCredentials(user, password); Web web = context.Web; Microsoft.SharePoint.Client.List docs = web.Lists.GetByTitle(<upper level folder>); docs.EnableFolderCreation = true; docs.RootFolder.Folders.Add(folderName); context.ExecuteQuery(); return true; } I am having troubles creating sub folders in folders that I have created using this code already. So like if I

SharePoint REST Get User Title in a single REST query

只谈情不闲聊 提交于 2019-12-03 01:47:40
I have a list which has a "People and Group" column. when I query the rows using REST, I get user Ids listed in this column. I found this article which will help me in converting each id to a title http://www.codeproject.com/Articles/692289/How-to-Get-Login-Name-and-Display-Name-using-Sha But I am wondering if there is a way in which I can get the user title by a single REST call (rather than first get the ID and then making another call to convert the ID into the user display name and the login name) Using $expand OData operator you can specify that the request returns projected fields from