Layer7 API Management

Expand all | Collapse all

Argument section in route via FTP

Jump to Best Answer
  • 1.  Argument section in route via FTP

    Posted 06-16-2017 04:07 AM

    Hi Team,

    I have given argument as xyz_${request.time.local.YYYYMMDD.hhmmssMS}.xml

    So i get file name as xyz_201706167.09522064. I am getting an extra 7 .Can someone please guide?



  • 2.  Re: Argument section in route via FTP

    Posted 06-20-2017 05:51 AM

    Hi SoniaMehta ,

    Please can you include more about this problem you are facing? Please attach the policy in question and a sample request.

    Regards

    Seenu Mathew



  • 3.  Re: Argument section in route via FTP

    Posted 06-21-2017 09:02 AM

    Hi SoniaMehta,

    Did you have a chance to gather more information about this problem?

    Regards

    Seenu Mathew



  • 4.  Re: Argument section in route via FTP

    Posted 06-23-2017 01:09 AM

    Hi Seenu,

    Sorry for late response.

    Below is the screenshot for same of Route via FTP assertion.

    When i am writing this argument value as  xyz_${request.time.local.YYYYMMDD.hhmmssMS}.xml and execute the policy,it sends a file to my desired 

    location but the name of the file becomes xyz_201706237.09522064  instead of xyz_20170623.09522064.

    The file name has 7 extra which i don't want.I don't know the reason of extra 7 in this.

    Hope now this is clear.My policy just has one assertion i.e Route via FTP.

    Kindly let me know if anything is required.

     



  • 5.  Re: Argument section in route via FTP
    Best Answer

    Posted 06-25-2017 09:47 PM

    Dear SoniaMehta ,

    I believe you use the wrong format string, please try

    ${request.time.local.YYYYMMdd.hhmmssMS}

     

    "dd" are in lower cases.

     

    Regards,

    Mark



  • 6.  Re: Argument section in route via FTP

    Posted 06-26-2017 05:44 AM

    Thank you!! It's working now.