web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ID field Value to copy...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by

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

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    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.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    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,

  • OsmandFernando Profile Picture
    on at

    @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

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    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,

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    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.

  • OsmandFernando Profile Picture
    on at

    @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

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    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,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard