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 / Getting the ID of an i...
Power Apps
Answered

Getting the ID of an item just added to a SharePoint list?

(0) ShareShare
ReportReport
Posted on by 377

Hi

I have a Power Apps Canvas app and I use Patch to add items to a SP List which works fine.

I am trying to get the ID of the item after it is patched but run in to an error.

Thanks

P

 

pmwhelan_0-1707222690906.png

 

 

Set(vLastPatched,
    Patch('Suspicious Transaction Report',
    Defaults('Suspicious Transaction Report'),
    {
        'Submitter Name':  
                {
            '@odata.type': "Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                Department: "",
                Claims: "i:0#.f|membership|" & submitterName.Selected.Email,
                DisplayName: submitterName.Selected.DisplayName,
                Email: submitterName.Selected.Email,
                JobTitle: "",
                Picture: ""
            },
        'Date of Submission': dateOfSubmission.SelectedDate
        //,Attachments:attacher.Attachments
    }
    )
);

Notify("Form added" & vLastPatched, NotificationType.Information);

Patch('Suspicious Transaction Report',LookUp('Suspicious Transaction Report',ID=1),formAttachments.Updates);
Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,715 Super User 2026 Season 1 on at

    Hi @pmwhelan 

    You would need to reference the ID property vLastPatched. The syntax in your call to Notify would look like this:

    Notify("Form added" & vLastPatched.ID, NotificationType.Information);

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard