Is it possible to get the GUID if I have the path to a file?
Any sample code available?
|
Is it possible to get the GUID if I have the path to a file? Any sample code available? |
||||
|
|
|
You have to use the ClientContext.Web.GetFileByServerRelativeUrl() method. Here is a sample Code:
|
|||
|
|
|
ashwnacharya's solution is correct. but you can optimize it, such that only one query execution need :
|
||||
|
|