Get File Information using the Document ID in Javascript

I store in a custom list the Document Id of a linked document. I need to retrieve some metadata - at least the filename - of that document. I have tried using the Search REST API specifying something like "DocID:INGX1-2-26" in my search query,
but nothing is returned, nothing found.
Is there any other way to get the file info when all I have is the Document ID? In the managed code, I could use the Microsoft.Office.DocumentManagement.dll which provides a way to get the file info using the DocId, but this is not available in Javascript.
Any ideas?
thanks.

Hi,
As a workaround, we can create a custom web service with the Microsoft.Office.DocumentManagement.dll, then you can call the web service using JavaScript.
Here are some links about Building and Consuming Custom WCF Services hosted in SharePoint for your reference:
http://nikpatel.net/2012/02/29/step-by-step-building-custom-wcf-services-hosted-in-sharepoint-part-i/
http://www.c-sharpcorner.com/uploadfile/sridhar_subra/consuming-wcf-asmx-rest-service-using-jquery/
http://leonidius2010.wordpress.com/2011/05/06/custom-web-service-for-sharepoint-an-easy-way/
Thanks
Patrick Liang
Forum 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]
Patrick Liang
TechNet Community Support

Similar Messages

  • HT201328 My nephew give me the iphone and i'm not sure about the carrier. how i can get this information using the imei number?

    My nephew give me the iphone and i'm not sure about the carrier. how i can get this information using the imei number?

    If you have the iPhone in front of you, here's how you can learn the carrier:
    Go to Settings > General > About and look at the "Network" row near the top.  There's your carrier's name!

  • Getting Canon 4770 to scan multipages into a PDF file while using the document feeder

    Hi All
    I'm new to this forum.  So if I break any rules with my questions below, kindly forgive me.
    But my questions are about my Canon MF4770 printer.
    1.  Why can't I used the document feeder to scan multiple pages into one PDF file?
    2.  Why do I have to constantly select the remote scanner option when the printer is connected to my computer?
    Any help I can get will be very appreciated.
    Starlene

    Hi Starlene and welcome to the Canon forum,
    The ability to scan multi-page documents can depend on your operating system and version, and if the scanning software being used supports the feature.  However, the MF Toolbox application that accompanies your laser product offers this option when scanning via a USB connection to your computer.
    For example, if you are using Windows, below are the steps that would be performed:
    1.  Place documents.
    Note: Up to 35 documents can be loaded in the feeder.  Be sure to fan the stack, place it face up, and align the document guides to the width of document.
    2. Press [SCAN].
    3. Press [^] or [v] to highlight <Remote Scanner>, and then press [OK].
    The machine is now waiting to be scanned.
    4. Double-click the [Canon MF Toolbox 4.9] icon on the desktop.
    The MF Toolbox starts.
    5. Click [PDF].
    Select [PDF (Multiple Pages)] in [Save as Type].
    7. Specify the required settings as needed and click [PDF Settings].
    The [PDF Settings] dialog box appears.
    8. Specify the required settings as needed and click [OK]:
    [Create Searchable PDF] Converts the characters in the document to text data and makes the PDF document searchable with keywords.
    [Text Language] Select the language of the text to be scanned. The characters may be recognized more accurately if you select [English] from the drop-down list and set [Image Quality] to [300 dpi] or higher in [Scanner Settings].
    [PDF Compression] Select [High] for color images such as photos or illustrations to reduce file sizes.
    9. Click [Start].
    Note:
    A folder with the scanning date will be created in the [MY PICTURES] folder in the [MY DOCUMENTS] folder, and your document will be saved in this folder. If there is no [MY PICTURES] folder, the folder with the scanning date will be created in the [MY DOCUMENTS] folder and your document saved in this folder.
    For text documents or black-and-white documents, it is recommended you select either [BLACK and WHITE] or [GRAYSCALE] in [SCAN MODE].
    If making a Multiple PDF with color documents ([IMAGE QUALITY] set to [300 dpi]), it is recommended that the PDF have fewer than 20 pages.
    The MF toolbox can be loaded from your software CD or downloaded here from the "Drivers & Software" tab on the Canon USA website.
    I can understand some confusion on having to select "Remote Scanner" when you have a direct computer connection to your product.  The reason for this is that first, the "Remote Scanner" mode refers to seeing your computer as a stand alone, or remote, device; however, the "Computer" scanning mode option allows you to select which computer will be performing a scan when doing so over a network (Max: up to 10 computers).
    Another reason for having to select the scan mode is that the selection is not programmed but selected based on the type of scan you will be performing at the time.
    If this does not answer your questions or we can offer further assistance, please feel free to Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the 'Get Info' command in the Finder to ensure the file is unlocked and you have permission to access the file.

    I have this massage every time close ps cc
    Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder.

    You may get better help in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
    If FINDER means Mac, read below (and try to give more information when asking a question)
    Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
    Enable Mac Root User https://forums.adobe.com/thread/1156604
    -more Root User http://forums.adobe.com/thread/879931
    -and more root user http://forums.adobe.com/thread/940869?tstart=0

  • What is the promper format of files using the Document step in UCCX 8

    Hello all,
    I am working a script that is using the document steps in the script editor.
    The script will allow the user to call in and turn a greeting on and off
    I have a few sample scripts from version 5 and 7 and do this but I am on verions 8.0 and can't seem to figure out the document step
    in the old verison of the script editor you put in the full windows path where the document is stored.
    How is this done in the linux version?
    I have tried the following
    "filename.xml"
    "filename"
    "/filename.xml"
    "filename"
    /filename
    /en_US/filename.xml
    none seem to work.  when i do a debug on the script it says the file does not exist.
    how do i need to list the filename in the create and write document steps.
    if anyone has a script i could use that is version 8 that would be great as well!
    thanks!
    Ken

    I assume you're referring to the Write Document step?
    That step writes directly to the filesystem, in the appliance version (8.x+) you can only write to a specific directory on the file system, which you can get from:
    System.getProperty(“uccx.customer.dir”)  
    However, I believe these are deleted after some time and are not really suitable for long term storage. If you have a HA cluster this is certainly not going to work.
    Assuming so, your next option is to use the Documents subsystem which works something like this:
    User authUser
    authUser = Get User (User ID: myUsersName)
    - Success:
         Authenticate User Password (User: authUser, Password: myUsersPassword)
         - Success:
              Upload Document (Language: en_US, Name: fileName, Document: dataToWrite, User: authUser)
              - Success:
                   /* document uploaded without issue */
    You can then read from that file via
    Document doc = DOC["en_US\" + fileName]
    Something like that should work.

  • Word cannot open this document.  The document might be in use, the document might not be a valid Word document,  or the file name might contain invalid characters (for example,\ /).

    I recently upgraded to a new Macbook Air running Lion, from my 2007 white Macbook running Snow Leopard.  I had Office for Mac 2004 on the 2007, but had to upgrade to Office for Mac 2011 to be compatible with Lion on the Air.  Now when I try to open my documents on the Air that were saved under Office 2004 on the old computer, I get the following message: Word cannot open this document.  The document might be in use, the document might not be a valid Word document,  or the file name might contain invalid characters (for example,\ /).
    Any suggestions?  Thank you.

    Ha,ha,ha.....I figured it out.  But for anyone else who's having this problem, it seems that while Office 2004 allowed dates in this format: 00/00/00, Office 2011 doesn't like it at all.  I just changed the format in the document names to 00-00-00 and all is well.  Documents are opening beautifully! 

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • How to get Bursting file to use the same template as selected by user

    I have created an XML publisher bursting control file for a standard Oracle report Direct Debit letter.
    The user wants to be able to select from a number of different letter templates which is ok except that the bursting control file is fixed to use one template.
    How can I get the bursting control file to use the same letter template as selected by the user when running the report ?
    I am using XML Publisher 5.6.3 with bursting patch.

    Try these following, which come to my mind now as of now.
    In the bursting file, you can do the filtering and apply different template..
    <xapi:template type="rtf" location="/usr/template1" filter=".//DIRECT_DEBIT[./parameter_or_element='first_template']"></xapi:template>
    <xapi:template type="rtf" location="/usr/template2" filter=".//DIRECT_DEBIT[./parameter_or_element='second_template']"></xapi:template>
    second option..
    you can replace the element from the xml in the bursting control file.
    ${ELEMENT_NAME}
    can be used in the template name i guess..
    <xapi:template type="rtf" locale=""
    location="xdo://AR.${SHORT_NAME}.en.US/?getSource=true" translation="" filter="">
    </xapi:template>
    But in this short name has to be in XML file...
    I haven;t tried it...wil try it wheni get time..

  • HT3775 I recently upgraded my OS to Mountain Lion 10.8.2 and cannot open up .avi files now in Quicktime. I get this error message: The document "ANDREW_McD_MEDIA_VERSION.avi" could not be opened. A required codec isn't available.

    I recently upgraded my OS to Mountain Lion 10.8.2 and cannot open up .avi files now in Quicktime. These same files opened up with no problem prior to my upgrade.  Additionally, I had upgraded to the Pro version of Quicktime recently, but it appears I've retrograded back to the basic version, unexplainably.
    I get this error message: The document “ANDREW_McD_MEDIA_VERSION.avi” could not be opened. A required codec isn't available.

    Hi,
    I had exactly the same problem & found the answer here  https://discussions.apple.com/thread/3219982?start=0&tstart=0 . Download a program called Perian, very easy to download worked a treat. I wish all fixes were this easy - Debbie

  • Opening my Photoshop Elements 11 does not work. I always get following message: "Could not open a volume of work, because the file is locked or you do not have the required permissions. Undo the protection of the file on using the command 'Properties' in

    Opening my Photoshop Elements 11 does not work. I always get following message: "Could not open a volume of work, because the file is locked or you do not have the required permissions. Undo the protection of the file on using the command 'Properties' in Windows Explorer." What is wrong? I cannot unterstand what I have to do!

    Could not open a scratch file because the file is locked or you do not have the necessary access privileges. (…) | Mylen…
    Mylenium

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • Where is the best place to get/read information of the pros and cons on updating my OS from Snow Leopard to the current OS?

    Where is the best place to get/read information on the pros and cons of updating my OS from Snow Leopard to the current OS?
    I have an iMac 27" intel, purchased Nov 2009.  I am currently using 10.6.8

    Apple OS 10.9 Mavericks:
    Quick overview:
    https://help.apple.com/osx-mavericks/whats-new-from-mountain-lion
    OS X Mavericks supports the following Macs that are already running a minimum of Snow Leopard:
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later), (15-inch, Mid/Late 2007 or later), (17-inch, Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac Mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Transitioning your Mac from Mountain Lion to Apple's new OS X 10.9 Mavericks
    http://appleinsider.com/articles/13/10/23/transitioning-your-mac-from-mountain-l ion-to-apples-new-os-x-109-mavericks

  • Where can i get any information about the application of labview on remote control??

    Where can i get any information about the application of labview on remote control??for example using labview to build a virtual laboratory.

    This is a big question. Contact me directly and we can discuss in detail what you are trying to accomplish.
    Mike...
    [email protected]
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I am getting a message saying: "The document "nameofdocument.psd" could not be opened.

    I am getting a message saying: "The document "nameofdocument.psd" could not be opened. Photoshop cannot open files in the "Adobe Photoshop file" format.
    I get this message:
    1. When trying to open a .psd file from the hard drive
    2. As an attachment
    3. A linked InDesign file.
    I CAN open the files when IN Photoshop from the file menu.
    I'm running an iMac OS 10.7.5, 3ghz, 4gb
    Photoshop CS5
    Any help would be appreciated.

    Sounds like the OS has lost the list of what filetypes Photoshop can open.
    If only PSD is a problem, you can change it directly: http://www.bleepingcomputer.com/tutorials/reset-file-associations-on-your-mac/
    If it's many types, you need to clear the LaunchServices database: http://superuser.com/questions/20822/where-does-mac-os-x-store-file-association-informatio n

Maybe you are looking for