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 / Result command not rec...
Power Apps
Answered

Result command not recognized with Split command with ForAll

(0) ShareShare
ReportReport
Posted on by 37

I am attempting to patch a canvas Dataverse table named SBin_Inventories using the following command:

 

ForAll(
 Split(SCont_Bins, ","),
 Patch(
 SBin_Inventories,
 Defaults(SBin_Inventories),
 {S_Bin: Trim(Result)}
 )
)

This gives the error that 'Result' isn't recognized. I've tried various combinations of code, using a collection, etc., but it always gives the same error.

 

TJJones_0-1695913941313.png

The SCont_Bins field is a text field that was populated by a Multi-Select Combobox. The S_Bin field is also a text field.

I can replace Trim(Result) with "Test" and it will create a unique record for however many split values are in the SCont_Bins field.

 

All documentation I find shows this should work. Bing Chat gave me various code snippets to try, but the issue is always the same. It is like this function is not supported. 

If anyone has some advice, I would appreciate it.

Thanks in advance!

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @TJJones , could you try:

    Patch(
     SBin_Inventories,
     ForAll(
     Split(
     SCont_Bins,
     ","
     ),
     {S_Bin: Value}
     )
    )
  • TJJones Profile Picture
    37 on at

    I believe that works! Thanks!

  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    The Split function returns a single column table called "Value", not "Result". Also, avoid preceding a Patch function with a ForAll function. While it is valid, it is inefficient.

     

    Also please remember to accept the solution.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard