كيفية العثور على عنوان URL لمكتبة المستندات حسب عنوان بريدك الإلكتروني
-
10-12-2019 - |
سؤال
لدي عنوان البريد الإلكتروني فقط لمكتبة المستندات وعليك العثور على الموقع الدقيق لمكتبة المستندات، هل هذا شيء ممكن؟إذا كان الأمر كذلك، كيف؟
المحلول
As Eric said, you shouldn't be directly querying the database. I would recommend using the PowerShell to check CanReceiveEmail
and EmailAlias
properties of SPList
to exactly find the list location. See the script below:
$SPsite = Get-SPSite "http://mysitecollection"
foreach($SPweb in $SPsite.AllWebs) # get the collection of sub sites
{
foreach ($SPList list in $SPweb.Lists)
{
if ( ($splist.CanReceiveEmail) -and ($SPlist.EmailAlias -eq "yourEmailAliasForList") )
{
WRITE-HOST "E-Mail: " $SPList.EmailAlias + “, List: ” + $SPlist.Title +”, Web: ” + $SPweb.Url
}
}
}
نصائح أخرى
/****** Script for SelectTopNRows command from SSMS ******/
SELECT FullUrl
FROM [Prod].[dbo].[AllWebs]
where
id in (
SELECT tp_WebId
FROM [Prod].[dbo].[AllLists]
where tp_EmailAlias in ('xyz','abc')
)
لا تنتمي إلى sharepoint.stackexchange