Forum Discussion
christina_hoeglinger
Sep 25, 2019Copper Contributor
Naming of attachments in Flow
I have the following question: I have created a flow to save attachments from a certain mail address to sharepoint. Now I want to name the files with flow when I save them in sharepoint. The name of...
- Sep 25, 2019
You can use an "Initialize Variable" action to strip out the unnecessary text and then use that variable to set the file name.
Here is the code for the variable (based on your example):
last(split(first(split(variables('varEmailSubject'), ' - ')), ' '))
"varEmailSubject" stores your example email subject line of "text text 11849850 - text". You will have to change it to the correct "Dynamic Content" within Flow.Here is how it looks in Flow and the output:I hope this helps.Norm
Norman Young
Sep 25, 2019MVP
You can use an "Initialize Variable" action to strip out the unnecessary text and then use that variable to set the file name.
Here is the code for the variable (based on your example):
last(split(first(split(variables('varEmailSubject'), ' - ')), ' '))
"varEmailSubject" stores your example email subject line of "text text 11849850 - text". You will have to change it to the correct "Dynamic Content" within Flow.
Here is how it looks in Flow and the output:
I hope this helps.
Norm
- christina_hoeglingerSep 26, 2019Copper Contributor
Thank you so much! Worked like a charm 🙂Norman Young