- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to save flowfile as filename.xlsx in Nifi?
- Labels:
-
Apache NiFi
Created ‎05-03-2020 05:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Friends,
I have scenario, where I need to convert flowfile as .xlsx file on to disk, is it possible with nifi?
Thanks
Created on ‎05-04-2020 11:17 AM - edited ‎05-04-2020 11:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
