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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cannot run flow via po...
Power Apps
Answered

Cannot run flow via powerapps

(0) ShareShare
ReportReport
Posted on by 260

Hello

 

I have the code below which tries to call a flow passing the image in an image control

 

Set(varImage, JSON(Image4.Image, JSONFormat.IncludeBinaryData));
Set(varBase64Only, Mid(varImage,Find(",",varImage) + 1, Len(varImage) - Find(",", varImage) - 1));
Set(varTest, SaveAttachment.Run(Last(addAttachment.Attachments).Name, varBase64Only).sharepointfileLink);

However, this comes up with a message saying number of arguments expected 0-1 receieved 2

 

This is copied directly from a video, but I guess that MS may have made a change since this was done

 

paulinuk_0-1651828060182.png

Please can someone help asap?

 

Cheers

 

Paul

Categories:
  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @paulinuk ,

     

    Could you please provide some screenshots about your flow?

    The Add Attachment Action should be as shown below:

    vyujincuimsft_4-1652081012366.png

    Remember to refresh or re-add the connection, then try it again.

    vyujincuimsft_3-1652080717049.png

    vyujincuimsft_1-1652080532377.png

    vyujincuimsft_2-1652080606996.png

    In addition, here is a similar case for your reference.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/PowerApps-Attachment-file-names-to-Sharepoint/m-p/1569634#M403390

     

     

    Best Regards,
    Charlie Choi

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard