Hi,
I've created a flow to create a SharePoint list item when an email arrives. I would like the title field to be the attachment filename without the extension.
I've searched but been unable to find the right code to strip the extension from the file name.
Any help would be appreciated.
Solved! Go to Solution.
Hi @Anonymous,
You could get the name without extension of the attachment by using the function provided by Expression.
Formula reference:
replace(items('Apply_to_each')['Name'],concat('.',last(split(items('Apply_to_each')['Name'],'.'))),'')
Flow configuration:
Output result:
Please take a try.
Best Regards,
Barry
Hi @Anonymous,
You could get the name without extension of the attachment by using the function provided by Expression.
Formula reference:
replace(items('Apply_to_each')['Name'],concat('.',last(split(items('Apply_to_each')['Name'],'.'))),'')
Flow configuration:
Output result:
Please take a try.
Best Regards,
Barry
Hi - that worked great. Apologies for the delay in coming back to you - the reply notification ended up in my spam folder.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
15 | |
13 | |
13 | |
10 | |
10 |
User | Count |
---|---|
32 | |
26 | |
18 | |
12 | |
12 |