Looking up Admin Folder ID based on folder name

I need to lookup the folder ID based on the name, regardless of which level of parent folder it resides on. I can't seem to do this using an object manager. What's the easiet way to accomplish this regardless of the admin folder level? I'd really appreciate any sample code.
Thanks.
Vanita
Staples

get an IPTAdminCatalog object from IPTSession:
IPTSession.GetAdminCatalog()
then get the root folder off IPTAdminCatalog:
IPTAdminCatalog. GetRootAdminFolder()
then call IPTAdminFolder.QuerySubfolders() with an appropriate query filter limiting to a certain name.
Here's the javadocs on QuerySubfolders():
QuerySubfolders
public IPTQueryResult QuerySubfolders(int lPropIDMask,
                                      int lDepth,
                                      int vOrderBy,
                                      int lSkipRows,
                                      int lMaxRows,
                                      java.lang.Object[][] vQueryFilter)
    Queries the subfolders. This can be immediate (depth 0 or child depth 1).
    Parameters:
        lPropIDMask - prop ids to query
        lDepth - 0 or 1
        vOrderBy - can be an Object[][] with 2 columns and one row. The first column holds the property ID to order by, from PT_PROPIDS. The second column holds the order to order, from PT_ORDERBY_SETTINGS
        lSkipRows - number of rows to skip at the beginning, or 0 for none
        lMaxRows - maximum number of rows to return, or -1 for all
        vQueryFilter - is a 2D array with 3 columns. The first column holds the property id, from PT_PROPIDS. The second column holds the operator, from PT_FILTEROPS. The third column holds the value to be matched.
    Returns:
        IPTQueryResult

