Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I need a SQL query to get the uniqueId of a page within the BO content tree by its URL.
Have looked into the database and have not found where the page URLs are stored.
Something like:
select uniqueId, url from documentTable left join table2 on documentTable.url = table2.url
Thanks
Hi Dan.
Unfortunately I don't think this is possible. URLs are not stored in any database table, because they are set programmatically using UrlService's and ContentFinder's. https://our.umbraco.org/documentation/reference/routing/request-pipeline/icontentfinder
Instead of working with SQL queries, maybe you should have a look at the UmbracoHelper methods and programmatically generate some sort of report, if that's what you are looking on achieving? https://our.umbraco.org/documentation/reference/querying/umbracohelper/
Best of luck!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
SQL query: Get document uniqueId by URL
Hi,
I need a SQL query to get the uniqueId of a page within the BO content tree by its URL.
Have looked into the database and have not found where the page URLs are stored.
Something like:
select uniqueId, url from documentTable left join table2 on documentTable.url = table2.url
Thanks
Hi Dan.
Unfortunately I don't think this is possible. URLs are not stored in any database table, because they are set programmatically using UrlService's and ContentFinder's. https://our.umbraco.org/documentation/reference/routing/request-pipeline/icontentfinder
Instead of working with SQL queries, maybe you should have a look at the UmbracoHelper methods and programmatically generate some sort of report, if that's what you are looking on achieving? https://our.umbraco.org/documentation/reference/querying/umbracohelper/
Best of luck!
is working on a reply...