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 / Change Status of recor...
Power Apps
Unanswered

Change Status of record with button in Canvas App

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi I have a canvas app with a button called 'Deactivate' when I click the button I want it to deactivate the record that I am in on the edit screen. How is this possible ?

 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Anonymous 

    If you are talking about DataVerse; record please use below:

    Patch(
     TableName,
     LookUp(
     TableName,
     TableNameid = recordidonyour),
     {statecode: 'Status (TableName)'.Inactive,
     statuscode: 'Status Reason (TableName)'.Inactive}
    );

     

     

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 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard