In this post I’m going to discuss about an easiest way to find GUID of a SharePoint list and a View which i have done today in my project . If you are using the MOSS 2007 there is straight forward way to get the List GUID, these are the steps.
1. Access the list via your browser.
2. Go to Settings --> List Settings and right-click on the "Information management policy settings" links and choose Copy Shortcut.
3. Paste the URL and you can see the GUID surrounded with "{" and "}".
If you are using WSS 3.0 follow these steps, you can use this method to find the View GUID in MOSS 2007
1. Access the list via your browser and select the View you want to find the GUID.
2. Select "Modify this View" and copy the URL.
3 You will get a URL like this,
There you can find,
You are now left with the GUIDs, in the above example;
1. Access the list via your browser.
2. Go to Settings --> List Settings and right-click on the "Information management policy settings" links and choose Copy Shortcut.
3. Paste the URL and you can see the GUID surrounded with "{" and "}".
If you are using WSS 3.0 follow these steps, you can use this method to find the View GUID in MOSS 2007
1. Access the list via your browser and select the View you want to find the GUID.
2. Select "Modify this View" and copy the URL.
3 You will get a URL like this,
http://mysite:5050/testsara/_layouts/ViewEdit.aspx?List=%7B5C65CB1A%2D2E1B%2D488A%2DAC07%2DB115CD0FC647%7D&View=%7B75E689B4%2D5773%2D43CB%2D8324%2D58E42E1EB885%7D&Source=http%253A%252F%252Fmysite%253A5050%252Ftestsara%252FLists%252FTasks%252FAllItems%252Easpx
There you can find,
List=%7B5C65CB1A%2D2E1B%2D488A%2DAC07%2DB115CD0FC647%7D
View=%7B75E689B4%2D5773%2D43CB%2D8324%2D58E42E1EB885%7D
View=%7B75E689B4%2D5773%2D43CB%2D8324%2D58E42E1EB885%7D
Replace "%7B" with "{"
Replace all "%2D" with "-"
Replace "%7D" with "}"
Replace all "%2D" with "-"
Replace "%7D" with "}"
You are now left with the GUIDs, in the above example;
List ID is {5C65CB1A-2E1B-488A-AC07-B115CD0FC647}
View ID is {75E689B4-5773-43CB-8324-58E42E1EB885}
View ID is {75E689B4-5773-43CB-8324-58E42E1EB885}
0 comments:
Post a Comment