How to get all folders with Name and ID in Shared Document.

I tried this snippet and it is returning only Name not ID of the folders, Any help where am i going wrong?
        $.ajax({
  url: "/<sitename>/_api/web/GetFolderByServerRelativeUrl('Shared Document')/folders?$select=Name,ID",
  method: "GET",
  headers: { "accept": "application/json; odata=verbose" },
  success: function(data){
  console.log(JSON.stringify(data));
  error: function(data){console.log(JSON.stringify(data));}

What kind of folder and which ID?
Assuming you are wanting the folder objects created from the New Folder button in the ribbon, try this search by Content Type:
https://yourdomain.sharepoint.com/_api/web/lists/getbytitle('Documents')/items?$filter=startswith(ContentTypeId,'0x0120')&$select=Title,ID
Note that several IDs are returned; the ID (GUID) of the list item and the list's ID column (1,2,3, ....)
Your example returned an ID property, but it was a URL.
Mike Smith <a href="http://TechTrainingNotes.blogspot.com">TechTrainingNotes.blogspot.com</a>

Similar Messages

  • How to get all the Model name and Entity name through programmatically

    I am using this code to get Model name
    clientProxy = GetClientProxy(mdsURL);
    ModelMembersGetRequest request = new ModelMembersGetRequest();
    ModelMembersGetResponse response = new ModelMembersGetResponse();
    response=clientProxy.ModelMembersGet(request);
    Model member count i am getting zero
    Error count is 1(required parameter is missing)
    please help me to resolve the issue

    The model/entity/attribute name can be retrieved by MetadataGet.
    You can found some sample code here:
    http://sqlserversamples.codeplex.com/wikipage?title=SQL%20Server%202012%20Master%20Data%20Services%20

  • I just downloaded the new iOS 5.0 and did all of the backup prompted steps beforehand, but I can't figure out how to get all of my apps and music back on my iPhone. Where did they go and how can I put them back on my iPhone?

    I just downloaded the new iOS 5.0 and did all of the backup prompted steps beforehand, but I can't figure out how to get all of my apps and music back on my iPhone. Where did they go and how can I put them back on my iPhone?

    Hi, Abril_Perez17.
    This may be related to a new feature embedded in iOS7 that shows all purchased music by default.  Go to Settings > Music, then turn off Show All Music.  See if the issue ceases once the feature has been disabled.  This information is located on page 63 of the user guide below. 
    iPhone User Guide
    Regards,
    Jason H. 

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • How to get ALL photos off iPhone and into iMac?

    I hope I can describe this clearly.
    I have close to 1000 photos on my iPhone 5s, all in different albums.  I want to get ALL of them off the iPhone and backed up into my iMac so I don't lose them when I upgrade (which has happened before.) The albums I seem to have the biggest problem with are the ones that came over when I went from a PC to a Mac about 2 years ago and were in albums in my Kodak Easy Share.  I can't get iPhoto to recognize these photos/albums so I can move them from the iPhone. Honestly, I'm not even sure how I got them from where they originated into my iPhone. I'd thought I'd lost them so when they popped up on my iPhone I refused to even update my phone for a while, I was so afraid to lose them.
    I tried using Image Capture and it only recognized 176 photos on the iPhone.
    I went into settings on my iPhone, into camera and photos, and saw that iCloud Photo Library (Beta) was "OFF." I clicked "ON" and got the message "Photos synced from iTunes will be removed. Syncing photos via iTunes is not supported when include Photo Library is turned on.  833 photos will be removed."
    I hit cancel.
    If I connect my iPhone to my Mac, and check off "Sync Photos" it appears that it's going to put photo's in iPhoto on my computer on my phone, so that isn't what I want either.  I've tried Googling this, and searching on the Apple site and I can't find anything like this. Similar but not quite the same.
    I also read (I think) that the iCloud would delete my photos in 30 days so I'm not sure what the value of backing them up to the iCloud is.
    I've used Finder to search Kodak, Easy Share, Kodak Easy Share, in case these photos are somewhere else on the iMac that I'm not aware of, most likely due to user ignorance.
    My screen is cracked, I'm going to need to upgrade soon, and I don't want to lose valuable photos again. 
    Thank you!

    Thank you to all for this info. Discouraging, but finally I can stop banging my head on the desk trying to figure out what I'm doing wrong.
    I do believe that when I synced my iPhone at some point in the last 2 years, I pulled all the photos OUT of iPhoto and then it deleted them.  Which is most likely why the older Kodak photos that I am almost 100% certain were in iPhoto are now gone. How/when they ended up on my iPhone I don't know because I swear they suddenly appeared there a few weeks ago.
    Since the old PC is gone (accessible but wiped clean & restored to original factory settings) and Easy Share is no more, I will have to explore outside options to get those photos off the iPhone somewhere.  Online photo storage sites have been suggested.  Archaic as it is, I wish I'd just put them all on cd's.
    Using the info provided, I did SUCCESSFULLY get all 237 photos off of my iPhone 3.  (yes, I still have it.)  Now I know better and will never ever sync my photo's in iTunes again.
    Thank you all again!!
    ***Addendum: ALL answers helped, but apparently I can't indicate that.

  • How to get Current Background Job name and Job Count programmically?

    Hi all,
            I have a requirement wherein I need to get the Current Background Job name and Job Count in the program and store it in a custom table. In other words, whenever I schedule a particular program ( This is a Std program) in background, I need to update this table with the Job Name and Job Count. This will be used by another program later to read the Job Information from table TBTCO. TBTCO has key fields Job Name and Job ID. The sheduled program will be a SAP standard program and I'll be writing the logic to get the info in an Implicit Enhancement Spot.
    Is there anyway I can do this? Any FM to get this information?
    Thanks,
    Mahesh.

    Hey Adrian,
                             Thanks a lot. This is what exactly i was looking for. Appreciate it.
    Mahesh.

  • How to get all the measure names in a cube

    Hello,
    How can I get the list of all measures in a SSAS database or cube by MDX / XMLA.
    If I get the details like what are all aggregations used and under which folder the measures available that will be great.
    We can get the same by SQL and i would like to get the same from a cube.
    SQL:
    select column_name from information_schema.columns
     where table_name = 'MyTable'
    order by ordinal_position
    Regards,
    Palash

    Hi Palash
    Please see the belwo DMV (Dynamic Management View) which will get the same by SQL.
    All Cubes in database 
    SELECT [CATALOG_NAME] AS [DATABASE],CUBE_CAPTION AS [CUBE/PERSPECTIVE],BASE_CUBE_NAME FROM $system.MDSchema_Cubes WHERE CUBE_SOURCE=1
    All dimensions in Cube 
    SELECT [CATALOG_NAME] as [DATABASE], CUBE_NAME AS [CUBE],DIMENSION_CAPTION AS [DIMENSION]  FROM $system.MDSchema_Dimensions 
    WHERE CUBE_NAME  ='Adventure Works' AND DIMENSION_CAPTION  'Measures'
    --All Attributes 
    SELECT [CATALOG_NAME] as [DATABASE],  CUBE_NAME AS [CUBE],[DIMENSION_UNIQUE_NAME] AS [DIMENSION],  HIERARCHY_DISPLAY_FOLDER AS [FOLDER],HIERARCHY_CAPTION AS [DIMENSION ATTRIBUTE],  HIERARCHY_IS_VISIBLE AS [VISIBLE]  FROM $system.MDSchema_hierarchies 
    WHERE CUBE_NAME  ='Adventure Works' AND HIERARCHY_ORIGIN=2 
    All Hierarchies (user-defined) 
    SELECT [CATALOG_NAME] as [DATABASE],  CUBE_NAME AS [CUBE],[DIMENSION_UNIQUE_NAME] AS [DIMENSION],  HIERARCHY_DISPLAY_FOLDER AS [FOLDER],HIERARCHY_CAPTION AS [HIERARCHY],  HIERARCHY_IS_VISIBLE AS [VISIBLE] 
    FROM $system.MDSchema_hierarchies 
    WHERE CUBE_NAME  ='Adventure Works' and HIERARCHY_ORIGIN=1 
    All Measures 
    SELECT [CATALOG_NAME] as [DATABASE],  CUBE_NAME AS [CUBE],[MEASUREGROUP_NAME] AS [FOLDER],[MEASURE_CAPTION] AS [MEASURE],[MEASURE_IS_VISIBLE] 
    FROM $SYSTEM.MDSCHEMA_MEASURES 
    WHERE CUBE_NAME  ='Adventure Works'
    SUHAS http://suhaskudekar.blogspot.com/ Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.

  • How to get back my workspace name and account?

    I cannot recall workspace name and user account information when loging in to the apex.How to find back these information? Please give your hand. thanks.

    1. Please tell us your first name.
    2. Go to the login page of the Application Express host where you created an account. See the Tasks region in the upper-right section of the page. Click the Find My Workspace link. Complete and submit the form. Wait for an email. If you don't know the email address you used, telephone or email the administrator of the Application Express service where you created the account.
    Scott

  • How to get the source file name and transform into database

    Hi,
    We need to load data from source file abc.csv into oracle table. during loading, we need to keep the file name abc.csv and write into the database table as one field. Is there anyone who did the similar task? and how to make it? Pls help!

    Hi,
    If you can write the filename to a text file, you may do the following:
    (1) create a text-file containing the name of your source-file.
    (2) create an external table using that text-file as input.
    Now, you can SELECT the filename from the external table.
    Of course, you need a way to : create the flat file, handle the flat file, etc.
    Grtz.

  • A friend gave me an older Nano 3rd generation. Can anyone tell me how to delete what is on there and how to get rid of his name. It does not connect to my itunes. I cannot even find the source or the place to restore it as suggested in the owners manual.

    I have a 3rd generation ipod that a friend gave me. I cannot find anything on how to get rid of his name and music on it. This is what the owners manual says:
    "Select ipod nano in the soiurce list and click the summary tab" I cannot find the source or the summary tab on itunes. Can any one help me? I would like to delete everything on it and start over but I am afraid I cannot add anything back on it. I know this is detailed and a lot, but I really need help.

    Restore
    Note: Because Restore erases all of the songs and files on iPod, make sure toback up any files you've saved on the iPod disk. All of your songs, videos, podcasts, audiobooks, and games can be loaded back to your iPod provided that you have them stored in your iTunes Library.
    How to restore your iPod:For Windows:
    1. Make sure you've reinstalled the latest version of iTunes.
    2. Open iTunes, and then connect your iPod to your computer.
    3. After a few moments, it will appear in the source list in iTunes. If the iPod's display doesn't show "Connected" or "Do not disconnect" you may need to put the iPod into disk mode to proceed.
    4. Select your iPod in the source list and you will see information about it appear in the Summary tab of the main iTunes windows.
    5. Click the Restore button. You will be prompted with one or more restore options that may prompt iTunes to automatically download of the latest iPod Software. The 4 possible restore options are:
    Restore Option 1: Restore - Restores with same iPod Software version already on iPod.
    Restore Option 2: Use Same Version - Restores with same iPod Software version already on iPod even though a newer version is available.
    Restore Option 3: Use Newest Version - Restores with the latest iPod Software on your computer.
    Restore Option 4: Restore and Update - Restores with the latest iPod Software on your computer.
    6. A progress bar will appear on the computer screen indicating that the first stage of the restore process has started. When this stage is completed, iTunes will instruct you to leave iPod connected to your computer to complete restore.
    7. During the stage 2 of the restore process, the iPod will show an Apple logo as well as a progress bar at the bottom of the display. It is critical that the iPod remains connected to the computer or iPod Power adapter during this stage. Note: The progress bar may be difficult to see since the backlight on the iPod display may be off.
    8. After stage 2 of the restore process is complete and the iPod is connected to the computer, the iTunes Setup Assistant window will appear asking you to name your iPod and choose your syncing preferences similar to when you connected your iPod for the first time.
    For Mac:
    1. Make sure you've reinstalled the latest version of iTunes.
    2. Open iTunes, and then connect your iPod to your computer.
    3. After a few moments, it will appear in the source list in iTunes. If the iPod's display doesn't show "Connected" or "Do not disconnect" you may need to put the iPod into disk mode to proceed.
    4. Select your iPod in the source list and you will see information about it appear in the Summary tab of the main iTunes windows.
    5. Click the Restore button. You will be prompted with one or more restore options that may prompt iTunes to automatically download of the latest iPod Software. The 4 possible restore options are:
    Restore Option 1: Restore - Restores with same iPod Software version already on iPod.
    Restore Option 2: Use Same Version - Restores with same iPod Software version already on iPod, even though a newer version is available.
    Restore Option 3: Use Newest Version - Restores with latest iPod Software version on your computer.
    Restore Option 4: Restore and Update - Restores with latest iPod Software version on your computer.
    6. A message will appear prompting you to enter an administrator's name and password.
    7. A progress bar will appear on the computer screen indicating that the first stage of the restore process has started. When this stage is completed, iTunes will instruct you to leave iPod connected to your computer to complete restore.
    8. During the stage 2 of the restore process, the iPod will show an Apple logo as well as a progress bar at the bottom of the display. It is critical that the iPod remains connected to the computer or iPod Power adapter during this stage. Note: The progress bar may be difficult to see since the backlight on the iPod display may be off.
    9. After stage 2 of the restore process is complete and the iPod is connected to the computer, the iTunes Setup Assistant window will appear asking you to name your iPod and choose your syncing preferences similar to when you connected your iPod for the first time.
    Source:
    iPod nano (3rd generation) Troubleshooting Assistant
    Message was edited by: michael08081

  • How get all record from master and matching record from detail

    hi master
    sir i have master detail table
    i have many record in master table but some record in detail table how i get
    all record from master and matching record from detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m, detail d where m.accid=d.accid
    this query not work that get only related record i need all record from master
    please give me idea
    thanking you
    aamir

    hi master
    sir i have master detail table
    i have many record in master table but some record in
    detail table how i get
    all record from master and matching record from
    detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m,
    detail d where m.accid=d.accid
    this query not work that get only related record i
    need all record from master
    please give me idea
    thanking you
    aamir
    select m.accid,m.title,d.dr,d.cr
    from master m, detail d
    where m.accid=d.accid (+)The outer join operator (+) will get you all the details from master and any details from the detail if they exist, but the master details will still be got even if there are not details.
    Note: Oracle 10g now supports ANSI standard outer joins as in:
    select m.accid,m.title,d.dr,d.cr
    from master m LEFT OUTER JOIN detail d on m.accid=d.accid

  • In ME2N  report for PO- How to get or add Vendor name in ALV grid output

    Hl Everyone
    How to get  or add Vendor Name and payment terms in the ALV grid output for the follwing reports like ME2N and ME2V.
    cuurently i am in 4.7 E version.
    Kindly suggest..........
    thanks in advance
    Regards
    Prashanth

    Hi Pankaj
    I knew that vendor name field is avaiable in ECC versions, but how to get the same field(vendor name) in 4.7 E vesion.
    Kindly suggest
    Regards
    Prashanth

  • How to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scripting

    how to get all how to get all paragraphs style and their fonts of a  indesign file and write all info with para info into txt file with scriptingstyle and their fonts of a  indesign file and write all info with para info into txt file with scripting

    I write the script this one works
              var par=doc.stories.everyItem().paragraphs.everyItem().getElements();
      for(var i=par.length-1;i>=0;i--)
           var font=par[i].appliedParagraphStyle.name;
            var font1=par[i].appliedFont.name;
             var size=par[i].pointSize;
            WriteToFile (par[i].contents  +   "\r" +  "Style  : " + font  + "\r" +  "FONT1  : " + font1  + "\r" +  "Size  : " + size  + "\r", reportFilePath);
                            function WriteToFile(text, reportFilePath) { 
        file = new File(reportFilePath); 
        file.encoding = "UTF-8"; 
        if (file.exists) { 
            file.open("e"); 
            file.seek(0, 2); 
        else { 
            file.open("w"); 
          file.writeln(text);  
        file.close(); 
    Thanks for all your support

  • When synchronizing my iPhone 4G with Outlook 2007 in my Windows 7 PC I get duplicated folders of Contacts and Calendars in both. How can I solve it?

    When synchronizing my iPhone 4G with Outlook 2007 in my Windows 7 PC I get duplicated folders of Contacts and Calendars in both. How can I solve it?

    Well, you can go into setting>mail, contacts, calendars>add new account or through iTunes you can plug your phone into your computer, open iTunes, select your device, then select info. I hope this helps. Au revoir!

  • My contacts all got deleted from my phone, and was replaced with names and numbers of people I've never met before.

    My phone was working as normal, then all of a sudden when I checked my text messages all the names of my contacts got replaced by their actual phone numbers. When I checked my contacts, it looks like everyone got deleted from my phone, and was replaced with names and numbers of people I've never met before. Even when I check my icloud for a backup it has the same issue. I don't know how this is possible and not certain as to how to rectify and get my contacts back.

    Hi Also iPhone, need update to ios 8.1.2 do this over WiFi Use same Apple ID & Password. Cheers Brian

Maybe you are looking for

  • Suddenly can't connect to Time Capsule

    I have had a Time Capsule now for over a year and have had few problems. Nothing a restart here and there wouldn't fix. However, tonight I came home and am unable to connect wirelessly. I checked my TC and it was solid green light. But my MacBook cou

  • Grouping of planned Orders

    Sorry null

  • Contacts have disappeared.

    When I open Contacts, there are none. Contacts are still on the computer, found at ~/Application Support/AddressBook/Sources/(Long Address with many letters and numbers)/Metadata.  I didn't even know that they were missing from contacts because when

  • What happens when the NeverFail method, well, does?

    Okay, so I'm still a relative newbie to GB3, so plenty of room for user error here, and I have read and implemented the Never Fail method of correcting the pacing of audio imports. And on my first two imports as part of my first podcast, that worked

  • Proect Code on JE report

    HI I have Project Code and Project Name visible on the PLD when previewing JE report. But data won't show. I need to show Project Code and Name Journal Entry report. Thanks