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 / Powerapps - Collect to...
Power Apps
Unanswered

Powerapps - Collect to Dataverse + Image

(0) ShareShare
ReportReport
Posted on by 4

I'm having an issue with trying to use the Collect function to pass an image to my dataverse table.

 

This is my original collect statement:

Collect('Inspection Records', {Result:DefectMode.Selected.'Defect Mode', Serial:SN.Text, 'Inspection Type':inspectArea.SelectedText.Value, WO:'Work Order'.Text, InspectorID:Employee.Selected.ID,Inspector:Employee.Selected.Name,Ref_Des:Concat(RefDes.SelectedItems, RefID, ", "),BC:BoardC})

 

I expected that I could add in DefectPicture:'UploadedImage' but it doesn't expect Image type. After searching I saw that the standard practice would be to use PowerAutomate to add the image to the table, however I'm not sure as to how to get the autogenerated rowID from the collect statement just made.

Is it possible to return a Autonumber from a collect function, or is there a better way to upload the image to the row that the data is collected for?

 

My thought is with the same pushbutton I collect and call function eg.

Collect;

Call Powerautomate function with Image data & RecordID;

Then reset all fields

 

Is there a way to do this?

Categories:
I have the same question (0)
  • AaronKGumbs Profile Picture
    94 on at

    Collecting your data changes will only add the amendments to your existing Collection, and not to the Dataverse table. In order to do this you'll need to use Patch to send data back to Dataverse. Have a go at amending your statement to Patch to Dataverse first, and then it'd be worth re-assessing whether you still have trouble with your image and get a similar error, or whether you now have the ability to do so.

  • CluelessDev Profile Picture
    4 on at

    I'm not sure what I'm doing then. I have no patch statements but my data is definitely being added to my custom table as new rows. Is a patch statement something that would be system generated somewhere?

  • AaronKGumbs Profile Picture
    94 on at

    Are you using a Form control hooked up to your custom table? If so, all of this data processing will be happening in the background. The Patch statement allows you to carry out this kind of processing whilst using a custom screen and although it's more time consuming to create, sometimes it can get around the Form control's limitations.

  • CluelessDev Profile Picture
    4 on at

    It's a powerapps canvas? The form control being the push button?

     

    joseph_quan_0-1678902125997.png

    joseph_quan_1-1678902182502.png

     


    The push button:
    If(IsBlank(DefectMode.Selected.'Defect Mode'),Pass, Set(DefDetails,Concatenate(DefDetails, "Result: " , DefectMode.Selected.'Defect Mode' ," Ref Des: ", Concat(RefDes.SelectedItems, RefID, ", "),Char(13))));
    If(IsBlank(DefectMode.Selected.'Defect Mode'),Pass, Collect('Inspection Records', {Result:DefectMode.Selected.'Defect Mode', Serial:SN.Text, 'Inspection Type':inspectArea.SelectedText.Value, WO:'Work Order'.Text, InspectorID:Employee.Selected.ID,Inspector:Employee.Selected.Name,Ref_Des:Concat(RefDes.SelectedItems, RefID, ", "),BC:BoardC}));
    If(IsBlank(DefectMode.Selected.'Defect Mode'),Pass,Reset(RefDes));
    If(IsBlank(DefectMode.Selected.'Defect Mode'),Pass,Set(BoardC,0));
    If(IsBlank(DefectMode.Selected.'Defect Mode'),Pass,Reset(DefectMode));

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 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard