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 / Updating a record to b...
Power Apps
Answered

Updating a record to blank (same unique issue)

(0) ShareShare
ReportReport
Posted on by 557

I have a SharePoint list with a column named "UniqueIssues".  I'm trying to figure out a formula where if there are other records (created within the last 24 hours) with the same "UniqueIssues" as in this item , then update the ITTicketNumber field to blank/null.

 

Screenshot 2024-03-13 132142.png

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @joel914823 ,

    Probably something like this

    With(
     {
     _Current:
     DateAdd(
     Now(),
     -24,
     TimeUnit.Hours
     )
     },
     If(
     !IsBlank(
     LookUp(
     'Issue Tracker',
     UniqueIssues = ThisItem.UniqueIssues &&
     Created > _Current
     ).UniqueIssues
     ),
     Patch(
     'Issue Tracker',
     ThisItem,
     ITTickerNumber: Blank()
     )
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • joel914823 Profile Picture
    557 on at

    Thanks @WarrenBelz - much appreciated.  The item is not patching to blank.  Do you think it has something to do with the IsBlank?  If the UniqueIssues = Thisitem.UniqueIssues, then replace with blank.  

  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @joel914823 ,

    Turn on your Formula Level Error Management in Settings.

  • joel914823 Profile Picture
    557 on at

    Thank you @WarrenBelz  The item is not patching to blank.  Do you think it has something to do with the IsBlank?  If the UniqueIssues = Thisitem.UniqueIssues, then replace with blank.  

     

    With(
    {
    _Current:
    DateAdd(
    Now(),
    -24,
    TimeUnit.Hours
    )
    },
    If(
    !IsBlank(
    LookUp(
    Issues,
    UniqueIssues = ThisItem.UniqueIssues &&
    Created > _Current
    ).UniqueIssues
    ),
    Patch(
    'Issue tracker',
    ThisItem,
    {ITTicketNumber: Blank()}
    )
    )
    )

  • Verified answer
    WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    @joel914823 ,

    If you put this on a Label in the Gallery, do you see true when you expect to ?

    With(
     {
     _Current:
     DateAdd(
     Now(),
     -24,
     TimeUnit.Hours
     )
     },
     !IsBlank(
     LookUp(
     Issues,
     UniqueIssues = ThisItem.UniqueIssues &&
     Created > _Current
     ).UniqueIssues
    )

     

  • joel914823 Profile Picture
    557 on at

    Hi @WarrenBelz Yes.  it's coming back as true when expected so it's picking the record correctly.  Is there a way to patch to replace the value to blank.  In some cases the field may already be blank or it may have a value in it.

  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @joel914823 ,

    What type of field is ITTicketNumber - if numeric, you may have to Patch zero.

  • joel914823 Profile Picture
    557 on at

    @WarrenBelz  it is set up as a single line of text

  • joel914823 Profile Picture
    557 on at

    disregard - This worked, Thank you SO SO MUCH  (I could have sworn I turned on Formula level management and apparently it had not saved) @WarrenBelz 

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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard