Dear all, apologizes in advance for the probably silly question, but I am new at this and I could not find any example
a customer of mine is sending me a file always with the same filename, and I need to be able to save it and be sure that it will not be overwritten
for example adding a timestamp would be perfect (but preserving the extension)
EUC2313.xml → EUC2312_20230828101211.xml
EUC2313.xml → EUC2312_20230828101313.xml
how could I do this ? I can not use filepath or filename
I am also looking for the same script to append the file name. I am getting API response and need to add yyyyMMddHHmmssff in the file name while archiving into Azure blob.
Just to be sure, let’s say I want a file to be renamed from 990Response_Input.xml to Company-990Response_Input.xml, but the "Company-” name is not the name of a Connector.
How can I add the text "Company-” in front of the current filename, as I can’t use the replace formatter?
It seems to me that you are both using CData Arc, and if that is the case, every connector has a field in the Advanced tab called Local File Scheme - this field can be used to rename the output file from it’s original format into a new pattern, using macros to dynamically resolve the original filename or values such as a timestamp.
@RichardG - to prefix your AS2 file with a static string, you’d simply set the Local File Scheme to this:
Company-%Filename%
@bvbert1969 - to append a timestamp regardless of the original filename, you can use a combination of macros:
This website stores cookies on your computer. These cookies are used to collect information about how you interact with our website and allow us to remember you. We use this information in order to improve and customize your browsing experience and for analytics and metrics about our visitors both on this website and other media.
Review section III of our Privacy Policy for more information on cookies.
To opt out of “sale” or “sharing” of non-cookie data, visit our Privacy Rights Request Form.