4 Replies Latest reply: Feb 19, 2013 8:30 AM by user652652 RSS

    deliver IBOT to folder.

    user652652
      Hi I have setup SA system.because I need to generat a single report for multiple users and deliver it to specific folder.

      So my probem is how to save the delivered IBOT to specific folder.

      any help pls.
        • 1. Re: deliver IBOT to folder.
          user248025
          Hi,

          Try to find the jscrip method and implement it (it's working fine)
          https://sites.google.com/a/obieetechnologies.com/actions-in-agents/
          http://obiee1000.blogspot.in/2012/01/actions-in-agents-part-1.html

          Thanks
          Deva

          Edited by: Devarasu R on Feb 19, 2013 5:22 PM
          • 2. Re: deliver IBOT to folder.
            sayak
            Hi ,

            U can go through these :

            Not able to save file to local disk through iBot - OBIEE

            http://obipro.blogspot.com/2012/06/setting-up-ibot-to-save-report-to.html
            • 3. Re: deliver IBOT to folder.
              user652652
              I added the below script:


              var FSO = new ActiveXObject("Scripting.FileSystemObject");
              var foldername = GetConfigurationValue("Log Dir", "iBots") + " " + UserID
              if (FSO.FolderExists(foldername))
              {
              var fileName = foldername + " " + JobID + "-" + InstanceID + "-" + Parameter(1);
              var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
              }
              else
              {
              FSO.CreateFolder(foldername);
              var fileName = foldername + " " + JobID + "-" + InstanceID + "-" + Parameter(1);
              var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
              }

              and in destination tab I checked the email.


              But got the below error:

              +++ ThreadID: 480 : 2013-02-19 10:26:54.444
              iBotID: /users/administrator/_ibots/TESTFORFOLDER
              No devices for user: Administrator

              any help pls
              • 4. Re: deliver IBOT to folder.
                user652652
                All,

                Thanks for your coopration. i am getting the file in folder.

                But I need every day a new folder creates with name like reportdmm/dd/yy and files get into this every day..

                what will be the code for this pls

                any help pls

                Edited by: user652652 on Feb 19, 2013 8:00 PM