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 / Validating data from s...
Power Apps
Unanswered

Validating data from sharepoint columns in a loop

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a problem because I would like to check the validation of 25 values from one record in a loop . Here is my code and it doesn't work because it doesn't find the ThisRecord context. Does anyone have any idea how this can be solved?

ClearCollect(
ColumnNames,
"Answer 1", "Answer 2", "Answer 3", "Answer 4", "Answer 5",
"Answer 6", "Answer 7", "Answer 8", "Answer 9", "Answer 10",
"Answer 11", "Answer 12", "Answer 13", "Answer 14", "Answer 15",
"Answer 16", "Answer 17", "Answer 18", "Answer 19", "Answer 20",
"Answer 21", "Answer 22", "Answer 23", "Answer 24", "Answer 25"
);
ForAll(
ColumnNames,
If(
IsEmpty(LookUp(ev_SP_List_Uhde_Gemba_Walk_Main, 'Identyfikator (ID)' = Gallery2.Selected.ID).ThisRecord),
Notify(ThisRecord.Value & " is missed")
)
);
Categories:
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @ShockWave21 

     

    can u try this please:

    Set(varRecord, LookUp(ev_SP_List_Uhde_Gemba_Walk_Main, 'Identyfikator (ID)' = Gallery2.Selected.ID));
    
    
    ClearCollect(ColumnNames,
     "Answer 1", "Answer 2", "Answer 3", "Answer 4", "Answer 5",
     "Answer 6", "Answer 7", "Answer 8", "Answer 9", "Answer 10",
     "Answer 11", "Answer 12", "Answer 13", "Answer 14", "Answer 15",
     "Answer 16", "Answer 17", "Answer 18", "Answer 19", "Answer 20",
     "Answer 21", "Answer 22", "Answer 23", "Answer 24", "Answer 25"
    );
    
    
    ForAll(ColumnNames, 
     If(
     IsEmpty(varRecord[@Value]),
     Notify(Value & " is missing", NotificationType.Warning)
     )
    );
    

     

    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

  • ShockWave21 Profile Picture
    on at

    ShockWave21_0-1715942136159.png

     

  • MuhammadAizaz Profile Picture
    53 on at

    Hello @ShockWave21 ,
    Can you check this code.

    ClearCollect(
    ColumnNames,
    ["Answer 1", "Answer 2", "Answer 3", "Answer 4", "Answer 5",
    "Answer 6", "Answer 7", "Answer 8", "Answer 9", "Answer 10",
    "Answer 11", "Answer 12", "Answer 13", "Answer 14", "Answer 15",
    "Answer 16", "Answer 17", "Answer 18", "Answer 19", "Answer 20",
    "Answer 21", "Answer 22", "Answer 23", "Answer 24", "Answer 25"]
    );

    ForAll(
    ColumnNames,
    If(
    IsBlank(LookUp(ev_SP_List_Uhde_Gemba_Walk_Main, ID = Gallery2.Selected.ID).[@Value]),
    Notify(Value & " is missed", NotificationType.Error)
    )
    );

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

    can u try this instead:

    Set(varRecord, LookUp(ev_SP_List_Uhde_Gemba_Walk_Main, 'Identyfikator (ID)' = Gallery2.Selected.ID));
    
    
    ClearCollect(ColumnNames,
     "Answer 1", "Answer 2", "Answer 3", "Answer 4", "Answer 5",
     "Answer 6", "Answer 7", "Answer 8", "Answer 9", "Answer 10",
     "Answer 11", "Answer 12", "Answer 13", "Answer 14", "Answer 15",
     "Answer 16", "Answer 17", "Answer 18", "Answer 19", "Answer 20",
     "Answer 21", "Answer 22", "Answer 23", "Answer 24", "Answer 25"
    );
    
    
    ForAll(ColumnNames, 
     If(
     IsEmpty(varRecord[@ThisRecord.Value]),
     Notify(ThisRecord.Value & " is missing", NotificationType.Warning)
     )
    );
    

     

    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

  • ShockWave21 Profile Picture
    on at

    ShockWave21_0-1715945684455.png

     

  • ShockWave21 Profile Picture
    on at

    ShockWave21_1-1715946276252.png

     

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard