Support Questions

Find answers, ask questions, and share your expertise

How to save flowfile as filename.xlsx in Nifi?

avatar
Rising Star

Hi Friends,

 

I have scenario, where  I need to convert flowfile as .xlsx file on to disk, is it possible  with nifi?

 

Thanks

 

1 REPLY 1

avatar
Expert Contributor

Hi,

 

i think your data-format .xlsx is Content of your Flowfile and you don´t have to convert it firtstly?


So you can easy add a UpdateAttribute Processor and add the Dynamic-Property "filename"

With this Property you overwrite the actually set Filename (you can see there is already an Attribute called "filename" from beginning).

As Value you can set the name via Attribute and add the format there

e. g.

 

${filename:append('.xlsx')}

 

or just hard coded like 

 

file123.xlsx

 

 

And after that you add a PutFile or FTP or whatever Processor and send it to the Path you set there.