Forum Discussion
@siwadon: Thanks for the clarification, I’ve replied to my previous comment so that you can check the screenshot of a successful run.
Date.now() works well if I’m passing a parameter for writing my files however if I provide a static name to a file (e.g. TestFile) and want to ingest Date.now(), it doesn’t work.
Again, Date.now() to a static file name would work if the files are written in snapLogic Manager however I faced the challenge while writing the files to a sftp.
Let me know if you need any further clarifications and I would be more than happy to provide you all the details.
Understood but I don’t think it’s the problem with the static or dynamic reference if you can write other files to the FTP server without any problems. The only thing I could think of is that the filename contains illegal characters.
Can you please try the expression below first?
Date.now().toLocaleDateTimeString({"format":"yyyyMMddHHmmss"})
- umashankar3167 years agoNew Contributor II
Hi,
I think check once you are providing proper value for authorization it should work.
e.g Key : Authorization Value : Bearer xb4z7ienvcv5baqrmgidajaqf96vys06
Thanks,
Umashankar - tlikarish7 years agoEmployee
Can you be more specific about what you’re trying to do and the reason you can’t use HTTP headers to pass the token?
You may also be able to pass it through the query string or alternatively could use HTTP Basic auth.
See this documentation for some examples.