Similar Messages

  • Attempting to upgarde itunes and I get an error message looking for "an alternate path to a folder containing 'iTunes.msi' location.  I've searched my hard drive and the file doesn't exist.  What to do?

    Attempting to upgarde itunes and I get an error message looking for "an alternate path to a folder containing 'iTunes.msi' location.  I've searched my hard drive and the file doesn't exist.  What to do?

    This worked...found on a prior discussion:
    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page)...
    http://majorgeeks.com/download.php?det=4459
    From the link above (near the top of the page)....Under 'download locations'   click on 'download@majorgeeks'
    To install the utility, doubleclick the msicuu2.exe file you just downloaded and ran.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Restart your computer.
    Re-download Itunes (latest version form Itunes website) and install.  It worked!

  • Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    What folder structure?
    If you're referring to how Aperture stores the originals in a managed library then the answer is you can't change it.
    If having the originals stored in a specific file structure is important to you you will need to switch to a referenced original setup.

  • I am trying to make an Edge Animation work on a CMS. I used "AdobeEdge.loadComposition" to find the .JS file, but it is looking for the images in the "/image" folder. I would like to store the images in another place. Please help me accomplish this.

    Here's the code:
    <script type="text/javascript" charset="utf-8" src="http://animate.adobe.com/runtime/5.0.1/edge.5.0.1.min.js"></script>
    <style>
        .edgeLoad-EDGE-4084323 { visibility:hidden; }
    </style
    <script>
       AdobeEdge.loadComposition('/media/products/edge_script/channels', 'EDGE-4084323', {
        scaleToFit: "none",
        centerStage: "none",
        minW: "0",
        maxW: "undefined",
        width: "361px",
        height: "268px"
    }, {"dom":{}}, {"dom":{}});
    </script>
    <div align="center">
      <div id="Stage" class="EDGE-4084323">
      </div>
    </div>
    Thank you for your help.

    Ahhhhhh, ok. Figured this one out after digging more.
    Here's the answer from another post. Hope it helps someone!
    If you need to set an absolute folder url, or you are pulling the content from a server that does not host the content, you can manually update the <projectname>_edge.js file to specify the directory:
    (function($, Edge, compId){
    //images folder
    var im='<SERVER/FOLDER>/images/';
    Just beware that if you re-publish the files, you'll need to redo any custom modifications.  I do this for off-server projects and it works very well so long as you make all the changes in each JS file where you need to specify the exact path.

  • Receiver File adapter: dynamic folder name based on file name

    Hi there,
    is it possible to set up one communication channel that will use different target folders based on file name?
    E.g.
    File abcdef will be saved to /root/abcdef/abcdef or /root/abcdef/abcdef.txt
    File xyz will go to /root/xyz/xyz or /root/xyz/xyz.txt
    I know I could use Sender/Receiver Service, Interface/namespace or data from message for variable substitution but could not find an easier solution for this scenario than to create multiple communication channels.
    Thanks.

    If you haven't a message mapping, then you can create only an interface mapping with an abap mapping.
    In your abap mapping:
      DATA l_record type mpp_dynamic.
      l_record-namespace = 'http://sap.com/xi/XI/System/File'.
      l_record-name = 'FileName'.
      l_record-value = "your filename"
      dynamic_configuration->add_record( l_record ).
      l_record-namespace = 'http://sap.com/xi/XI/System/File'.
      l_record-name = 'Directory'.
      l_record-value = "your directory ".
      dynamic_configuration->add_record( l_record ).
    Afther that, you must activate Adapter Specific Message Attributes (directory and/or filename) in your target communication channel .
    Regards,
    Carme.

  • When I try to open ITunes it brings up a box that says the iTunes Library. itl file cannot be found or created. the default location for this fie is in the itunes folder in the music folder How do I solve this

    My laptop was updating itunes and turned off and every since when i try to load itunes it brings up a window that says
    The itunes library.itl fie cannot be found or created. The default location for this fie is in the itunes folder in the Music folder.
    an I cant figure out what to do to get itunes to load so I can't use itunes at all which ***** since it also means I right now I can't add music to my ipod or apps or anything. So hopefully someone can tell me what happened and how to fix it or solve it

    Hi pgarard1,
    If you are having issues with launching iTunes after an update, you may want to take a look at the troubleshooting in the following article:
    iTunes for Windows: Doesn't open after upgrading in Windows Vista or Windows 7
    http://support.apple.com/kb/TS2363
    Regards,
    - Brenden

  • TS1717 iTunes will not open.  I get a message that says, "The iTunes Library.itl file cannot be found or created.  The default location for this file is in the "iTunes" folder in the music folder."  How can I fixt this?

    iTunes will not open.  I get a message that says, "The iTunes Library.itl file cannot be found or created.  The default location for this file is in the "iTunes" folder in the music folder".  How can I fix this?

    Hi pgarard1,
    If you are having issues with launching iTunes after an update, you may want to take a look at the troubleshooting in the following article:
    iTunes for Windows: Doesn't open after upgrading in Windows Vista or Windows 7
    http://support.apple.com/kb/TS2363
    Regards,
    - Brenden

  • TS3494 my iTunes has stopped working on my mac book pro 13" when i try oping it it saysThe iTunes Library file cannot be found or created. The default location for this file is in the "iTunes" folder in the "Music" folder.

    my iTunes has stopped working on my mac book pro 13" when i try oping it it saysThe iTunes Library file cannot be found or created. The default location for this file is in the “iTunes” folder in the “Music” folder. i dont know what to do i need my itunes back

    Hi pgarard1,
    If you are having issues with launching iTunes after an update, you may want to take a look at the troubleshooting in the following article:
    iTunes for Windows: Doesn't open after upgrading in Windows Vista or Windows 7
    http://support.apple.com/kb/TS2363
    Regards,
    - Brenden

  • How do I add a folder to my Archive folder in Mail?

    On previous versions of Mail (on my Mac, NOT on my iPhone), I was able to move whole folders into Archive, but I can't seem to do that anymore.  When I move a folder over the Archive folder, nothing happens.
    After looking around, it looks like I can only move single messages or groups of messages into the Archive folder, but that can't be right, can it?
    I want to keep my archived emails sorted by the folders they exist in already... can someone please help me do that?

    The only way you can now add additional folders to the 'Archive' folder/mailbox is to create the new folders using the specific mail application.
    If you have Apple Mail pointing to a Gmail account, you will need to access Gmail web interface and create the folder there.  Likewise for Hotmail, Yahoo! Mail, etc.
    Not sure if this will work for Apple Cloud mail accounts.
    I have a @sky.com account and accessed the Sky webmail interface, created the new folders (Archive/*****) and reopned Apple Mail and there they were under the Archive folder :-)

  • Folder created with the same name as a fcpx library

    I recently moved to a new Mac Pro with a Pegasus 2 array from an old machine. I copied my old library across since I couldn't migrate because the old machine was a server. 
    now every time a run FCPX I get a new folder created with the same name as the fcp library.  Inside is library with a timestamp as a name, and inside that is a folder structure which matches the true folder structure in the real library.  The contents of the subfolders are empty (original media, eg).  This parallel folder/library structure remains when I exit fcpx.  Nothing of valuie is put in it.  A new clip or still gets put in the correct place in the true library.
    If I delete this parallel stuff it gets created again next time I run fcpx.  The permissions look ok, the user id is 501.
    Anybody have any suggestions as to what I should do?
    Chris

    Sounds like the folder of back-up libraries. If so, they take up a tiny amount of space and could prove to be very valuable if  a project breaks. Does it look similar to this?
    Russ

  • How can i find the original picture in the correct event folder from an album folder picture?

    how can i find the original picture in the correct event folder from an album folder picture? I can find the link to the original event folder, but is there a way to get right to the picture without having to search visually the event folder?

    Depends on whatr you mean
    Deleting from your phone does not delete from anywhere else
    HOWEVER deleting from your Photo stream does delete from the Photostream so anyone looking at the PS from any device will no longer see the photo
    But if your Mac iPhoto is set to automatically impor tphotos form PS or is you have manually imported photos from PS then onc ethey are imported they are on your Mac and change to PS will not affect them
    for more on PS see http://support.apple.com/kb/HT4486?viewlocale=en_US&locale=en_US
    LN

  • What is this Import folder inside my iphoto folder?

    Hi,
    I was looking at the size of my iphoto 6 folder before backup, and found a folder I havn't seen before.
    There's an Import folder inside my iphoto folder. Inside this import folder I have a Data, Original and Modified folder. All of them with empty subfolders except the data one, which has one year (2004) and inside all 2004 thumbnails. (iphoto/import/data/2004/**)
    This thumbanils are duplicated in my iphoto/data/2004 folder.
    Does anyone know why iphoto created this folder and why? And if it can be removed?
    I tried renaming it and restarting iphoto and nothing bad happened... :o) (But i want to be sure before I backup)
    Imac G5   Mac OS X (10.4.8)  
    Imac G5   Mac OS X (10.4.8)  
    Imac G5   Mac OS X (10.4.8)  

    I don't know if this will be much help to you, but this is what I've discovered so far. I wish someone from Apple would explain all this to us.
    The Original folder contains the the image files imported into you Library.
    If your Advanced preferences were set to Copy Files .. when Adding To Library the copy goes here and is never modified by iPhoto.
    Any edits to the image result in another copy of the file, with those edits, in the Modified folder.
    And I suspect the Data folder contains your original images in thumbnail size for faster viewing in the main iPhoto window.
    What I don't understand is why does my original image of 3KB (90x110) become a file of 39KB in the Data folder. What kind of thumbnail is that ?
    Can someone from Apple explain this.
    I'm trying to make efficient use of disk space and did not select the Advanced preferences setting of Copy Files .. when Adding To Library, so when I saw this file and its size compared to my original I was surprised.

  • Batch Folder renaming according to file name.

    Hi,
    I work in a busy photostudio and I am currently using automator to process thousands of Images, compression, size, name changes ect. However there is just one process I am stuck on. I need to put these Images into folders that relate to the file name. I have a process that will do this that I found here. This works well but i need it to only look at a certain part of the file name.
    For example if I had a collection of images like this,
    azz55412_blue_3.jpg
    azz55412_pink_2.jpg
    azz55412_blue_6.jpg
    azz78459_blue_1.jpg
    azz78459_blue_3.jpg
    azz65236_blue_7.jpg
    The current process would place each one in a folder named after each image. Ideally I would like it to only look at the first part of the name ie azz55412 and create a folder called that and place any other images it finds with the same code in that folder.
    Is this possible with automator or applescript?
    Any help or suggestions would be appreciated!
    Thanks,
    Mark

    Save the line below into a plain text file and give it the .jsx extension.
    app.activeDocument.activeLayer.name = decodeURI(app.activeDocument.name).match(/(.*)(\.[^\.]+)/)[1];
    Then create an action that runs that script. Then run File-Automate-Batch using that action.

  • Use Automator to move files and folder structure to another folder, retaining destination contents

    I have been struggling trying to setup Automator to move files and folder structure to another folder, retaining the destination contents.  Basically, I need to add files at the destination, within the same folder structure that exists at the source.  Here's some details about the scenario:
    -I have PDF files that I create on a seperate computer than I my daily use machine
    -For security reasons, the source computer doesn't have access to any shares on the destination computer
    -The destination computer has access to shares on the source computer
    -I want to delete the original PDFs at the source after they are moved or copied
    I haven't been able to get Automator to move or copy the folder contents (files and subfolders) without dropping everything copied at the top level of the destination, resulting in many duplicate folders and a broken folder structure.
    So far I've only had luck getting this to work at the command line, but I'd really like to have this setup in Automator so that I could have either a service or application that I could use for any folder, prompting for the source and destination folders.  I'm a relatively new Mac user with limited Linux experience, so this is the command that I've cobbled together and currently accomplishes what I'm looking for:
    ditto /Volumes/SMB_Temp/SOURCE ~/Desktop/Documents/DESTINATION
    cd /Volumes/SMB_Temp/SOURCE
    find . -type f -name "*.pdf" -exec rm -f {} \;
    Thanks for any ideas!

    If you have a command-line syntax that works, why not just create an Automator workflow with a single 'Utilities -> Run Shell Script' action, where that action has your (working) shell commands?
    Seems way, way simpler to me than trying to reinvent the wheel and transcribe shell commands into individual Automator actions

  • I need to access one folder in user library folder from my time machine backup......but it won't show a library folder

    I need to access one folder in user library folder from my time machine backup......but the backup disk won't show show a library folder.
    Pressing option-go only directs me to the current library folder in my hard drive. I have opened up the saved disk image and need to copy one folder and put it into my current library. Trying to restore using time capsule won't let me into the user library either......
    thanks in advance for any help
    christos

    The Saved Application State folder is where Lion stores all the information required for its resume feature to function as it does. As you are looking for a specific saved game folder it will not be in the Saved Application State folder. This folder was not present in Snow Leopard so wouldn't be present on your backup previous to the Lion install.
    The game saves you're looking for will most likely be located in the Application Support or Preferences folder.
    Hope this helps
    J.C

Maybe you are looking for

  • My phone number no longer shows up when I call a l...

    Hi,  I paid to have my cell phone number show up when I call a landline. This worked great for a good while (maybe 2 years). It is no longer working.  Do I need to renew this feature ? If so, how do I do this. TIA Pat PS hope this is the correct foru

  • Why is the USB download soooooo slow?  I see this frequently on other forums.  What's the fix?

    I am trying to copy the bootcamp utilities to a usb drive so that windows device drivers can be updated.  The download is very slow - in fact, it looks like its halted.  Its been running for 2 hours.   Is there a work-around for this?  An alternative

  • WPA2 PSK Help

    Hi, i just got verizon Fios and I changed it to WPA2 PSk AES using ASCII. It aways generates the same 26 digit/letter passphrase. Is it safe to use this key? Will other Verizon Fios customers in mny area have the same generarated phrase or is it rand

  • Bluetooth printing

    I am trying to figure out how to print from our iPad to a Canon Pixma MP560, via Bluetooth.

  • IPlanet 7.0.15 on Red Hat - Problems starting web server

    I completed the installation of iPlanet 7.0.15 on Red Hat Linux 5. The Admin server starts fine, however when I attempt to start the web server I get the following error: Oracle iPlanet Web Server 7.0.15 B04/19/2012 21:52 catastropheinfo: CORE3282: s