sharepoint

What arguments does UpdateListItems take when calling Sharepoint web service from VBA?

天大地大妈咪最大 提交于 2019-12-22 10:12:10
问题 I'm trying to add an item to a Sharepoint list using VBA. I don't want the user to have to install anything, so I'm just using Microsoft Soap Type Library. Code as follows: Sub test() Dim soap As MSSOAPLib.SoapClient Dim XMLstr As String Dim listid As String Dim listname As String Set soap = New SoapClient Call soap.mssoapinit(bstrwsdlfile:="http://wss/mySharepointSite/_vti_bin/lists.asmx?wsdl") listid = "{e285aa1a-my-list-ID-d446cdbf091e}" listname = "thisList" XMLstr = "<Method ID='1' Cmd=

“A specified logon session does not exist. It may already have been terminated.” when trying to copy a file using WindowsIdentity.Impersonate

試著忘記壹切 提交于 2019-12-22 10:12:04
问题 I am trying to copy a file from sharepoint to a unc path. I am using the following code: var id = new WindowsIdentity("administrator@mysite.com"); var p = new WindowsPrincipal(id); var wic = id.Impersonate(); File.Move(oldName, newName); wic.Undo(); oldname is C:\test.txt newName is \\server\folder\test.txt I am getting the error A specified logon session does not exist. It may already have been terminated. How do I go about removing this error OR copy a file from A to B(UNC path) using

How do I supply credentials to execute a query on a server that's part of another domain?

吃可爱长大的小学妹 提交于 2019-12-22 10:09:38
问题 I am doing work for a client that has a server on his domain. My workstation is on my own domain. I typically VPN into the client network using my client domain username and password. The problem with the below query is that I get a 401 Unauthorized access error when I execute the query, presumably because the wrong credentials are being sent. The client has suggested supplying my client domain credentials, perhaps wrapped in a #if DEBUG so that the code will work properly in development

Cannot open sharepoint UNC path unless already opened through Windows Explorer

谁说我不能喝 提交于 2019-12-22 09:38:51
问题 I'm hoping somebody can shed light on this, because it has been driving me to distraction. I have a script which will save the reports it creates to a sharepoint document library via UNC path, if the path exists, otherwise it saves to the UNC path of a network drive location as a fallback. I've noticed that checking with test-path , saving (through an msexcel COM object) or trying to open the folder in windows explorer using invoke-item only work if I had already accessed the sharepoint site

Using the HTTPClient and Sharepoint 2013 REST APIs to get Documents

◇◆丶佛笑我妖孽 提交于 2019-12-22 09:36:17
问题 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

Manually start SharePoint timer job

末鹿安然 提交于 2019-12-22 06:40:34
问题 I'd like to invoke a timer job installed on a SharePoint server manually. What would be useful is something along the lines of an stsadm command. My scenario is, I've deployed a solution with a bunch of features to a customers server. I don't want to wait for the weekly schedule to kick a particular timer job to life. I would like to just punch in a command to get the specific job to run immediately. Obviously in the development enviroment I've got the schedule set for a few minutes but I

How can you hook a SharePoint 2007 feature into the Application_Start of a site?

ぃ、小莉子 提交于 2019-12-22 06:33:58
问题 I was wondering if there is a good way to hook into the Application_Start of a SharePoint 2007 site when developing a feature? I know I can directly edit the Global.asax file in the site root, but is there a way to do this so that it gets deployed with the feature? Thanks! 回答1: This is actually possible, but it doesn't involve the Global.asax file. Many of Microsoft's examples demonstrate wiring code in via the Global.asax, but this is not a best-practices approach when it comes to SharePoint

Sharepoint Search Property Weighting

谁说胖子不能爱 提交于 2019-12-22 06:11:49
问题 I'm using the code listed here: http://msdn.microsoft.com/en-us/library/ms553069.aspx With an additional line added as a call to .update() after the property is set in order to save the changes, but even with a weight of 10,000 the search results for my property are still at the bottom, particularly below title. Is there some other things that need to be done in order to get the weighting to propogate? I've also tried setting the title, author, and filename to 0, setting the property

Sharepoint Search Property Weighting

拟墨画扇 提交于 2019-12-22 06:11:15
问题 I'm using the code listed here: http://msdn.microsoft.com/en-us/library/ms553069.aspx With an additional line added as a call to .update() after the property is set in order to save the changes, but even with a weight of 10,000 the search results for my property are still at the bottom, particularly below title. Is there some other things that need to be done in order to get the weighting to propogate? I've also tried setting the title, author, and filename to 0, setting the property

Opening a xls spreadsheet programatically in C# from a SharePoint site in Read / Write mode

和自甴很熟 提交于 2019-12-22 05:33:40
问题 I have written a procedure that will open a xls from a local disc, refresh the data in it and then save it again. This works fine. The problem occurs when I replace the filename to point to a SharePoint site. It opens the file fine. Refreshes the file, but when it trys to save the file it throws an exception with the message "Cannot save as that name. Document was opened as read-only.". If I try and save the file with a different filename then it works fine. Does anybody know what I am