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 / ForAll, If and UpdateIF
Power Apps
Unanswered

ForAll, If and UpdateIF

(0) ShareShare
ReportReport
Posted on by 24

Hello Team,

 

I have a task that does the following:

1. Two lists TestPS and 'Test IE'
2. If the OBS column in 'Test IE' is found in OBS column of TestPS, the field_5 value in 'Test IE' should be set to "Urgent"
3. If the OBS column in 'Test IE' is blank or not found in OBS column of TestPS, the field_5 value in 'Test IE' should be set to "Normal".
::::::::::::::::::::::::::::::::::::::::::::::
OBS_x002f_Invoice is from the 'Test IE' 
OBS/Invoice# is from TestPS
The code below is what I have used:

// Update records in TestIE based on conditions
ForAll(
TestPS,
If(
OBS_x002f_Invoice = "OBS/Invoice#",
UpdateIf(
'Test IE',
OBS_x002f_Invoice = "OBS/Invoice#",
{ field_5: {Value: "Urgent"} }
),
UpdateIf(
'Test IE',
IsBlank(OBS_x002f_Invoice) || !(OBS_x002f_Invoice = "OBS/Invoice#"),
{ field_5: {Value: "Normal"} }
)
)
)

Error message is that OBS_x002f_Invoice from the If statement says: Name is not valid, OBS_x002f_Invoice is not recognized.

How do I fix this or is there a better way?

Categories:
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @SShoyombo 

     

    my first guess is that the spelling of OBS_x002f_Invoice is not correct. powerapps is not really using this naming convention. If the Columns is calles OBS Invoice with a space between the words, powerapps only understands it when you wrap single quotes around it such as 'OBS Invoice'. Can you give it a go and try?

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • SShoyombo Profile Picture
    24 on at

    @mmbr1606 

    Thanks for your response.

    OBS_x002f_Invoice is actually the internal name. I renamed the column to OBS but the internal name did not change.

  • SShoyombo Profile Picture
    24 on at

    The below works but I am having delegation warning on the higlighted in Bold.
    How can I fix?

    ForAll(
    TestPS,
    If(
    IsEmpty(Filter('Test IE', OBS = TestPS[@'OBS/Invoice#'])) || IsBlank(TestPS[@'OBS/Invoice#']),
    UpdateIf(
    'Test IE',
    OBS = TestPS[@'OBS/Invoice#'],
    { field_5: {Value: "Normal"} }
    ),
    UpdateIf(
    'Test IE',
    OBS = TestPS[@'OBS/Invoice#'],
    { field_5: {Value: "Critical"} }
    )
    )
    )

  • realwillwright Profile Picture
    772 Moderator on at

    Hi @SShoyombo 

     

    Attached is an article which helps get around/minimise delegation issues SharePoint Delegation Cheat Sheet For Power Apps (matthewdevaney.com)

     

    I suspect IsEmtpy isn't delegable. Generally in SharePoint Text and Number columns work best when filtering. Another article shows all delegable functions in SharePoint SharePoint - Connectors | Microsoft Learn

    -------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @SShoyombo 

     

    how many rows has your datasource?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard