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 / having problems with a...
Power Apps
Answered

having problems with a patch !

(0) ShareShare
ReportReport
Posted on by 1,257 Super User 2024 Season 1

I have a patch function that updates a sharepoint list with various actions, I'm trying to add an action into the Patch but it errors out when I do.

 

Here's what I add in and which causes an error

 

,withinsla: If(DPCurrentSLADate.SelectedDate<=DateToday,"Yes","No"})

 

I haven't put the rest of the patch bits in they work fine, this is the last item hence ending with the squigly and plain brackets.

 

DateToday is a global variable that is set on app start for todays date.

 

Basically I'm trying to update a text field (withinsla) with either "Yes" or " No" depending on if it's within the SLA when Patch is done..  

 

Is there a better way for me to approach it? or is there something obvious as to why It's not working?  As I said if I take the above out of the patch statement (which updates other fields) all works fine.  have tried various options of brackers in different places etc..

 

TIA

 

 

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

    Soon as I typed that I realised the issue !!🙄 missing round bracket after No)

  • alrezac Profile Picture
    Microsoft Employee on at

    Hi,

     

    Thanks for your follow up post. I am glad to see that you were able to figure out the issue. Hopefully this will prove useful to future communities users.

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard