cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sababneh
Level 8

Patch function not working properly

Hello,

 

I'm using the patch function to patch about 130 entry in a sharepoint list (130 columns).

 

And sometimes it is missing some fields randomly.

 

How can I make sure it is posting correctly?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Meneghino
Level 10

Re: Patch function not working properly

That is indeed what I am suggesting.  The key to tracking one service across multiple tables is to have a unique ID for each instance.  If you want to continue with SharePoint lists, this unique ID is generated automatically when a new record is created, for example on you master service list.

However, better alternatives exist for storing your data, like Azure SQL Database.

 

I am not going to get too deep, but almost any post on relational database table design will give you some insight.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Re: Patch function not working properly

Hi @Sababneh

Are you using a ForAll() to patch each row?

 

What is your function to patch all required records?

 

 

Sababneh
Level 8

Re: Patch function not working properly

No, I'm just patching one row per time.

 

Patch(OnlineTickets,
{ID:Blank()},
{
    OnlineTicketSubject:ComboBox1.Selected.Result,
    OnlineTicketDescription:adddescriptionstext.Text,
    OnlineTicketStatus:addfirststatus.Text,
    OnlineCurrentDeadline:DateTimeValue(addduedate9.Text),
    .
    .
    .
    })
Meneghino
Level 10

Re: Patch function not working properly

Are you sure you need 130 columns?  It seems a little more than would ordinarily be required for a business application.  Maybe you could rationalise your data with some relationship tables?

Sababneh
Level 8

Re: Patch function not working properly

What I'm doing is I'm tracking a service in my company, each step needs 8 columns to define where and what and when.

 

Also I have done that so I can work with Microsoft Flow much easier that always looking up data from another table.

 

Are you guys advising switching it to multiple tables?

 

How can I track one service without going to multiple pages?

Meneghino
Level 10

Re: Patch function not working properly

That is indeed what I am suggesting.  The key to tracking one service across multiple tables is to have a unique ID for each instance.  If you want to continue with SharePoint lists, this unique ID is generated automatically when a new record is created, for example on you master service list.

However, better alternatives exist for storing your data, like Azure SQL Database.

 

I am not going to get too deep, but almost any post on relational database table design will give you some insight.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (3,763)