spsne17 - the wall: overcoming sharepoint’s site collection boundary
TRANSCRIPT
![Page 1: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/1.jpg)
SharePoint Saturday New England 2017
#SPSNE
spsnewengland.org
The Wall: Overcoming SharePoint’s Site Collection Boundary
Bob German & Jonathan Ralton with Stacy DaSilvaAll trademarks and registered trademarks are
the property of their respective owners.
![Page 2: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/2.jpg)
Bob German & Jonathan Ralton with Stacy DaSilvaBlueMetal
The Wall: Overcoming SharePoint’s Site Collection Boundary
![Page 3: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/3.jpg)
AgendaDefining the Problem
Site Lifecycles
Taxonomy
Workflows
Navigation
Custom Web Parts
Wrapping Up
Questions
+ demo!
+ demo!
+ demo!
+ demo!
![Page 4: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/4.jpg)
US
![Page 5: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/5.jpg)
Bob GermanPrincipal Architect
@bob1german
bob1german.com
linkedin.com/in/bgerman
• SharePoint developer / architect since 2002
• Too much coding!
• Loves empowering users to innovate and succeed!
![Page 6: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/6.jpg)
Jonathan RaltonSenior Information Architect
• SharePoint professional / consultant since 2005
• No coding!
• Focused on document management, content management, knowledge management…
• User Experience Design
@jonralton
blog.jonralton.net
linkedin.com/in/jonathanralton
![Page 7: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/7.jpg)
Stacy DaSilvaSenior Software Engineer
• SharePoint developer since 2011
• Focused on custom development and providing solutions to solve complex SharePoint business processes
• About 2 months recovering from a human cloning experiment
czerwsup.wordpress.com
linkedin.com/in/anastasiadasilva
![Page 8: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/8.jpg)
![Page 9: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/9.jpg)
YOU
![Page 10: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/10.jpg)
What roles are you in?
What are you hoping to learn?
![Page 11: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/11.jpg)
Defining the ProblemThe Wall
![Page 12: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/12.jpg)
NOT THIS WALL…
![Page 13: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/13.jpg)
THIS WALL.
![Page 14: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/14.jpg)
Consistency
How can we ensure consistency across our sites with our content, business processes,
the user experience, and customizations?
![Page 15: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/15.jpg)
Componentry
Is it possible to maintain workflows and web parts across multiple sites?
![Page 16: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/16.jpg)
SharePoint Server
Farm
Web Application
Content Database
Site Collection
Site List/Library
Item
Item
Site Collection
Site List/Library Item
Site List/Library Item
Content Database
Site Collection
Site List/Library Item
Web Application
Content Database
Site Collection
Site
List/Library
Item
Item
List/Library ItemSite Collection
Site
![Page 17: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/17.jpg)
SharePoint Online
Tenant
Site Collection
Site List/Library
Item
Item
Site Collection
Site List/Library Item
Site List/Library Item
Site Collection
Site List/Library Item
Site Collection
Site
List/Library
Item
Item
List/Library ItemSite Collection
Site
![Page 18: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/18.jpg)
Topics
Site Lifecycles
Taxonomy Workflows NavigationCustom
Web Parts
![Page 19: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/19.jpg)
Site LifecyclesThe Wall
![Page 20: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/20.jpg)
The Challenge
Goals
• Successfully manage a large number of sites and site collections• Create identical sites on an as-
needed basis
• Know exactly what sites and site collections are currently in existence
• Track unused sites and provide a method for removal
Hurdles• Site creation by hand is a very slow
and tedious process with a lot of room for human error
• SharePoint “Save Site as Template” is not very robust and is not available for publishing sites, and also… deprecated
• No UI available for easily seeing all existing sites and info about them beyond what Central Admin or Tenant Admin gives you
![Page 21: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/21.jpg)
A Solution: Overview/ComponentsSi
te P
rovi
sio
nin
g •1. Site Request List
•2. PowerShell Script
•Builds out sites to exact specifications
•Preferred method is specific PnP code
•New-PnPWeb•New-PnPList•Add-PnPWebPart
•Could also use Provisioning Template commands
•3. Scheduled Job
•To run the script at prescribed interval
•Remote Timer Job (Azure) if SharePoint Online
Site
Tra
ckin
g 1. Site Tracking List
•List item added/populated at time of site provisioning
•Holds all sites, their URLs and other details such as provisioned date
•List can be used by admins to keep track of all sites, their locations and usage status
Site
Del
etio
n 1. PowerShell Script
•Checks all active sites in Site Tracking List
•Looks at LastModifiedItemDateof each web—if inactive for a certain period of time, initiate delete sequence
•Updates Site Tracking List if deletes occur
2. Scheduled Job
•To run the script at prescribed interval
•Remote Timer Job (Azure) if SharePoint Online
![Page 22: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/22.jpg)
PnP PowerShell
PowerShell
dev.office.com/patterns-and-practices
![Page 23: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/23.jpg)
PnP PowerShell
The easiest way to get the PNP PowerShell commands is to install them from the gallery. Or, you can use the MSIs.
1. Open PowerShell by right-clicking on your PowerShell icon. Run it as an administrator.
2. At the PowerShell prompt, type:
3. If you want to install the NuGet Provider, type Y. Press Enter.
4. If you trust the PSGallery, type Y. Press Enter.
In approximately 30 seconds to one minute, the module will be downloaded and installed for you.
SharePoint Server 2013 Install-Module SharePointPnPPowerShell2013
SharePoint Server 2016 Install-Module SharePointPnPPowerShell2016
SharePoint Online Install-Module SharePointPnPPowerShellOnline
![Page 24: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/24.jpg)
A Solution: Site Provisioning
![Page 25: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/25.jpg)
A Solution: Site Provisioning
• Could run workflow on each list item to obtain approval, etc. prior to allowing the site to be provisioned
• Could also run workflows to alert people when their site is complete/ready
• Could use metadata of list items to influence what the script does when the site gets created
![Page 26: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/26.jpg)
A Solution: Site Tracking
• Could secure each list item accordingly or place in secured folders and present collapsed view
• Could also just maintain one combined list with requests as long as status indicator allows filtering out rejected sites, etc.
• Could use hidden list in each site with one item in it with metadata about it (inherited security) – but would not keep track of deletions
![Page 27: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/27.jpg)
A Solution: Site Deletion
![Page 28: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/28.jpg)
A Solution: Site Deletion
![Page 29: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/29.jpg)
Site
LifecyclesDEMONSTRATION
![Page 30: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/30.jpg)
![Page 31: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/31.jpg)
Site Based Retention Policies
• Compliance features of SharePoint have been extended to sites in SharePoint 2013
• We can create and manage retention policies, and they will apply to SharePoint sites and any Exchange Server 2013 team mailboxes that are associated with the sites
• Based on create date, not activity date
• Site collection scoped, unfortunately
![Page 32: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/32.jpg)
![Page 33: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/33.jpg)
Summary
Using SharePoint PnP PowerShell commands, custom lists, and timer jobs, we…
1. Provided custom self-service site creation
2. Allowed for instantiating our own lists, libraries, and web parts on pages
3. Created a place for users to consume an index of sites
4. Provided custom automated site deletion
augmenting OOTB capabilities to manage site collection lifecycles across a web application/farm or tenant.
![Page 34: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/34.jpg)
TaxonomyThe Wall
![Page 35: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/35.jpg)
The Challenge
Goals
• Make things findable
• Make things usable
• Consistency
Hurdles
• Divergent and/or duplicative taxonomies can grow independent of each other within isolated site collections and subsite hierarchies
• Can instantiate identical constructs with code/features, but they can’t easily be centrally updated/maintained
![Page 36: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/36.jpg)
Why do we use a content type?
“a reusable collection of:
1. metadata (columns),
2. workflow,
3. behavior, and other
4. settings
for a category of items or documents in a…list or document library”
– Microsoft
![Page 37: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/37.jpg)
Why do we use a site column?
“a reusable column definition, or template,
that you can assign to multiple lists across multiple SharePoint
sites”
– Microsoft
![Page 38: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/38.jpg)
Inheritance
![Page 39: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/39.jpg)
Where do we define these?
Site 1
Site 1.1Site 1.1.1
Site 1.1.2
Site 1.2 Site 1.2.1
Site 1.3
Site 1
Site 1.1Site 1.1.1
Site 1.1.2
Site 1.2 Site 1.2.1
Site 1.3
Site 2Site 2.1 Site 2.1.1
Site 2.2Site 3
![Page 40: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/40.jpg)
A Solution: Overview/Components
Content Type Publishing
Managed Metadata
![Page 41: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/41.jpg)
Where could we define these?
Content Type Hub
Site 1
Site 1.1Site 1.1.1
Site 1.1.2
Site 1.2 Site 1.2.1
Site 1.3
Site 2Site 2.1 Site 2.1.1
Site 2.2Site 3
Publish
![Page 42: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/42.jpg)
Content Type Publishing
Advantages
• Manage ‘Enterprise Content Types’ across site collections, web applications, and farms
• High governance/control
• Higher reuse
Disadvantages
• Inheritance/Publishing• Read Only
• Workflows
• Lookup Columns
• Backup/Restore/Disaster Recovery
• Site Columns
![Page 43: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/43.jpg)
Content Type Publishing
SharePoint Server
• 0 to many Content Type Hubs
• Potential for Multiple SDLC Tiers, Multiple Farms…
SharePoint Online
• 1 Content Type Hub
• /sites/contenttypehub
![Page 44: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/44.jpg)
Content Type Publishing
Publishing a content type does not make it immediately available for use by end users of a site… it must be attached to a library (document/document set/folder) or list (item/folder)!
Could employ PnP PowerShell to go through to desired sites and attach content types to lists/libraries.
![Page 45: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/45.jpg)
MANAGED METADATA
def·i ·ni·tion [dèffə nísh'n]
![Page 46: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/46.jpg)
Managed Metadata
“a way to refer to the fact that terms and term sets can be created and managed
independently from the columns themselves”
– Microsoft
![Page 47: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/47.jpg)
Managed Metadata
Column Name/Purpose
a Office Location
b Shipped From
c Asset Location
d Contracted Locations
Term Store
Content Type Hub
Site 1
Site 1.1
Site 1.1.1
Site 1.1.2
Site 1.2 Site 1.2.1
Site 1.3
Site 2
Site 2.1 Site 2.1.1
Site 2.2
Site 3
a
a
a
a
a
a
a
a
a
aa
a
ab
c
dd
d
d
Locations
Chicago
New York
Phoenix
Watertown
Washington
![Page 48: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/48.jpg)
Why would we use the term store?
• Distribute permissions for management of term sets
• Allow open term sets or submission of terms vs. closed term sets
• Easy for a non-developer to import terms
• Accessible via Taxonomy API• Client Side Object Model (CSOM)
• REST
• PowerShell
![Page 49: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/49.jpg)
Term Sets
Local Term Set
Created within the context of a site collection
For example, if you add a column to a document library, and create a new term set to bind the column to, the new term set is local to the site collection that contains the document library
Global Term Set
Created outside the context of a site collection
For example, the term store administrator could create a term set group that is named Human Resources and designate a person to manage the term set group. The group manager would create term sets that relate to Human Resources, such as job titles and pay grades in the Human Resources term set group
![Page 50: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/50.jpg)
Term Set Import
• Great way to get started• Can specify hierarchies
• Possible but limited• Can’t specify synonyms
• Can’t specify custom properties
• Can’t set custom sort order
• Can’t leverage reused terms, pinned terms
• Can’t influence GUID assignment
• No export without third party tool or custom development
SharePoint Managed Metadata Import Files
bit.ly/SPMMImport
![Page 51: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/51.jpg)
Managed Metadata
A service application group can include multiple Managed Metadata service applications
• The sites within the Web applications display taxonomy, social tagging, and other features from both Managed Metadata service applications
• Unlike other cross-farm services, Web parts by default include data from multiple Managed Metadata service applications
![Page 52: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/52.jpg)
Managed Metadata
Managed Metadata is one of the service applications that is typically deployed for dedicated use by a specific team or department
• To allow a team or department to manage their own taxonomy, hierarchies, keywords...
• SharePoint combines the results of multiple Managed Metadata service applications, so taxonomies, content types, and other elements can be shared across an organization
![Page 53: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/53.jpg)
Managed Metadata
SharePoint Server
• 0 to many Managed Metadata Service Applications/Global Term Stores
• Potential for Multiple SDLC Tiers, Multiple Farms…
SharePoint Online
• 1 Managed Metadata Service Application/Global Term Store
![Page 54: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/54.jpg)
SharePoint Hybrid
We now have some support from Microsoft for utilizing term sets across Office 365 and your local SharePoint installation(s)!
![Page 55: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/55.jpg)
TaxonomyDEMONSTRATION
![Page 56: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/56.jpg)
![Page 57: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/57.jpg)
![Page 58: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/58.jpg)
![Page 59: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/59.jpg)
Timer Jobs
Timer Job Description Default Schedule
Content type hubTracks content type log maintenance and manages unpublished content types.
Daily
Content type subscriber
Retrieves content type packages from the hub and applies them to the local content type gallery. For more information about content types, see Plan to share term sets and content types in SharePoint Server 2013.
Hourly
![Page 60: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/60.jpg)
Cross-Site Publishing
Cross-Site Publishing
![Page 61: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/61.jpg)
Summary
Term Store
We can centrally manage/govern taxonomy and folksonomy.
Content Type Syndication
Via the Content Type Hub, we can centrally manage/govern definitions of types of content and various properties about those types such as workflow, retention policies, and metadata.
![Page 62: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/62.jpg)
WorkflowsThe Wall
![Page 63: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/63.jpg)
The Challenge
Goals
• Utilize the same workflow in different places in SharePoint• Identical workflows are often
needed across different team/project or other similarly created sites
• List workflows that target as specific list need to be identically implemented in templated sites
Hurdles
• Workflows are a site/site collection level item
• Cannot be shared from a central location
• Content Type Publishing can’t help with workflow proliferation
![Page 64: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/64.jpg)
The Challenge
Site 1
Site 1.1Site 1.1.1
Site 1.1.2
Site 1.2 Site 1.2.1
Site 1.3
Site 2Site 2.1 Site 2.1.1
Site 2.2Site 3
![Page 65: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/65.jpg)
Solutions
PowerShellVisual Studio
Third-Party Tools
Flow Logic Apps ?
![Page 66: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/66.jpg)
PowerShell
Site Provisioning Commands
New-PnPProvisioningTemplateApply-PnPProvisioningTemplate
• Requires staging (source) site that contains up-to-date version of the workflow(s)
• Copies entire site – including possibly undesired settings• Copies list workflows without need for XAML extraction• Can use other PnP commands to further customize the site
Workflow Commands
Add-PnPWorkflowDefinitionAdd-PnPWorkflowSubscription
• Requires staging (source) site that contains up-to-date version of the workflow(s)
• Requires exporting of workflows to extract XAML definition file• Attaches just the desired workflow to an existing site
![Page 67: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/67.jpg)
Visual Studio
Pros
• Allows for custom server-side code to be utilized
Cons
• On-Premise only
• Requires WSP deployment and feature activation
• Requires comfort with Visual Studio/some coding expertise
![Page 68: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/68.jpg)
Third-Party Tools
![Page 69: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/69.jpg)
Third-Party Tools
![Page 70: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/70.jpg)
New
![Page 71: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/71.jpg)
NavigationThe Wall
![Page 72: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/72.jpg)
![Page 73: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/73.jpg)
The Challenge
Goals
• Provide a reusable consistent mechanism to navigate across a portal made up of many site collections• OOTB
• Megamenu/Custom
• Add/remove or update a link in one place
Hurdles
• Difficult to go across site collections to reference one navigation structure with OOTB web parts
• Performance issues on page in loading megamenus, for example
![Page 74: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/74.jpg)
Solutions
SharePoint Server
• OOTB: Managed Navigation
• Custom: Embedded ‘stuff’ in the master page or server-side C#
• Custom: Coded server-side web part
SharePoint Online
• OOTB: Managed Navigation
• Custom: JS injection
![Page 75: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/75.jpg)
JavaScript Injection
• Limitation/concerns about response time/load time
• Use a CDN if you can
![Page 76: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/76.jpg)
Managed Navigation
1. You need a term set• You cannot reuse the same term set in a different site collection
• Global Term Store vs. Site Collection Term Store
2. You need reused and/or pinned terms (w/children)• Limitations
3. You need a Publishing site or Publishing features
4. You need to enable Managed Navigation• Global and/or Current
![Page 77: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/77.jpg)
![Page 78: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/78.jpg)
![Page 79: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/79.jpg)
NavigationDEMONSTRATION
![Page 80: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/80.jpg)
![Page 81: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/81.jpg)
![Page 82: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/82.jpg)
![Page 83: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/83.jpg)
![Page 84: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/84.jpg)
Summary
OOTB
Managed Navigation is your only option
Custom
Various approaches with their own pluses and minuses as far as coding difficulty, implementation method, and user experience
![Page 85: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/85.jpg)
Custom Web PartsThe Wall
![Page 86: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/86.jpg)
The Challenge
Goals
• Use the same web part across site collections
• If an update needs to be made to a web part, only make the update in one place vs. in every site collection
Hurdles• Content Editor content link property
cannot point to a file outside the site collection
• SharePoint Online• Can only use client-side code• OOTB web part properties cannot reach
outside of a site collection• Don’t want a web part code file in every site
collection—any change would need to be pushed to every site collection
• SharePoint Server• When web part files are re-deployed,
sometimes features needs to be de- and re-activated—not ideal for every site collection
![Page 87: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/87.jpg)
A Solution: Overview/Components
1. Specific File Structure• Centralized/Shared File
• Stored in a centralized site collection that all users have access to (SharedAssets)• Contains the bulk of web part code• All site collections will point to this code to allow for a single code change to take effect across
multiple locations
• Local HTM file• Small generic file that does as little as possible—points to centralized code• Saved in a library on every site collection (LocalWebPartFiles)• Can be updated if need be with PnP re-pushing out the files
2. PowerShell Script• PnP commands used for repeatable deployments and updates
3. Client-Side Code• JavaScript, Angular, etc.
![Page 88: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/88.jpg)
Centralized/Shared File
![Page 89: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/89.jpg)
Local HTM File
![Page 90: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/90.jpg)
Custom
Web PartsDEMONSTRATION
![Page 91: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/91.jpg)
![Page 92: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/92.jpg)
SharePoint Framework
• SPFx web parts can be made available across your tenant using the app model• Tenant-Scoped Solutions
• SharePoint Online• Modern Pages
• Classic Pages
• SharePoint 2016 Feature Pack 2
![Page 93: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/93.jpg)
Summary
Using a combination of local files that point to centralized files, SharePoint PnP PowerShell commands, and client-side code, we…
1. Provided centrally housed web part code/configurations
2. Allowed for updating in one place
augmenting OOTB capabilities to manage web parts across a web application/farm or tenant.
![Page 94: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/94.jpg)
Wrapping UpThe Wall
![Page 95: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/95.jpg)
The Wall
SharePoint’s site collection boundary can be overcome in various aspects by taking different approaches depending on the
problem at hand.
![Page 96: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/96.jpg)
Developer as the Programmer
You have to be a multi-faceted developer to solve today’s evolving SharePoint challenges, whether on-premise or online.
Traditional coding
PowerShell scripting
Client-side development
OOTB capabilities and configurations
![Page 97: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/97.jpg)
Developer as the Consultant
Because there are so many approaches,
when someone asks you to implement
something, pause and ask yourself—is what they asked me to do it
the best way?
![Page 98: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/98.jpg)
QuestionsThe Wall
![Page 99: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/99.jpg)
![Page 100: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/100.jpg)
![Page 101: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/101.jpg)
ReferenceThe Wall
![Page 102: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/102.jpg)
Demo Code
Download SPSNYC17-The_Wall-Demo Code.zip
![Page 103: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/103.jpg)
Resources
Content Type Publishing Managed Metadata
Introduction to Content Types and Content Type Introduction to Managed Metadata
Publish a content type from a content publishing hub Managed Metadata Overview
Manage content type publishing Managed Metadata Planning
Activate a content type syndication hub Managed Metadata Service Application
Managed Navigation Overview
Plan Navigation Term Sets
![Page 104: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/104.jpg)
Resources
Workflows Compliance
Overview of Workflows Included with Site-Based Retention Policies
Workflows in SharePoint
Taxonomy
Guidance for Modifying Pre-Defined
![Page 105: SPSNE17 - The Wall: Overcoming SharePoint’s Site Collection Boundary](https://reader030.vdocument.in/reader030/viewer/2022020119/5a6725b87f8b9a0c518b47cb/html5/thumbnails/105.jpg)
Resources
SharePoint 2013 SharePoint 2016 SharePoint Online
Resources for IT Pros bit.ly/1QrGndM
Features and Editions bit.ly/1HLZrfG bit.ly/SPO-Service
Discontinued
and Modified
Functionality
bit.ly/1bhrLKr
Limits and bit.ly/SP13-Limits bit.ly/28SJAGy bit.ly/SPO-Limits