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 / Approval and rejection
Power Apps
Unanswered

Approval and rejection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi Experts

i am trying to create an approval app without power automate. in the app  any records that is 

1. created 

2. modified 

3. delete

we need an approval. 

for record creation and rejection my app is working fine but when it comes to update/modified the record if it gets rejected the value in sharepoint is still the new one instead of reverting to old value. 

 

currents situation: 

i have one Approval and rejection button

when ever record is created or modified or deleted will be routed to this approval screen. 

 

pokhani_0-1652965363000.png

pokhani_1-1652965423666.png

 

this is working fine

 

Whereas  in my rejection if i reject it will gets rejected but the value in SharePoint wont change to the previous value. 

pokhani_0-1652965735173.png

 

how can i do that 

my rejection code: 

If(
!IsBlank(varRecds.ModifiedBy) && varRecds.ActiveStatus.Value = "Active",
Set(
varRecds,
Patch(
Forecast,
varRecds,
{
ApprovalStatus: "Rejected",
ActiveStatus: {Value: "Active"}

}
)
);
Office365Outlook.SendEmailV2(
varRecds.ModifiedBy,
"Approval for" & varRecds.EmployeeName & "'s has been rejected",
"Bummer, the Recdss is not compliant:<br>" & ",<br>Rejector:" & varUser.FullName,
{Cc: varUser.Email}
);
,
If(
IsBlank(varRecds.ActiveStatus),
Remove(
Forecast,
varRecds
)
);
Office365Outlook.SendEmailV2(
varRecds.CreatedBy,
"Approval for" & varRecds.EmployeeName & "'s has been rejected",
"Bummer, the Recdss is not compliant:<br>" & ",<br>Rejector:" & varUser.FullName,
{Cc: varUser.Email}
);
,
If(
varRecds.ActiveStatus.Value = "Inactive",
Set(
varRecds,
Patch(
Forecast,
varRecds,
{
ApprovalStatus: "Rejected",
ActiveStatus: {Value: "Active"},
TerminationDate: Blank(),
ModifiedBy: User().Email
}
)
);
Office365Outlook.SendEmailV2(
varRecds.ModifiedBy,
"Deletion Approval for" & varRecds.EmployeeName & "'s has been rejected",
"Bummer, the Recdss is not compliant:<br>" & ",<br>Rejector:" & varUser.FullName,
{Cc: varUser.Email}
)
);

ResetForm(Form1)
);
Set(
varReject,
false
);
Navigate(Welcome);

 

 

Categories:
I have the same question (0)

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard