You will need to replace the encoded value. From the Id %7BB416980B-40A7-4C8F-8F98-375DD1CD9544%7D
you are passing, you will replace
%7B with {
%7D with }
Then you will have the Id as {B416980B-40A7-4C8F-8F98-375DD1CD9544}
. Once you have the Id in a proper state, you can then search the corresponding Sitecore Item using the Sitecore APIs.
UPDATE
If you are using Item Name in the url. This is not recommended to search via Item Name because
- this can cost you in terms of performance.
- you may end up with more than 1 item if item names are not unique.
One way you can use search via Item Name is if you already know the Parent Item and also if Item Name is unique.
For example, /sitecore/content/my site/products/product A
and /sitecore/content/my site/products/product B
and so on. So based on this, the parent item is products
. So, you can build the path including the item name and search for the item: /sitecore/content/my site/products/{item name here}