cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Create SharePoint list item from attachment, removing file extension

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Create SharePoint list item from attachment, removing file extension

Hi @Avallon,

 

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:

17.PNG

Output result:

18.PNG

Please take a try.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Create SharePoint list item from attachment, removing file extension

Hi @Avallon,

 

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:

17.PNG

Output result:

18.PNG

Please take a try.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

Re: Create SharePoint list item from attachment, removing file extension

Hi - that worked great. Apologies for the delay in coming back to you - the reply notification ended up in my spam folder.

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Users online (5,049)