cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BenGillard
Level: Powered On

Patch

I currently have a gallery displaying items from a SP List.

When the User selects an item it displays the item in an EditForm. I want the user to be able to add an additions Attachment at this stage and update a status click a button which will then edit the record in SP.

I am currentlu trying this on my submit button:

Patch(TestDominic2,Form1,DataCardValue6.Selected,DataCardValue5.Attachments)

 

I am getting an error, and i have no idea if this is even close to what i should be doing.

Screen shot also included if that helps 🙂ImagePowerapps.PNG

Thanks in advance

1 REPLY 1
Community Support Team
Community Support Team

Re: Patch

Hi @BenGillard,

 

Could you please share a bit more about your scenario?

Do you want to use Patch function to modify the Gallery Selected Record?

I think there is need some changes for your Patch function.

Modify or create a record in a data source:Patch( DataSource, BaseRecord, ChangeRecord1 [, ChangeRecord2, … ])

I test as next:

App test:

20190129patchapptest.jpg

Button_Submit.OnSelect:

Patch(

  '20190128-2',

    Gallery1.Selected,

   { Status:DataCardValue4.Selected}

   ,Form1.Updates

)

 

On your side:

Patch(

  'Your SP list',

    Gallery1_1.Selected

   {

   Review Status: DataCardValue6.Selected

   },Form1.Updates)

 

Result Test:

20190129patch1.gif

 

Hope this can be helpful.

Best Regards,

Yumia

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 165 members 5,763 guests
Please welcome our newest community members: