web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using SPLIT Function t...
Power Automate
Unanswered

Using SPLIT Function to find file extension gives unexpected result

(0) ShareShare
ReportReport
Posted on by 5

Good morning everyone-

I have a flow that triggers when a new document is added to a Sharepoint library.  The properties of the uploaded SP file are then used to create a 'Document' record in Dynamics 365 Sales using CDS.  

 

Specifically I am trying to run SPLIT on the 'Link to Item' field in SP, to get the file extension and pass that to a field in Dynamics.  It IS working well, but I am having an odd result in that some records created in Dynamics don't just have the extension- they have a lot more letters at the end (that were certainly not a part of the original file in SP):

screenshot.png

 

Is there a better source in SP to get the file extension, maybe?  Any ideas on what might be adding all that extra info in the highlighted records? 

 

The Flow:

screenshot.png

Many thanks-

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    You could perform an additional operation. Use indexOf to find if there is a ? remaining in the file extension, and if there is split the extension on ?. Then the first element of your array will be just the file extension.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard