Automic Workload Automation

 View Only

READ BLOB in MONITOR OR EXIST jobs

  • 1.  READ BLOB in MONITOR OR EXIST jobs

    Posted 29 days ago

    Hello Community,

    I have received a request to check for the data inside a BLOB and provide that data into successor REST wenbservice job(payload) as an input as below

    post process of the exist job

    :SET &HNDF# =PREP_PROCESS_report("JOBS",,"REP",)
    !:PRINT &HND#
    :PROCESS &HNDF#
    :SET &RET# = get_process_line(&HNDF#,1)
    :PSET &FILE# =STR_LTRIM("&RET#")
    :ENDPROCESS
    :P &FILE#

    created one SCRI after the download job

    !:SET &VALUE# = &FILE#
    :SET &HND# =PREP_PROCESS_FILE(Win01,"C:\Automic\Automation.Platform\Agents\Azureblob\Blob\&FILE#",,"COL=DELIMITER,DELIMITER=*ABC=15*,UC_LOGIN=LOGIN.WIN")
    :PROCESS &HND#
    :PSET &LINE# =GET_PROCESS_LINE(&HND#,2)
    :ENDPROCESS
    :P &LINE#

    where i have tried to download the file from Azure storage and placed it in a local server and performed few automic scripting to read the data inside the file and gave as an input&LINE# using some automic scripting, do we have any alternate way to  utilise Monitor or exist job to read the data inside a BLOB and provide an input to the successor webservice job(payload)

    Regards

    Karthick