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 / powerautomate need two...
Power Apps
Answered

powerautomate need two fields to come across into sharepoint

(0) ShareShare
ReportReport
Posted on by 407

I have a  instant flow that converts an image over to my sharepoint library called ImagesToJSON, 

In the app, the onchange of my addmediabutton is, 
If(UploadedImage1_2.Image=SampleImage, "", Collect(ImageCollection,{Image1:UploadedImage1_2.Image, FileName:Label1_2.Text & "-" & Text(Now(),"ddmmyyyyhhmmssms") & ".jpg",Description_Disassembly:Description_txt.Text}))

On the Upload button, i have the onselect set to,
UpdateContext({VarLoading:true});
Set(ImagesToJSON, JSON(ImageCollection,JSONFormat.IncludeBinaryData));Disassembly_1.Run(ImagesToJSON);Reset(AddMediaButton1_2);Clear(ImageCollection)

The image comes across into sharepoint without a problem but would like to also bring a Description field across with it as well. Is it possible to modify the flow to bring the Description_txt content over to the sharepoint library with the image? Any advice would be much appreciated.

 

Matt383_0-1681701242695.png

Matt383_2-1681701494709.png

The file content of this is set to 

dataUriToBinary(items('Apply_to_each')['Image1'])

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Matt383 

     

    Please try:

    vbofengmsft_0-1681709703308.png

     

    Best Regards,

    Bof

     

  • Matt383 Profile Picture
    407 on at

    Hi, thanks for getting back to me. When i refresh the Assembly automate, error is showing up. 

    Is the Description_Assembly, the updatefileproperty is triggerbody()['Updatefileproperties_[Description_Assembly']

    Matt383_0-1681712738772.png

    Matt383_1-1681712781420.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Matt383 ,

     

    Please try:

    Disassembly_1.Run(ImagesToJSONm,TextInputControl.text)

     

    Best Regards,

    Bof

  • Matt383 Profile Picture
    407 on at

    Matt383_0-1681714140688.png

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Matt383 ,

     

    Could you please show me the error message?

     

    Best Regards,

    Bof

  • Matt383 Profile Picture
    407 on at

    It just says 

    Issue

    Invalid number of arguments: received 2, expected 1.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Matt383 ,

     

    Did you selected 'Ask in powerapps' here? It will add an other argument for the trigger . After do that , you should refresh the flow in the canvas app.

    vbofengmsft_0-1681716493057.png

     

    Best Regards,
    Bof

     

  • Matt383 Profile Picture
    407 on at

    Yes, i did select ask in powerapps. I was a test app for this and realised that the collection had not been updated to include Description_Assembly 😕 After that in, all is working as should. Thanks for your help

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard