이메일 주소로 문서 라이브러리 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