SOLVED

Get the list GUID with SPFX

%3CLINGO-SUB%20id%3D%22lingo-sub-198492%22%20slang%3D%22en-US%22%3EGet%20the%20list%20GUID%20with%20SPFX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198492%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20get%20the%26nbsp%3BListGuid%20in%20SPFX%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20is%20it%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EAmerico%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-198492%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199530%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20the%20list%20GUID%20with%20SPFX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199530%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20to%20both!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-198599%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20the%20list%20GUID%20with%20SPFX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198599%22%20slang%3D%22en-US%22%3ESPO%20Admin%20is%20correct%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-198504%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20the%20list%20GUID%20with%20SPFX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198504%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20use%20REST%20API%20Get%20call%20like%20below%20to%20get%20GUID%20of%20a%20specific%20list%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fyourtenant.sharepoint.com%2F_api%2Fweb%2Flists%2FGetByTitle('ListTitle%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fyourtenant.sharepoint.com%2F_api%2Fweb%2Flists%2FGetByTitle('ListTitle%3C%2FA%3E')%3C%2FP%3E%3CP%3EYou%20can%20easily%20find%20guid%20in%20the%20xml%20response.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

Hi,

 

How can I get the ListGuid in SPFX? 

 

That is it :) 

 

Best regards

Americo

 

3 Replies
Highlighted
Solution

You can use REST API Get call like below to get GUID of a specific list

https://yourtenant.sharepoint.com/_api/web/lists/GetByTitle('ListTitle')

You can easily find guid in the xml response.

Highlighted
SPO Admin is correct :)
Highlighted

Thanks to both!