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 / Patch misses out one f...
Power Apps
Answered

Patch misses out one field

(0) ShareShare
ReportReport
Posted on by 340

Hello. Could anybody help me understand why this patch doesn't work correctly please?

 

Patch

('SharePoint List',First
(Filter(' SharePoint List',ID = ApprovalPage_Form.Selected.ID)) ,
{Status:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",Id:1,Value:"Rejected",
'Reason For Rejection': ReasonForRejectionTextInput.Text}})
;

Office365Outlook.SendEmailV2(ThisItem.'Created By'.Email, "Form request has been rejected", "Hi" & "<br>" & "<br>" &
"Text " & Textbox.Text & " has been rejected due to: " & ReasonForRejectionTextInput.Text & ". Please address this issue before we can proceed with your request.")
;Reset(ReasonForRejectionTextInput)

 

 

It all patches fine, apart from the reason for rejection text input. The SharePoint column is set to text. It just doesnt bring that through in the first bit of code. It does come through with the send email part. 

Any suggestions please?

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    It looks like the rejection is part of the Status value. I moved one of the squiggly brackets, so give this a try:

     

    ('SharePoint List',First
    (Filter(' SharePoint List',ID = ApprovalPage_Form.Selected.ID)) ,
    {Status:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",Id:1,Value:"Rejected"},
    'Reason For Rejection': ReasonForRejectionTextInput.Text})
    ;
    
    Office365Outlook.SendEmailV2(ThisItem.'Created By'.Email, "Form request has been rejected", "Hi" & "<br>" & "<br>" &
    "Text " & Textbox.Text & " has been rejected due to: " & ReasonForRejectionTextInput.Text & ". Please address this issue before we can proceed with your request.")
    ;Reset(ReasonForRejectionTextInput)

     

  • pricey79 Profile Picture
    340 on at

    @Jeff_Thorpe 

    Thank you so much, that works now. Much appreciated 

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard