cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paulinuk
Post Patron
Post Patron

Cannot run flow via powerapps

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

1 ACCEPTED SOLUTION

Accepted Solutions
v-yujincui-msft
Community Support
Community Support

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-Sharepoin...

 

 

Best Regards,
Charlie Choi

View solution in original post

1 REPLY 1
v-yujincui-msft
Community Support
Community Support

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-Sharepoin...

 

 

Best Regards,
Charlie Choi

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,073)