cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

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
Highlighted
Community Champion
Community Champion

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
Highlighted
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?

 

 

Highlighted
Resolver I
Resolver I

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),
    .
    .
    .
    })
Highlighted
Community Champion
Community Champion

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?

Highlighted
Resolver I
Resolver I

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?

Highlighted
Community Champion
Community Champion

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,428)