Hi everyone,
I'm build a flow which capture the user input to a word template and then convert the word file to PDF, everything is ok until I try to add date and time to the file name. I use this expression as my file name:
FormatDateTime(utcNow(),'s')
this is how my flow looks:
this is the error details:
this is the input of the "convert word to pdf" action
I think it the space in the file name that prevent the action to access the file, but I don't how to get rid of them, can anyone help me?
Solved! Go to Solution.
Hello @Derek4 ,
Can you change your expression to FormatDateTime(utcNow(),'dd-mm-yy') and try if it works?
In case if it does not, please expand the individual actions within the scope and post screenshots and also the error you may get after trying this out.
Hi @NiloferA ,
I tried this:
concat('-Print-Date-',FormatDateTime(utcNow(),'yyyy-MM-dd'),'-Time-',FormatDateTime(utcNow(),'hh-mm-tt'))
and everything is ok now, looks like generate PDF action must use '-' to work and can't have empty space...
Hello @Derek4 ,
Can you change your expression to FormatDateTime(utcNow(),'dd-mm-yy') and try if it works?
In case if it does not, please expand the individual actions within the scope and post screenshots and also the error you may get after trying this out.
Hi @NiloferA ,
thank you for your reply and it works, I'm now one step closer to what I need!
is it possible that I add not only date but also time to the file name?
Hi @NiloferA ,
I tried this:
concat('-Print-Date-',FormatDateTime(utcNow(),'yyyy-MM-dd'),'-Time-',FormatDateTime(utcNow(),'hh-mm-tt'))
and everything is ok now, looks like generate PDF action must use '-' to work and can't have empty space...
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
User | Count |
---|---|
32 | |
31 | |
24 | |
24 | |
20 |
User | Count |
---|---|
60 | |
57 | |
43 | |
37 | |
28 |