How to rename the SharePoint Document Library existing file name using Web service

Hi,
How to rename the SharePoint Document Library existing file name using SharePoint Web service.
Is it possible. How could i do it?
Thanks & Regards
Poomani Sankaran

Hi,
Lists.UpdateListItems Method
would be helpful for your requirement.
Here is a blog with code demo for your reference:
http://blogs.msdn.com/b/knowledgecast/archive/2009/05/20/moss-using-the-list-web-service-to-rename-a-file.aspx
Best regards,
Patrick
Patrick Liang
TechNet Community Support

Similar Messages

  • How to grant anonymous access on sharepoint document library/list only not for web application

    Hello
    How to grant anonymous access on sharepoint document library/list only not for web application.I have claim based sharepoint site and has to be but i want to grant access on document library/list only.Is this possible?
    Thanks
    Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.

    As i am using following code
    SPSite site = SPContext.Current.Site;
                SPWeb web = SPContext.Current.Web;
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    using (SPSite ospSite = new SPSite(site.ID))
                        using (SPWeb webs = ospSite.OpenWeb(web.ID))
                            // Enable anonymous access on web application
                            webs.AllowUnsafeUpdates = true;
                            SPUrlZone urlZone = SPUrlZone.Default;
                            SPWebApplication specifiedWebApplication = ospSite.WebApplication;
                            SPIisSettings iisSettings = specifiedWebApplication.IisSettings[urlZone];
                            //iisSettings.AuthenticationMode = AuthenticationMode.Windows;
                            iisSettings.AllowAnonymous = true;                       
                            specifiedWebApplication.Update();
                            // Get document library collection here and fetch all the document urls
                            SPDocumentLibrary docLib = (SPDocumentLibrary)web.Lists["Documents"];
                            if (docLib != null)
                                docLib.BreakRoleInheritance(true, false);
                                docLib.AllowEveryoneViewItems = true;
                                docLib.AnonymousPermMask64 = SPBasePermissions.ViewPages | SPBasePermissions.OpenItems | SPBasePermissions.ViewVersions
                                    | SPBasePermissions.Open | SPBasePermissions.UseClientIntegration | SPBasePermissions.ViewFormPages | SPBasePermissions.ViewListItems;
                                //docLib.AnonymousPermMask64 = SPBasePermissions.EmptyMask;
                                docLib.Update();
    Should working but getting access denied......i am totally stuck at this point.
    Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.

  • How to embed the Word Document and PDF file into Crystal report?

    How to embed the Word Document and PDF file into Crystal report?
    I have word doc which having 10 pages. I need to show all of the 10 pages at a time. I tried OLE object but problem is it shows only one page.
    Is there any solution to show word doc / PDF file in CR?

    Symptom :
    When embedding a pdf document into a Crystal Report, only the one page shows.
    Reproducing the Issue
    Environment:
    Crystal Reports OLE object
    Cause
    An OLE object only displays the first page.
    Resolution
    Embed multiple objects, one for each page
    Or
    Use a hyperlink to the object instead
    Hope this helps!
    Regards,
    Vinay

  • How can I list my iphoto library by file name only?

    How can I list my iphoto library by file name only?

    There are two apps that can do that for your.
    1 - the better of the two is  iPhoto Library Manager.  You will have to manually select those Events in Library A that are not in Library B and copy them to B.  Then do the same for B to A.  This also copies both the original and edited versions, keywords, titles, descriptions, faces and places.
    2 - the second app is SyncPhotos.  This one is automatic and will copy the original images in A that are not in B into B and the same for B to A. This does not copy edited versions or any of the metadata, i.e. keywords, etc.

  • How to track the sharepoint documents from MS Dynamics end???

    Hi,
    I want to track the SharePoint documents from MS Dynamics CRM end.
    When the document is added or deleted i need to show the message that docuement is added at so and so document library.
    If i use event receivers what else i need to do after that.
    Any suggestions or solution for/on this.
    Thanks,
    Jiteendra SapathiRao.
    Jitendra.S

    Hi,
    To track the added or deleted event of a SharePoint Library, I would suggest you use workflow which can be triggered when there is file added or deleted, then we can send an
    email for notification.
    Send email in a workflow:
    http://www.youtube.com/watch?v=nNxD82KiUhQ
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to read the data in a txt file on a web site?

    I want to extract the numbers located in txt files on a web site. It's a normal url. Not a ftp.
    Does anyone know how to do it?

    Hi Tom,
    What do you want to extract from the text file??
    I wanted to extract an IP address from a pearl script from my FTP server and this was the vi that I used .I dont know if you are trying to do the same?
    Here is the vi.It is in LV 7.1
    Hope its helps .
    Good luck.
    ohiofudu.
    Certified LabVIEW Architect
    Certified TestStand Developer
    Attachments:
    PublicIP-Adresse.vi ‏31 KB

  • What is the best way to deploy application that uses web services?

    Hi all,
    I'm having some problems figuring out the best way to deploy our app now that we've switched over to using web services.
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like.
    Here's a little background:
    We have a large PowerBuilder/Oracle application. The db consists of over 500 tables and the client consists of several thousand PB components. A user creates "transactions" which contain a series of "sub-transactions" within. Most of the data is collected and stored locally in the client in a series of datastores. When the "finalize" happens, the records are validated and sent to the database.
    We are in the process of moving each of the subtransactions (currently in the PB client) into subPROCESSES on a java project. We are using the JAX-WS framework to develop the web services in Netbeans. These web services aren't much more than remote xml as the messaging technology. For writing data back to the database, we are using the Java Persistence API to function outside of an EJB container but will shortly be migrating to the Glassfish application server to use several of the EJB container frameworks including the EntityManager.
    We haven't attempted any type of deployment and are unsure of where to start. Any suggestions would be so helpful and appreciated!
    Thanks!
    Edited by: doubleEspresso on Jan 10, 2008 8:06 AM

    >
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like. >Correct, while Java Web Start has 'web' in the name, it has little if anything to do with web applications - certainly not providing much toward their installation. It is for launching rich client GUI based (AWT, Swing, SWT..) applications onto the end-user's desktop.
    There are some parts of JWS that might seem peripherally useful to the installation of a web-app., but it is really not a 'good fit'.
    >
    ..Any suggestions would be so helpful and appreciated!>You might try the forums for the 'web tier' APIs.
    <http://forum.java.sun.com/category.jspa?categoryID=20>
    Or perhaps the forum 'Java Technologies for Web Services' (under 'enterprise technologies')
    <http://forum.java.sun.com/forum.jspa?forumID=331>
    This one in 'BigAdmin' seems particularly relevant, 'Set up and Deploy'
    <http://forum.java.sun.com/forum.jspa?forumID=550>

  • How to create a Sales Lead and Sales Lead Contact using Web Services

    Hi,
    I am working on integration of sales lead with third party application. I want to create a sales lead and sales lead contact using web services.
    The question is What WSDLs should I use to create Sales Lead and sales lead Contact? And What are the required parameters to pass to that WSDL?
    Please let me know if any information required.
    Thanks and Regards,
    Jason

    Hi,
      Sample soap messages for creating Sales Lead ::
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/types/" xmlns:lead="http://xmlns.oracle.com/oracle/apps/marketing/leadMgmt/leads/leadService/" xmlns:lead1="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/" xmlns:not="http://xmlns.oracle.com/apps/crmCommon/notes/noteService" xmlns:not1="http://xmlns.oracle.com/apps/crmCommon/notes/flex/noteDff/">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:createSalesLead>
             <typ:salesLead>
                <lead:Name>Lead Created For Migrration Test4</lead:Name>
                <lead:Rating_c>A</lead:Rating_c>
             </typ:salesLead>
          </typ:createSalesLead>
       </soapenv:Body>
    </soapenv:Envelope>
      Sample soap messages for creating Opportunity ::
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/sales/opptyMgmt/opportunities/opportunityService/types/" xmlns:opp="http://xmlns.oracle.com/apps/sales/opptyMgmt/opportunities/opportunityService/" xmlns:rev="http://xmlns.oracle.com/apps/sales/opptyMgmt/revenues/revenueService/" xmlns:not="http://xmlns.oracle.com/apps/crmCommon/notes/noteService" xmlns:not1="http://xmlns.oracle.com/apps/crmCommon/notes/flex/noteDff/" xmlns:rev1="http://xmlns.oracle.com/oracle/apps/sales/opptyMgmt/revenues/revenueService/" xmlns:act="http://xmlns.oracle.com/apps/crmCommon/activities/activitiesService/">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:createOpportunity>
             <typ:opportunity>
                <opp:Name>Test Opportunity</opp:Name>
             </typ:opportunity>
          </typ:createOpportunity>
       </soapenv:Body>
    </soapenv:Envelope>
    Please revert if you have any clarifications.
    Best Regards,
    Mohd Sabeer

  • Page not found Error while creating new sub folder in the Sharepoint Document Library

    Hi All,
    I am a site collection administrator when i creating new sub folder under the folder in document library, am getting below error
    "Page not found  The
    page you're looking for doesn't exist."
    please help me, Thanks in advance!!
    Srinivas

    Hi Srinivas,
    Please check ULS log for more useful information when this error occurs.
    Please also check if this issue could be reprodued in other libraries, if not, you can use the new library instead.
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to get the Current Document Library View Name from Code - C#

    Hi,
    I have a requirement where i have a doc lib - doclib and two view view1 and view2.The columns vary for the two views.
    Now a user can select and of the two views and do a particular operation.
    I need to programatically find out which view the user is currently at.Now i know that just by picking the URL i can understand if its doclib/view1.aspx or doclib/view2.aspx. But this is not possible as my scenario
    because of an architecture limitation of my project.
    Is there any way to find out the view like libraray.currentview or using spview.
    I need to make so column updates based on the view selected. 
    Please help.

    Try below code as you in the SharePoint context.
    Guid siteId = SPContext.Current.Site.ID;
    Guid webId = SPContext.Current.Web.ID;
    SPSecurity.RunWithElevatedPrivileges(delegate()
        using (SPSite site = new SPSite(siteId))
            using (SPWeb web = site.OpenWeb(webId))
                // Your code here
    Hope this will helps you
    Senthilrajan Kaliyaperumal

  • How to check the given path is existing or not using sp_cmdshell

    Hi All,
       I am passing one path to the stored procedure, before executing code i want to check whether the path is given existing or not .
    By using sp_cmdshell we can know whether files are there are not but in case of my scenario i want to know the directory(folder) is existing or not because the source folder may be blank so it will not get the files there so stored procedure returning the
     File Not found as output.
    following is the code i am trying to retrieve this please suggest any other way to solve it.
    Create table #tableExists  (isValid varchar(255))
    Declare @path varchar(255)='DIR "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA "/B'
    INSERT INTO #tableExists 
    EXEC xp_cmdshell @path
    select * from #tableExists
    Regards,
    Niraj Sevalkar

    You can try the other two undocumented extended stored procedures as well:
    --EXEC master.dbo.xp_subdirs @pathName
    EXEC Master.dbo.xp_fileexist @pathName
    EXEC Master.dbo.xp_DirTree @pathName,1

  • How to make the stage transparent for SWF file being used in Dreamweaver

    I have a SWF file in my Dreamweaver site, that plays correctly. The problem is that the stage is white and we would like it to be transparent. Searching the archives the following advice was given:
    in your html embedding code you need to set the wmode parameter to be "transparent"
    I'm wondering if this is the code in Dreamweaver or is this done in Flash. I'm working with CS5. Below is the code that matches the SWF file in Dreamweaver. I did change the wmode value from "opaque" to "transparent" and it didn't work.
    Thanks for any assistance.
    Sherri
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="650" height="400" id="FlashID" title="Convergence Gathering Title">
                 <param name="movie" value="Flash/gold_dust_title.swf" />
                 <param name="quality" value="high" />
                 <param name="wmode" value="opaque" />
                 <param name="swfversion" value="6.0.65.0" />
                 <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                 <param name="expressinstall" value="Scripts/expressInstall.swf" />
                 <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                 <!--[if !IE]>-->
                 <object type="application/x-shockwave-flash" data="Flash/gold_dust_title.swf" width="650" height="400">
                   <!--<![endif]-->
                   <param name="quality" value="high" />
                   <param name="wmode" value="opaque" />
                   <param name="swfversion" value="6.0.65.0" />
                   <param name="expressinstall" value="Scripts/expressInstall.swf" />
                   <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                   <div>
                     <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                     <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                   </div>
                   <!--[if !IE]>-->
                 </object>
                 <!--<![endif]-->
               </object>

    Yes, change this to "transparent" in ALL the places where wmode is shown
    <param name="wmode" value="opaque" />
    Second, be sure that there is in fact nothing covering the entire stage, like a big white rectangle.
    Also, what is directly behind the .swf once it's on the Web page? If the background color of that page or the <div> that the .swf is in is white..... well then then .swf can have a transparent background but then the white from the Web page just shows thru.... so there's still a white background.
    Be sure there is a non-white background on the Web page...
    Window Mode (wmode) - What's It For?
    There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    Best wishes,
    Adninjastrator

  • How to parse the message received into  WF_WS_JMS_IN queue agent from web service

    Hi,
    I am using Service Invocation Framework to raise business event and call the external web services.  The web service is called and we got the synchronous response back to EBS into a inbound agent WF_WS_JMS_IN.
    Once the message is received here then I want to grab it and process further in my PL/SQL and update into the staging tables. 
    Could you please guide me how I can achieve this?
    Regards
    Khaleel

    Hi;
    Please check below which could be helpful for your issue:
    How To Troubleshoot Service Invocation Framework(SIF) In 12.1.1 Integrated SOA Gateway (Doc ID 736404.1)
    Regard
    Helios

  • Integrate Document Builder to SRM PPS using Web Service

    Well, if what you want to see is the "Document Builder" link from "Related Links" of your RFx document, what you need to do is to configure it in IMG :
    SPRO - SRM Server >> Cross-Industry Functions >> Integration with Document Builder >> Activate Document Builder Integration
    There you should specify an entry with the following:
    DB DocTypes: Object Type EBP Local RFx
    And the URL to the Doc Builder webDynpro application in the format of https://<server:port>/sap/bc/webdynpro/ipro/wd_docb
    And be sure to check that checkbox marked with "+" on the column header.

    Hi Jay,
    Ok thats done. Still i we need to do the Web Service activation through SOAManager rite.  Correct me if i am wrong.
    There are 2 parts to look into it.
    1.  We can use the OLD Proxy Method used as Web Service.
    2.  Integration with SAP XI. (Note: PID is available in System Landscape)
    We took the discussion to go with OLD Proxy Method used as Web Service for now, Since its working in Sandbox.
    We created a client proxy ZDOCB in SE80 and activated it using the wizard.
    we created a Logical Port in LPConfig.
    And when checking for Web Service in WSADMIN, we are not able to find the Old Proxy used as Web Service.
    We can use SOAManager instead.  Since its not Configured in Sandbox, we went and configured in the old transaction itself (WSADMIN, LPCONFIG).
    If its feasible, can we do in SOAManager also.
    Objective:
    to get the Document Builder reflected in the Related links of RFx and Contract. 
    Regards,
    Freemind

  • Document search by file name using TREX

    Hello,
    We have implemented searching of documents using TREX. At the moment TREX finds all documents where search term is included BOTH in the file name (title) AND the content of the document. We need to limit the search results only to the documents where the search term is a part of the file name/title and NOT the content.
    I know that searching for the term in the title and content is a standard functionality. Is there any way to limit searching for documents only to the title? Are there any parameters that I could place in the KM Document iView in the property 'query' that will limit searching to the file name?
    We use SAP NW 7.0 SP18.
    Best regards,
    Beata

    Hi Bobu,
    I have followed the suggested solution with the predifined properties - "cm_displayname(/default)" - in a new Search option set and a new Search  Component set containing only two aliases: search_predefined_props and standard_search, but it seems that searching is using the standard_search alias anyway. If I remove it from the search component, I do not have a full-search field for entering the value.
    BR
    Beata

Maybe you are looking for

  • Imported Airport Extreme useless in Germany?

    Hi, i´ve got a question around the use of an imported Airport Extreme from the US. My brother is on the way back to Germany an he used in the last months the "US" Version of the Airport Extreme. Can he use the Airport also in Germany? Maybe with a Fi

  • ABSO Tranaction type Error ?

    hi all, 1. When i am trying to execute the Transaction ABSO  i am getting the error as Transaction type 190  is wrong What is the transaciotn typr i have to use it ? I am getting the error as "Asset under construction not completely Credited" 2. Need

  • Travel validity date

    Hi How to set validity date for employee to make travel request and travel expense? for example, they have to enter travel request min 1weeks before they actual travel time. or they have to enter travel expense report after 3weeks they travel time, i

  • Newbie to Java

    I'm writting a program for school and I know the answer is simple(I hope) I just can't see it. I'm using TextPad and I've been able to debug my programs with no problem - until now. Here's the error I get: unexpected type required : variable found :

  • I lost 2 folders in bookmarks and can not find them in time machine

    i have lion on my mac book all of a sudden I am missing 2 folders in my bookmarks, when i go to time machine i can not find them even thought i have gone back a few week, any suggesions