Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Getting file attachment extension failing

Posted on by 70

I'm trying to get the file attachment extension from a file uploaded as an attachment to SP List using last(split(Check_if_Request_has_Attachments()?['file']?['name'], '.')) in a compose action. 

 

tpcolson_0-1713366012176.png

 

It fails with 

tpcolson_1-1713366057345.png

 

I have tried many many many variations of last(split(Check_if_Request_has_Attachments()?['file']?['name'], '.')) for hours now, nothing works, fails every time. 

 

 

  • tpcolson Profile Picture
    tpcolson 70 on at
    Re: Getting file attachment extension failing

    I can, but not sure if the lack of the condition is specifically the reason for the error? I have a get attachments action previously in the flow. What will the condition fix. In the test that I'm doing, the attachment exists, and I'm not looking to check if one exists or not: I need to check the file attachment name IF it exists. 

  • SimranSachdeva Profile Picture
    SimranSachdeva 22 on at
    Re: Getting file attachment extension failing

    Hi @tpcolson , Could you please try to put a condition to check if the item has attachment or not?

    SimranSachdeva_0-1713369276193.png

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard