Skip to main content
Community site session details

Community site session details

Session Id : kbARPFd2+KIfk1YzyK9MBk
Power Automate - Using Flows
Answered

Add attachment adding file to wrong SP list Item

Like (0) ShareShare
ReportReport
Posted on 21 Apr 2020 20:10:43 by 27

I've come across a weird issue. My flow creates a signature file from a Powerapp which I then want to attach to the SP list that it belongs to. Problem being it consistently attaches it to the before last record. It's like it references the wrong ID. Has anyone come across this behavior before?

 

My Powerapp formula is: 

 

'Signatureworkflow2-2'.Run(Mid(JSON(PenInput3.Image,IncludeBinaryData),24,Len(JSON(PenInput3.Image, IncludeBinaryData)) - 24),Last([@'Employee Injury Report']).ID);SubmitForm(EditForm1);ResetForm(EditForm1);

 

Txs!

 

 
 
 
  • Verified answer
    Thuberdeau Profile Picture
    27 on 23 Apr 2020 at 12:04:11
    Re: Add attachment adding file to wrong SP list Item

    Yes that worked! So simple. Thankyou @EricaBao !!

  • Erica0214 Profile Picture
    on 23 Apr 2020 at 03:54:04
    Re: Add attachment adding file to wrong SP list Item

    @Thuberdeau 

     

    I see in your fomula, you are updating the image to the last record ID of the sharepoint list. However when you update the image, the form in powerapps (which is to create the new item, I suppose) has not been submitted yet.

     

    Can you try put the function SubmitForm(EditForm1) before the flow launching function? 

    Regards,

    Erica

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow