web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Unable to lookup GUID ...
Power Apps
Answered

Unable to lookup GUID value Patched to SharePoint

(0) ShareShare
ReportReport
Posted on by 383

Hi Power Apps Community,

Issue: I am trying to Lookup a GUID value in SharePoint - which is generated in Power Apps and then Patched to SharePoint using the following:

Set(varGUID, Text(GUID()));

If the value matches, then the Checked.Icon with appear. The following is on the Icon property:

If(IsBlank(LookUp(SP List, GUID in varGUID)), "", Icon.Check)

Unfortunately, no result is returned when performing the required action.

Will appreciate any help.

Thank you in advance.  

 

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,989 Moderator on at

    @Data_Enthusiast

    LOOKUP only returns a single result so you do not want to use the IN operator which can return multiple results.

     

    If(IsBlank(LookUp(SP List, GUID = varGUID)), "", Icon.Check)

     

    Also, when using a variable in a LOOKUP the function becomes non-delegable.  If your GUID is beyond the delegation limit of 500 rows (or 2,000 rows if you increased the settings) the record will not be found.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Data_Enthusiast Profile Picture
    383 on at

    Hi @mdevaney 

    Thank you for the response and clarity.

    I changed the script as suggested by your post, but unfortunately no icon value is returned - when there is a GUID value.

    I can confirm that the SP List which is referenced for the Lookup does have the associated GUID value.

  • mdevaney Profile Picture
    29,989 Moderator on at

    @Data_Enthusiast 
    How many rows in your SharePoint list?

  • Data_Enthusiast Profile Picture
    383 on at

    @mdevaney 

    I had the delegation warning pop-up. As a result, I referenced my SharePoint Lists in a Collection to avoid the warning.

  • mdevaney Profile Picture
    29,989 Moderator on at

    @Data_Enthusiast 
    Can you confirm the record you are targeting appears in your collection?  The collection will only store as many records as the delegation limit setting allows.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

  • Data_Enthusiast Profile Picture
    383 on at

    @mdevaney 

    Yes, I can confirm that the value being targeted appears in the Collection.

    However, I noticed now that the value is between "<div></div>" property. I'm guessing this could be the issue...

  • mdevaney Profile Picture
    29,989 Moderator on at

    @Data_Enthusiast 

    Agreed.  I do not know why there would be HTML code beside your GUID.  Any ideas? 

  • Data_Enthusiast Profile Picture
    383 on at

    @mdevaney 

    The column which holds the GUID value in SP is a Multi-line text field. I'm assuming that this may be the reason....

    ImageExample.JPG

    But will investigate more to see why it returns the value in this format. 

  • mdevaney Profile Picture
    29,989 Moderator on at

    @Data_Enthusiast 
    Maybe it has to do with how you are writing the value to the datasource.

  • Data_Enthusiast Profile Picture
    383 on at

    @mdevaney 

    I am Patching the variable:

    Patch('SP List', {GUID: varGUID})

    The value displayed from SharePoint shows accordingly. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard