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 function not wor...
Power Apps
Answered

Patch function not working

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a problem with my Patch function. I don't get any error, but the function does nothing. 

 

What I want is to set the text field "Försenad" to either "Ja" or "Nej" depending on two different controls. 

 

If(And(
DateValue8.Value <= Today(); Text(DataCardValue1.Selected.Value) = "Nej");
Patch(
LookUp(Projekt; ID = DataCardValue35.Value);
{
Försenad: "Ja"
}
);
Patch(
LookUp(Projekt; ID = DataCardValue35.Value);
{
Försenad: "Nej"
}
)
)

 

What is it I am missing here?

 

Regards, 

Niclas

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

    @niclasjohansson 

    Patch() requires three elements, the datasource being patched, the record being patched, and the fields being patched.  In you formulae you are missing the first element

    Patch(ProjektLookUp(Projekt; ID = DataCardValue35.Value); {Försenad: "Ja"})

  • niclasjohansson Profile Picture
    on at

    Thank you! 


    I should have noticed that. Sometimes the eyes just don't work as they should.. Works just perfectly fine now. 🙂

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 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard