sharepoint-2013

How to copy file using Rest API and javascript in Sharepoint 2013 between site and subsite

天大地大妈咪最大 提交于 2019-12-06 07:21:37
问题 I need to copy file between document libraries. Library A is located in one site and Library B is located in subsite. I know how to copy file between libraries on the same level but the problem is with copying between different level. The code I use to copy file between libraries on the same level. $.ajax({ url : "http://xxx/PWA/_api/web/folders/GetByUrl('/PWA/CopyFromLibrary')/Files/getbyurl('Import.csv')/copyTo(strNewUrl = '/PWA/TargetLibrary/Import.csv',bOverWrite = true)", method: 'POST',

SSIS : How to handle Multi select lookup column values to be inserted in SQL Server Table

前提是你 提交于 2019-12-06 05:35:11
I have a requirement to extract Sharepoint list data and import them in SQL Server Tables. I am able to do this using the SSIS Data Flows including Derived Columns and Data Conversion controls. I am also able to convert Single Line, Multi line, Date, lookup(Single selection) data types to the SQL data types. But now, my question is for Lookup column with Multi Select : What should be the expression used in Derived Column- for converting the data to comma separated values? Below expression I am using to get the ID from lookup column for Single Selection. SUBSTRING(Business,1,FINDSTRING(Business

The proper way to write a SharePoint User to a User Field in a SharePoint list

安稳与你 提交于 2019-12-06 03:37:53
问题 I'm writing a user to a SharePoint list. I've read that the SharePoint User field has a string like this inside of it: userId;#userLoginName I've tried formatting in the same way when writing to a User field, for example when I write this string it works: 9;#i:0#.f|membership|ectropy@example.org But what is strange (to me at least) is that 9;# seems to work or even 9 . Even if I don't pass the userLoginName info at all, the loginId seems to be enough for it to recognize which User I'm talking

Authenticate network credential to access SharePoint site on client object model

旧巷老猫 提交于 2019-12-05 20:16:34
I am working to small app, that is require to bring all users in all groups of given site. I have two sites; SharePoint 2010 running on premisses and SharePoint 2013 online. I am getting credential error... {"The remote server returned an error: (401) Unauthorized."} code. public class Program { static void Main(string[] args) { string _siteURL = "https://intranet.co.uk"; NetworkCredential _myCredentials = new NetworkCredential("user", "password", "https://intranet"); ClientContext _clientContext = new ClientContext(_siteURL); _clientContext.Credentials = _myCredentials; Web _MyWebSite =

Trying to access hosted SharePoint 2013 from Java app gives me 401 although I use correct OAuth token

喜夏-厌秋 提交于 2019-12-05 19:16:54
I'm trying to access our company SharePoint 2013 instance, which is hosted at ourinstance.sharepoint.com, with small Java web application. I registered application through _layouts/15/AppRegNew.aspx this way: I let SP generate Client ID, Client Secret, to App Domain I set: ourdomain:8443 to Redirect URL I set: https://ourdomain:8443/our-redirect-processing I edited application permissions with _layouts/15/appinv.aspx, where I looked it up by client ID and edited its Permission Request XML to contain: <AppPermissionRequests AllowAppOnlyPolicy="true"> <AppPermissionRequest Scope="http:/

Using the HTTPClient and Sharepoint 2013 REST APIs to get Documents

懵懂的女人 提交于 2019-12-05 14:27:05
I am working in a .NET web application.I am trying to connect to Sharepoint Online Premise to get documents in the "Document Library" by using the HTTPClient and the Sharepoint 2013 REST API . I tested the following rest service in the browser for this , https://site_url/_vti_bin/ListData.svc/Documents which gives the MetaData of all the documents present in the Document Library of the particular web site. Now when i am trying to do the same programmatically by adding a reference to the service URL and by using the following code, TestSiteDataContext ctx = new TestSiteDataContext(new Uri(

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

余生长醉 提交于 2019-12-05 07:26:13
问题 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

Extracting Files from Sharepoint 2013 WSS_Content Database

情到浓时终转凉″ 提交于 2019-12-05 06:18:35
Sharepoint 2013 stores documents in the WSS_Content database in a table called DocStreams. Up until Sharepoint 2010, files where stored in a single row in a VarBinary column. Since Sharepoint 2013, files are stored in multiple rows using Shredded Blob storage. Does anyone know how I can piece together the files from the shredded storage in c#? I have found many exampled online to extract files from SharePoint 2010 and earlier but they only support a files content being stored in 1 row. 来源: https://stackoverflow.com/questions/23717262/extracting-files-from-sharepoint-2013-wss-content-database

Sharepoint 2013 REST API not returning all items for a list

放肆的年华 提交于 2019-12-04 18:33:24
问题 The title states my problem quite exactly. If I try to gather all 400+ items from a list using sharepoint's REST API, I only get first 100. I have read http://msdn.microsoft.com/en-us/library/office/dn292552(v=office.15).aspx and in the "Working with list items by using REST" part, they're stating that The following example shows how to retrieve all of a list’s items. url: http://site url/_api/web/lists/GetByTitle(‘Test')/items method: GET headers: ... I have highlighted word all, because

Error with Dispatcher.BeginInvoke

点点圈 提交于 2019-12-04 16:00:55
I am trying to add an item to a sharepoint list but when i try to save my changes im getting this error with my Dispatcher.BeginInvoke 'Windows.UI.Core.CoreDispatcher' does not contain a definition for 'BeginInvoke' and no extension method 'BeginInvoke' accepting a first argument of type 'Windows.UI.Core.CoreDispatcher' could be found (are you missing a using directive or an assembly reference? ctx.BeginSaveChanges( (IAsyncResult result) => Dispatcher.BeginInvoke( () => ctx.EndSaveChanges(result)), ctx ); Should use the following instead: await Dispatcher.RunAsync(Windows.UI.Core