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 / Same id verus New id
Power Apps
Unanswered

Same id verus New id

(0) ShareShare
ReportReport
Posted on by 186

I have an edit form which has the fields like
student_id
student first name
student last name
Date_of_birth
Class name
class start date (comes from another sharepoint file)
class end date (comes from another sharepoint file)

Every time the form loads it assigns a new id to the student. So if the same student returns and enrolls in a new class they get a new id versus the old id.
Is this the best way to handle it. The form has a save button that has the formula like:
Patch(SharepointFile,
LookUp(SharepointFile, id=DataCardValue1.Text),
{id:DataCardValue1.Text,FirstName:DataCardValue4.Text});

Categories:
  • Dataversep Profile Picture
    32 on at

    Please let me know if the question is clear enough.

  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @dataverse ,

     

    If you're using a form, why use "Patch()" instead of "SubmitForm()"?

  • MVP-Phipps Profile Picture
    3,526 Super User 2024 Season 1 on at

    Hi @dataverse , if this is a form I recommend using SubmitForm function and not Patch.

  • Dataversep Profile Picture
    32 on at

    Wht is ur opinion on giving the student the same ud versus a new id

  • Dataversep Profile Picture
    32 on at

    What is ur opinion of giving the student a new id versus an existing old id

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard