cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

Re: Using the values returned by behaviour formulas (i.e. Patch)

Thank you, All. 

Also wish there was additional/better documentation on this. 

The UpdateContext isn't what I am looking for as much as updating the actual Collection itself. 

How is that done? I don't think it is automatic, is it, unless one does a forced refresh: Refresh(Collection, SQLTable) ?

Highlighted
Post Patron
Post Patron

Re: Using the values returned by behaviour formulas (i.e. Patch)

Hello, @murali 

Can you please iterate how we would update the collection as you specified:
UpdateContext({Submitted: Patch(....)})

 

We need to retrieve the RowId Identity value from the newly inserted rows (there could be many in the one insert) in SQL Server and update the "RID" column in our collection, with that RowId value?

 

We are using the following command to insert rows into SQL Server:

 

If(Connection.Connected,
Collect('[dbo].[Recommendation_Improved]', DropColumns(Filter(Recommendation, ActiveStatus="N"),"RID","ActiveStatus")));

 

The table is: [dbo].[Recommendation_Improved] (Identity seeded is RowId)

The collection is: Recommendation (Column to be updated is: RID)

Thank you.

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

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 (5,232)