Change in Office Online File URL property?

When testing our integration with Office Online this morning, it appears something has changed within the /add(<relative_url> endpoint.
Originally, the URL property of that response gave me a relative path that I could plug into getfilebyserverrelativeurl(<relative_url>). The response I'm now getting back is an absolute path that includes the SharePoint domain.
According to the documentation:
Url
String
R
Yes
Gets a value that specifies the relative URL of the file version based on the URL for the site or subsite.
The URL property of a File object is generally suppose to be a relative URL -- according to the FileVersion object.
Can someone confirm this change? And whether or not the URL property is suppose to be absolute or relative? 

Hi,
If you want to use the getfilebyserverrelativeurl method to get the all files from a folder in document library, we can use the relative URL of folder.
Example, we can get all files from the FolderA in Shared Documents(default document library) using this:
https://sharepoint/_api/web/getfolderbyserverrelativeurl('/Shared%20Documents/FolderA')/files
More information:
http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-get-all-the-files-from-the-folder-in-sharepoint-2013/
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.web.getfilebyserverrelativeurl(v=office.15).aspx
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support

Similar Messages

  • [Windows] file.url throw error when application executable in root directory

    Here is the bugbase ticked: Bug#3940278 - [Windows] file.url throw error when application executable in root directory
    If you launch AIR application packaged as bundle from root directory and try to get url property of any file you get IllegalOperationError.
    No matter what file url property you try to get.
    It's a big problem when you distribute your application on CD disks or flash drive.
    I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
    Thanks.

    I checked all deployment descriptions and there are no references to t3://localhost:7001. Few months back, I had the complete clustering setup working on 2 machines and now when I deploy my application on same configuration, it fails with t3://localhost:7001 unreachable error. I created a new cluster configuration on one machine with 2 managed server and it deploys fine. Can not figure out what has changed ?

  • Make shared Onedrive file download automatically (not Office Online)

    How can I make a shared document in OneDrive automatically download to a user not logged in Office 365?
    I want MS Office 2013 file tos download and not show up in Office online.  Is that possible. It happens for MS Office 2003 and pdf files; when "View only" sharing but not with MS Office docx or xlsx files.

    Hi,
    Now I understand your concern.
    I opened your link and the document was opened on Word Online, and I don't know how to download the document directly when opening the link. Since we mainly discuss Office Client questions in this current forum, I thought it was an OneDrive for Business
    client issue. Now I know this issue is about how you want the share link to work from OneDrive for Business in Office 365, to get the more appropriate support, I suggest you post the question in Office 365 Community Forum:
    http://community.office365.com/en-us/f/default.aspx
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here.

  • URL Property of Knowledge Directory Web Document

    I need to change a web link that was submitted to the Knowledge Directory with the Simple Submit. Old URL (http://www.mycompany.asp). New URL (http://www.mycompany.aspx)
    I need to change the 'open document url' and it is not an editable field in the card properties. I tried changing the URL property and it didn't have any effect. The portal kept showing the same old document. When I deleted the property the Portal "freaked" out and bombed. I tried re-adding the URL property to the card and it continued "freaking" out and not working.
    How is one supposed to update the URL for a card? It seems that this is not possible. As a test. Submit a Web Document using Simple Submit for http://www.espn.comand then change the URL property on the card to http://www.plumtree.com the portal continues to open http://www.espn.com:-((((

    There table in portal database called 'ptcards'. Column named 'URL1' holds URLs of submited files.
    Change urls then restart IIS on portal server.
    Boris.

  • Can't open file://-URLs (Links) in Mail or Messages. Adium works. What is wrong?

    Hi, in our office, we send links to documents on our server with file://-URLs. In Yosemite (Mail and Messages) it is no longer possible to open these links via the services menu (open URL). Adium works. Do I have to change something in my Yosemite-Configuration? Thanks for helping. Best regards Michael

    Apple broke the way Mail handles afp:// URL links in Mavericks and has finished breaking Mail in Yosemite by breaking file:// URL links as well.
    AFP urls in Mavericks are mounting as volumes

  • Reflecting the XML Data Changes in the online swf

    Hi pals,
    I am accessing an xml file which is in the server
    continuously with in the distinct time intervals from my swf in an
    online page.
    If I make any change in the xml data it’s not
    reflecting my online page because it’s accessing the xml file
    from offline content.
    How to avoid this? I want my page to be reflected immediately
    when I make any change in my xml file.
    Is there any wawy to clear the offline contents in
    ActionScript or ASP?
    *I had given the full server path to load the xml file in my
    ActionScript.
    Thx in advance... - ****

    Hi,
    just add a changing variable to the URL of the xml file:
    xml.load("data.xml?foo="+getTimer());
    That way, the URL is never the same, so the xml gets loaded
    again every time. You can't test this movie locally anymore, as it
    throws file not found errors, but with a server it's working fine.
    cheers,
    blemmo

  • Folder filter on URL property

    On Portal 4.5WS, I'm crawling a site of news archives and I want to sort them into subfolders by year. The target site is laid out in folders by date, so the URL contains the month and year in the path similar to .../122004/file.htm. I have created subfolders for each year, and created a filter with one criteria, where URL contains 2004, leaving the Text Contains field empty. None of the cards are passing the filter, so they are all ending up in the parent folder. As a test, I changed the filtered property from URL to Name and changed the criteria from 2004 to a word in the Name of an existing card, and the sort worked fine.
    Is there something special about using the URL property in a filter? Is there a trick to specify a partial URL as a filter value? What am I missing here?

    Hi Marcel,
      I know what you meant, the time from %time_set% is being compared with the times from %year%.jan till %year%.dec on an alphabetical order.
      i was wondering if you have any solution to this?
      i have been playing around with different combination, and they all don't work, i.e.
    *when time
    *is < %time_set%.timeid    -> compares alphabetically OR
    *when time.timeid
    *is < %time_set%.timeid    -> grabs timeid from time, and only the year from %time_set% OR
    *when time.timeid
    *is < %time_set%    ->grabs timeid from time, and only the year from %time_set%  OR
    *when time
    *is < %time_set%    -> compares alphabetically.
      anyone has any suggestions on this matter?
    cheers

  • Reading file from a folder : File dir = new File(URL+aFile_to_add);

    Hi,
    Trying to read files from a dir on my site using a JSP and bean. I've tried nearly every option for the filepath I can think of and it doesn't seem to be finding the file...
    Here's the bit:
    String URL = "images\\wedding_photos\\";
    File dir = new File(URL+aFile_to_add);
    String[] files = dir.list();
    It's working locally, but I obviously had to change the path from c://... to the above.
    The full code is listed below in the addWedding Method
    The method removes the .jpg from the file name and then writes the new file name to a database
    Thanks for any insight.
    Regards
    Jim
    public String addWedding(String aFile_to_add)
    String feedback = "unset in scrubWedding";
    try
    String URL = "images\\wedding_photos\\";
    Class.forName("org.gjt.mm.mysql.Driver");
    java.sql.Connection connection = java.sql.DriverManager.getConnection("jdbc:mysql://localhost/rhwedd2_shop?user=**********&password=*******");
    java.sql.Statement statement = connection.createStatement();
    File dir = new File(URL+aFile_to_add);
    String[] files = dir.list();
    if (files == null)
    feedback = "Sorry, couldn't find the file "+aFile_to_add+"...no files have been added.";
    else
    for (int i=0; i<files.length; i++)
    // Get filename of file or directory
    String filename = files;
    String no_extension;
    //convert string array element into a char array
    char [] charsfilename = filename.toCharArray();
    int newlength = charsfilename.length -4;
    no_extension = String.valueOf(charsfilename,0,newlength);
    filesAdded = filesAdded+", "+no_extension;
    // Show the new file names in stack trace without extension
    //System.out.println("String no_extension " + no_extension );
    statement.executeUpdate("INSERT INTO items VALUES ('"+no_extension+"',5,'"+aFile_to_add+"')");
    // write to table with item_id and weddingid
    feedback = "The following files have been added..."+filesAdded;
    if (statement != null )
    statement.close();
    if ( connection != null )
    connection.close();
    catch(Exception e)
    feedback = "Into the catch";
    e.printStackTrace(System.err) ;
    return feedback;
    }//end addWedding

    String URL = "images\\wedding_photos\\";
    File dir = new File(URL+aFile_to_add); ok, ok, I'll answer...
    1) What gives you the impression that the relative directory "images\\..." exists (or, in other words, what makes you think your current directory is the parent of "images"?

  • I want to open online files, not download everything I click.

    This question applies to both Safari & Firefox.
    I search for online files to help me with school, could be PDF, PowerPoint, etc.
    When I click on a file it just downloads them. I want to open 1st and see if I even want the thing.
    With Windows, it would open and save in a temporary folder and I could save the file if I liked it. With my new Mac, it's just saving everything I click on then I have to go delete it if I didn't like it.
    Any settings to fix? Safari and Firefox doing this.
    I do have MS Office for Mac so when I click on these Power Points I do have the right programs.
    Thanks in advance.
    Message was edited by: medrep

    I tried the right click but it just opened a new window to save the file.
    There has got to be a way to open the file online to a temp without saving it.
    Just to clarify, with Windows if I found say a PDF I was interested in but not sure I wanted to download, my choices with Windows would be Open file using Adobe Reader or Save File.
    I could open it without saving it, and if I didn't like the file it wouldn't be saved on my hard drive. (It would in a temp folder, but that got automatically deleted.)
    With the Mac, I have to download everything I click on and then open the file and then if I don't like it, delete it.

  • Could not load file/URL (file not found) error for JNLP file

    I am completely baffled in trying to figure out why I am getting the following error for some JNLP files but not others:
    Error: could not load file/URL specified: C:\Users\tom\AppData\Local\Temp\javaws2
    java.io.FileNotFoundException: C:\Users\tom\AppData\Local\Temp\javaws2 (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)I have Googled around this forum and elsewhere, and have seen reports that this error is IE-specific, and seems to have something to do with no-cache headers being sent, or with the client browser's cache being full or turned off (which is not my case). I saw the information in the JavaWS FAQ, which recommended turning off security constraints for the JNLP's URI. I tried that, and it didn't help. One of the very baffling things is that I have created several variations of the JNLP file, with varying combinations of jars and property resources, and some combinations always work while other combinations never work. Here's an example:
    <jnlp spec="1.0+" codebase="$$codebase">
       <information>
          <title>demo app</title>
          <description>illustrates weird bug</description>
       </information>
       <resources>
          <j2se version="1.5+"/>
          <jar href="randomFile.jar"/>
          <property name="xxx" value="xxxx"/>
          <property name="swing.metalTheme" value="steel"/>
       </resources>
    </jnlp>The above file always fails with the error shown at the top of this message. However, if I remove either of the two properties, it works fine. And I have created other variations with lots of properties, some of which work. All of these variations are in the same directory in the war file, served by the exact same servlet (a slightly modified version of the jnlp.sample.servlet.JnlpDownloadServlet provided with JDK 1.6.0_3). Assuming that a no-cache header is the problem, what on earth could be causing some JNLP files to always be served with a no-cache header, while others are never served with a no-cache header?
    On a related note, any recommended debugging techniques for seeing what headers are being transmitted? I tried adding a simple check for a "debug=true" parameter in the servlet that causes it to set the content type to "text/plain" instead of JNLP, and that allows me to see (rather than execute) the JNLP XML that's being returned, but it doesn't show me the HTTP headers that are being sent back. If any caching headers are being set, I think it must be being set by the servlet container itself, as it's nothing being set in the servlet code that I can see. So I don't see any way on the server side Java code to output or log the actual HTTP response (or is there?). Any tips in that regard much appreciated.
    Edited by: TomC125468 on Aug 19, 2009 1:35 PM

    Hi Luca-Sanna,
    Thanks for the response. Re browsers, yes, it fails in IE but it succeeds in Firefox. The info on the JavaWS FAQ and other places all seem to indicate that it's an IE issue concerning handling of the cache-control headers.
    I should check in my webserver forum (Sun WebServer 7) to see about logging options. Sniffing on the client side is not possible, as my app is required to use HTTPS exclusively, and unfortunately that also precludes a telnet GET request.

  • How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file?

    How can we send only one message to a WCF service at a time? How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file? Can we do it by Host throttling?

    Hi Pawan,
    You need to use WCF-Custom adapter and add the ServiceThrottlingBehavior service behavior to a WCF-Custom Locations.
    ServiceThrottlingBehavior.MaxConcurrentCalls - Gets or sets a value that specifies the maximum number of messages actively processing across a ServiceHost. The MaxConcurrentCalls property specifies the maximum number of messages actively
    processing across a ServiceHost object. Each channel can have one pending message that does not count against the value of MaxConcurrentCalls until WCF begins to process it.
    Follow MSDN-
    http://msdn.microsoft.com/en-us/library/ee377035%28BTS.10%29.aspx
    http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentcalls.aspx
    I hope this helps.
    Rachit
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • The File name property is not valid. The file name is a device or contains invalid characters

    I have an SSIS task that has run successfully for years. They just moved the dtsx to a new server and now it is failing. 
    Issue:
    The task has a data flow that writes a raw file destination. It then has a subsequent data flow that reads the raw file destination. 
    The path and name of the raw file is passed to each of the data flows via the same variable. 
    The raw file resides in a folder on the server in the same path that the dtsx resides in. 
    The task fails with the "The File name property is not valid. The file name is a device or contains invalid characters" error when trying to access the raw file.
    What we have done to troubleshoot:
    1. I ran the task successfully on my local machine so it is definitely a server issue.
    2. The first thing we were seeing was that it failed trying to write to the raw file. The task is set to "Create Always". 
    3. We saw that the dba's copied over the entire directory structure from the old server which included a previously created raw file, so we deleted the raw file.
    4. We reran the task and it successfully wrote a new raw file but then failed on reading the raw file with the same error as above.
    5. We reran the task AGAIN and this time it failed trying to write the raw file throwing the same error as above.
    6. The dba looked at the directory and the account that performs the task has full control.
    7. The dba looked at the raw file that was created and verified that the account that performs the task has full control of the file and that it is the owner of the file.
    Summary:
    The task fails when trying to access the file EXCEPT when the file does not exist. In that situation it can write the file but subsequently fails in accessing it again.

    Hi Whalensdad,
    Based on my research, the issue can be caused by the following reasons:
    There are some invalid characters in the File name at package runtime. In this scenario, just as Russ said, could you please post the value that is in the File name variable? Also use a Script Task with Messagebox.show to show the variable values at runtime.
    May be it changes to others at run time.
    The account runs the package not having access to all the folders in the path. Since you are moving the dtsx file from one server to the current server, do you also move the raw file to the same folder in the current server? Does the user runs the package
    have access to all the folders in the path? To solve this, please ensure that the user has access to all folders and the raw file in the path on the current server.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support
    Please see the response above. I can't use a message box on a server so I logged the values to the database. The resource account has full control to the folder. I haven't been able to get the DBA to check the SQL Agents permissions, but I was always under
    the impression that if you use "Run As" on the task, it will not use the SQL Agent but the account you identify it to "Run As". The "Run As" account has full control on the folder and file.

  • I have just managed to save some work to an 'office 2011' file, I don't know where this has come from but my work has now vanished

    Hi,
    I'm really hoping that someone can help with this!
    I just saved a few word documents on my macbook pro and hadn't noticed that (for some reason) the file destination to save to had changed to 'office 2011'. This isn't a file that I've created and my work is now nowhere to be seen :-(.
    I've gone into my library > application > support > microsoft > office autosave but nothing is there.
    HELP!
    Thanks,
    Danielle

    Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
    This happens the same whenever I try to install.
    To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
    My plugin is still showing as out of date.
    Is there anything you could suggest. Thanks for your time.

  • File association error causing problems with ms/office update file download

    While I was finding my way around OSX I made the error of selecting a wrong file type association when trying to install MS Office 2008. I associated their installer file with the 'Console' utility and now, when Office 2008 wants to auto-update, it downloads a file (to where, I can't tell) and then tries to install it using Console.
    I understand the method of changing file associations when you have a file of the appropriate type, using file info, and Open With (tick 'Always Open With This App').... but this is not a blanket association... I have to associate it specifically with the MS Office Installation files... and because they are downloaded in the background, I can't find them to use this method.
    I also understand that the settings for file associations are stored in this file: ~/Library/Preferences/com.apple.LaunchServices.plist.
    But I can't edit this without knowing what I'm doing
    Can anyone advise?
    Thanks!

    ~/Library/Preferences/com.apple.LaunchServices.plist
    If you like, you can move that to the desktop and the next time you run the same process, a new one will be created.
    If for any reason this borks other settings, you can put the original back if you need to, but I believe you'll be fine, in which case then simply delete the original.
    Don't bother editing it since you lack those skills, etc.

  • How do I reopen and change an existing pdf file

    I have pdf files in acrobat.com
    I want to make changes to an existing file.
    Can you do this or do you have to rewrite the whole file?

    Hi donk58183198,
    You can edit files that you've stored in your Acrobat.com online account, but you need to download them first. Log on to https://cloud.acrobat.com/files and select the file that you want to download, then click Download at the top of the file list.
    Your file will download to the Downloads folder on your computer. To edit a PDF file, you'll need to use Acrobat (not Reader). You can download a free 30-day trial from http://www.adobe.com/products/acrobat.html.
    Best,
    Sara

Maybe you are looking for

  • Italic characters showing up as garbage in e-mails

    For some time now with any e-mails that I receive that contain italic I am unable to read the italic text. I can read the roman text just fine. I am running 10.4.10 on an Intel iMac. Anyone know why this is happening and how to make it stop? Thanks.

  • Spool Error - Spool created but not opening/displaying. Message no SP01R042

    Dear All, In the ECC Production System, for SD documents Spool is  created but not opening/displaying. Message no SP01R042 When we check the short dump for the user, The dump is - - POSTING_ILLEGAL_STATEMENT - Statement "CALL SCREEN" is not allowed i

  • Converting Custom Columns on Mulitlingual

    Hi, I have used variation in SharePpint 2013 for Multilingual, Created two different languages default in English and other one in French Created a list on Englsih site, used to translate the same to (French) other language, list  is getting created

  • Address Book Keeps Crashing

    Hi, Every time I open the address book, the application crashes with the following message.  Any ideas? Process:         Address Book [31187] Path:            /Applications/Address Book.app/Contents/MacOS/Address Book Identifier:      com.apple.Addre

  • Inconsistent autocapitalization in Pages 2.4.2aliz

    Editing or adding a non initial cap word in the middle of a sentance often autocapitalizes it. Sometimes even changing characters in the middle of a word autocaps the edited letter. Anyone else having this problem? Trying to write a complete sentence