►
From YouTube: Community demo - Exporting and importing modern pages cross sites and tenants with PnP tools
Description
This community call demo is taken from the SharePoint development monthly community call recording on 11th of June 2019. In this video, Erwin van Hunen (Rencore) demonstrates how to use PnP Provisioning Engine to export and import modern pages cross sites or tenants. Also page layouts are included in the process.
Presenter - Erwin van Hunen (Rencore) - @erwinvanhunen
Full details on the community call from https://developer.microsoft.com/en-us/sharepoint/blogs/sharepoint-dev-community-pnp-june-2019-monthly-community-call-recording/
More details on the SharePoint dev community calls from http://aka.ms/sppnp.
A
B
Yeah,
let
me
let
me
give
you
some
background
on
what
I
will
show
so
we're
talking
MVP
summit
earlier
this
year
and
we're
coming
out
of
a
meeting
from
Microsoft
and
we're
we're
waiting
outside
with
the
building
waiting
for
our
uber
I
think
it
was,
and
we
talked
a
bit
about
content
extraction
and
that
we
never
did
that,
and
a
lot
of
questions
came
always
on
the
community
of
like.
Can
you
guys
please
do
that?
Why
don't
you
do
that
and
we
had
good
answers
there
I
think
we
have.
B
We
have
had
a
valid
story
and
we
look
at
each
other
in
the
eyes
and
were
like.
Why
don't
we
do
it?
So
that's
what
we
started
to
work
on
we're
now,
starting
to
work
on
content
extraction
and
what
I
will
demo
today
is
what
is
currently
available
in
the
current
release
of
the
provisioning
engine,
and
that
is
client-side
page
extraction.
What
is
upcoming,
that
is
not
there
yet,
but
we
are
working
on.
It
is
list,
item
extraction
and
talking
of
library
files
extraction.
B
B
So
if
you
have
a
user
in
your
site
from
which
you
extract
the
content
and
that
user
is
not
present
in
the
site
to
which
you
apply
the
content,
we
will
have
an
issue
because
the
user
might
you
might
want
to
have
broken
the
inheritance
of
the
security
for
certain
documents
we
will
can
we
cannot
apply
that
security
will
not
magically
create
a
user
or
added
user
for
you.
You
will
have
to
sort
it
yourself,
so
that
is
but
that's
future
that
will
come.
B
This
is
the
stages
as
it
is
as
of
today
and
if
you
have
to
lay
the
tradition
of
PNP
power,
shell
or
the
provisioning
engine
running.
This
is
what
you
will
be
able
to
do
today.
So
I
have
a
demo
site
here
and
in
this
site,
I
have
a
page
library-
and
this
is
a
bunch
of
pages
modern
pages
in
there.
So
until
the
last
release,
when
you
extract
it
the
content
of
your
site,
we
basically
only
picked
up
the
home
page,
nothing
else,
and
that
worked.
B
If
you
want
all
the
other
pages
in
your
template,
you
have
to
do
some
tricks.
One
of
the
trick
was
that
you
made
another
page
of
home
page
and
then
rerun
the
extraction.
Again,
you
got
the
other
page
copy
that
out
put
it
in
the
template,
etc.
Now
we
made
your
life
a
bit
easier
and
you
do
that
by
simply
in
this
case,
PowerShell
so
I
connected
to
the
site
already
am
connected
to
the
side
as
it
gets
PNP
provisioning
template.
B
If
I
write,
it's
correct,
ou
get
PP
provisioning
template
right
now
for
demo
reasons,
I
put
into
an
XML
file
and
to
make
the
export
a
bit
faster.
I
includes
a
handler,
I,
say
page
contents
and
then
I
have
to
tell
the
engine
explicitly
that
I
want
all
the
pages
by
default.
We
we
do
not
do
that
because
that
would
break
existing
scripts
etc.
So
you
have
to
include
an
additional
switch
here.
B
B
I
only
want
these
that
match
this
query,
something
like
that.
That
would
be
very
complex
in
the
commandlets,
so
we
provide
probably
an
external
configuration
file
that
you
can
can
use
them.
Expection
is
done.
So
if
I
go
to
this
page
XML
file
that
I
just
generated
you
see
now
here
that
I
have
all
the
client-side
pages.
If
I
collapse
pages-
let's
see
here,
we
have
the
home.
We
have
to
change
this
to
medical,
it's
the
open
door
policy,
that's
that
they're
all
there.
B
So
all
the
pages
are
included
and
if
I
scroll
a
bit
down,
we
see
if
you
can
find
it
here.
We
see,
for
instance,
here
that
this
something
is
provision
to
the
templates
forward,
and
so
we
we
support
subfolders
now,
if
I
scroll
a
bit
to
the
right
here,
see
also
that
we
have
recognized
that
this
one
was
defined
as
a
template
in
the
original
site.
B
So
now
we
are
also
allow
you
to
provision
page
templates
by
just
flipping
this
switch
to
true
and
providing
a
location,
and
we
will
upload
it
into
the
correct
location
for
you.
So
here,
I
have
all
my
pages
and
this
basically
because
I
provide
it
this
handler.
The
page
contents
handler
it's
basically
only
the
client-side
pages
I
don't
have
the
lists
and
everything
in
my
template.
So
if
I
go
back
to
my
site
here,
I
have
a
page,
this
demo
site
and
this
is
freshly
created
site.
B
That
goes
to
pages,
and
you
see,
on
the
left
hand,
on
the
left
side
of
the
screen.
You
should
see
now
things
slowly
popping
up
if
everything
goes,
okay,
I
might
have
to
refresh
no
there
we
go
there.
Pages
are
popping
up
now
and
it's
one
by
one,
creating
all
my
pages,
and
this
is
a
very
easy
way
to
move
pages
from
side
a
to
be
or
from
tenant
a
to
be
or
etc.
B
C
B
Prem,
if
you
use
SharePoint
2019,
this
functionality
is
available
to
you.
You
see
there
is
a
templates.
Folder
being
created
will
wait
until
the
engine
is
done.
It
first
creates
this
basically
stops
of
the
pages
and
then
starts
to
fill
in
the
web
parts
and
everything
on
those
pages.
So
it's
a
bit
longer
process
to
provision.
Those
pages
should
be
almost
done.
B
This
uses
the
same
API
that
uses
the
the
client-side
page
command.
Let's
that
we
have
for
PP
powershell
to
use
all
the
same.
Api
is
behind
the
scenes
in
this.
Api
is
available
in
core
and
every
time
I
showed
that
the
provisioning
engine
I
use
P
PowerShell,
but
there's
absolutely
no
reason
for
you
to
just
use
PP
powershell.
You
could
write
this
in
your
own
cause,
all
application
using
C,
sharp
or
whatever,
don't
let
environment
you
want
to
use
as
long
as
this
model
that
standard,
but
that
will
come
almost.
C
There
so,
while
we're
reading
the
reason
why
we
created
pages
up
front,
but
we
have
to
to
kind
of
cycles,
we
create
an
empty
page
and
then
later
on,
we
you
updated
same
page
again
and
business
because
you
won't
have
tokens
for
the
pages.
So
if
one
page
we
first
another
page,
creating
the
empty
page
first
gives
us
a
page
name,
a
token
which
can
then
be
used
in
the
other
page
later
on,
so
that
they
kind
of
solves
the
problem.
C
B
A
A
B
We
basically
support
almost
every
artifact
you
can.
Think
of
so
we
allow
you
to
create
lists
fields,
content
types,
uploads,
apps,
create
teams,
provision,
taxonomy,
extract
economy,
extract
mystic
to
convert
our
fields
pages,
client-side
pages,
classic
pages,
publishing
pages
master
pages
set
the
logo
of
your
web,
just
yeah.
Basically
everything
you
need
it's,
this
actually
I,
don't
know
of
many
gaps.
There
might
be
very
specific
small
details
missing
at
some
artifacts
that
you're
looking
for,
but
I
think
we
have
pretty
complete
coverage
in
the
things
that
we
support.
A
The
Mike's
of
themes
is
a
big
thing
in
the
in
the
service,
as
well,
so
you're
able
to
provision
much
of
themes,
themes,
channels,
tabs
pointed
apps
to
the
SharePoint
and
applications
and
everything
else.
So
all
of
the
things
in
Microsoft,
365
level
or
the
office
traces
thrive
level
which
have
an
remote
API.
You
can
already
apply
and
create
automatically
with
the
engine
already
correct.
B
So
it's
done
applying
now,
so
you
see
all
the
pages
there
and
if
I
go,
for
instance,
to
the
home
page
here
and
I
create
a
new
page
where
we
get
this
new
user
interface.
You
see
that
my
template
files
that
were
a
part
of
my
template
that
I
applied
the
page
templates.
They
are
there
now
for
me
to
select
and
I,
can
create
new
pages
based
on
these
templates
and
they
are
located
in
that
templates
folder.
B
So
it's
it's
for
your
information.
It's
not
enough
to
provide
your
files
into
a
folder
called
templates,
there's
a
bit
more
going
on
behind
the
scenes.
So
it
is
very
important
that
in
your
template
that
you
create-
and
you
want
to
provision
templates-
that
you
set
this
provision
as
temp
promoters-
template
property
to
true.
Because
then,
if
something
is
not
in
place,
we
will
actually
do
the
the
plumbing
behind
the
scenes.
B
We
do
all
the
work
for
you
behind
the
scenes
to
make
sure
that
that
specific
folder
as
Mark
there's
a
template
full
because
there's
some
bit
more
going
on
there,
but
this
is
a
very
easy
way.
We
think
to
get
full
site
pages
out
of
a
site
collection
and
provision
it
into
another
site
collation
very
simple
and
and
as
I
mentioned
earlier,
upcoming
is
list
items
and
confidential
document.
Libraries
I
don't
have
an
ETA,
but
it
will
come.
A
Or
later
it's
in
a
backlog,
so
it's
the
typical
response
of
things
we're
looking
into
that
it's
coming
soon
in
quotes,
but
thank
you
everything
for
that.
One
really
good
stuff-
and
this
has
been
requested
so
many
times
from
the
engine
that
hey.
Why
don't
you
export
the
more
all
of
the
bases?
Why
don't
you
export
the
library
documents
and
list
items
and
all
that
and
and
like
I
said,
that's
coming
up
as
well.