cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
OsmandFernando
Post Prodigy
Post Prodigy

ID field Value to copy to another field in the same list

Dear Experts, 

 

Finally, I found a solution to have more than 2000 records in my collections. Thank you @WarrenBelz for the Solution

 

Now I have a new concern where I need support. I have several lists that are updating with Patch functions. So I can not apply the Onsuccess formula in the above solution. How can I get the ID field value to my Shadow ID field with Patch maybe after creating the record via patch?

 

Capture.JPG

Thank you Osmand

3 ACCEPTED SOLUTIONS

Accepted Solutions
eka24
Super User III
Super User III

Try

Patch( ChequesReceived,
First( Filter( ChequesReceived, ID= 72 ) ), { ShadowID: 72 } )

 

If you are using textboxes;

Patch( ChequesReceived,
First( Filter( ChequesReceived, ID= Textbox1.Text) ), { ShadowID: Textbox1.Text} )

 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Hi @OsmandFernando ,

I think there is something wrong with your formula, you should modify your formula as below (set the Text property of a Label to following):

Last(SalesDetails_1).ID

 

Please try it, check if it could help in your scenario.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Try

Last(SalesDetails_).ID

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

7 REPLIES 7
eka24
Super User III
Super User III

Try

Patch( ChequesReceived,
First( Filter( ChequesReceived, ID= 72 ) ), { ShadowID: 72 } )

 

If you are using textboxes;

Patch( ChequesReceived,
First( Filter( ChequesReceived, ID= Textbox1.Text) ), { ShadowID: Textbox1.Text} )

 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @OsmandFernando ,

Do you want to copy the Value from the ID column into the MyShadowID column?

 

Based on the needs that you mentioned, I think the OnSuccess property of the Edit form and the Patch function could achieve your needs.

Please add the following formula within the OnSuccess property of the Edit form (EditForm1) to following:

Patch(                        // add this Patch formula to modify the MyShadowID column value
      'Cheques Received',
      EditForm1.LastSubmit,
      {
        MyShadowID: EditForm1.LastSubmit.ID
      }
);
Back()

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-xida-msft  @eka24  Thank you for your replies I really appreciate it. 

 

In my case I do not have a form, I am using the patch to update a list from a different form. I think I am almost there using your idea Now I want t get the last ID to a label to apply the solution of @eka24 . When I try to get the Last ID to a label it tells me "Expected Text Value" following is the screen shot

 

Annotation 2020-05-25 124056.jpg

 

Thanks, 

Osmand

Hi @OsmandFernando ,

I think there is something wrong with your formula, you should modify your formula as below (set the Text property of a Label to following):

Last(SalesDetails_1).ID

 

Please try it, check if it could help in your scenario.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Try

Last(SalesDetails_).ID

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

OsmandFernando
Post Prodigy
Post Prodigy

@eka24  @v-xida-msft  Thank you to both. Your combination helped me to solve the issue. Now I can have the shadow ID even not having the form. Then to have the collection without limiting to 2000 rows. This is a great milestone for me. 

 

Osmand

Hi @OsmandFernando ,

If the solution I provided above also help in your scenario, please consider go ahead to click "Accept as Solution" to identify my reply as helpful.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,513)