Clarity

  • 1.  GEL Script question

    Posted Jun 12, 2018 11:27 AM

    Hi -

    I am looking to use a gel script to copy a file (which will be uploaded by end user on the knowledge store) and paste it on the CA's on demand FTP site. This is needed due to certain system restrictions which would prevent the user from directly uploading the file on the FTP site.

    Does anyone have any such sample gel script?

     

    Appreciate the assistance!

     

    Thanks

    Arnab



  • 2.  Re: GEL Script question

    Posted Jun 12, 2018 12:19 PM

    No sure what your end goal is.

     

    The user uploads a file to the knowledge store.

    Run a gel script to copy the file to on-demand server folder which is accessible via FTP?

     

    This link will give you some insight on using the FTPTag lib.

     

    How do I call FTP via a GEL script? - CA Knowledge 

     

    V/r,

    Gene



  • 3.  Re: GEL Script question

    Posted Jun 12, 2018 01:00 PM

    Thanks for your response. I am not creating the file using 

    file:writeFile. The file will be already uploaded as an excel on the knowledge store. My idea is to create a
    gel script which will retrieve the file as is (from the filestore) and paste it on CA On Demand site folder.

    Can we accomplish this using gel?

    Thanks
    Arnab




  • 4.  Re: GEL Script question
    Best Answer

    Posted Jun 12, 2018 02:07 PM

    Georgy's post show how to get a list of file from the knowledge store and validate they exists which you can use to find the excel file.

     

    How To Check The DMS Filestore 

     

    You should be able to use this along with file tag to read the file and then write it to the ftp directory.

     

    V/r,

    Gene



  • 5.  Re: GEL Script question

    Posted Jun 15, 2018 10:08 AM