Flow / Power Automate - SharePoint: Automate File Movement to an Archive Library Tutorial

Learn to automate file movement in a SharePoint archive library using variables, conditional elements, and Power FX functions. Imagine maintaining source folder structure in the target library. Set up a recurring flow to retrieve and process files, and recreate the original structure in the archive library. This tutorial provides a comprehensive guide for efficient archiving between SharePoint libraries!

  • 05:20
  • 215 views

Objectifs :

This tutorial aims to teach you how to automate the movement of files in a SharePoint archive library, taking into account various constraints. You will learn to use variables, conditional elements, and Power FX functions to create a recurring flow that organizes files based on their age while maintaining the original folder structure.


Chapitres :

  1. Introduction to File Automation
    Welcome to this tutorial where you will learn to automate the movement of files in an archive library. This process involves a more complex flow that must consider a series of constraints.
  2. Understanding the Task
    In this video, you will use variables, conditional elements, and Power FX functions. Imagine needing to move files from a folder in a SharePoint library based on their age. The goal is to move these files while maintaining the source folder and file structure, ensuring an identical organization of your content in the target library, which is your archive library.
  3. Setting Up Your SharePoint Libraries
    In this SharePoint site, you will find a standard library named 'Documents' containing a folder titled 'Files to Move.' This folder has a series of files of varying ages. Optionally, you can add a column for the file creation or modification date, which isn’t shown by default. Your second library, named 'Archives,' is currently empty and will need to be automatically populated.
  4. Creating a Recurring Flow
    To begin, you will initiate a recurring flow that runs on the first of each month at 6 a.m. The first action will be to retrieve files from the folder containing potential files to be moved. While you could process the entire contents of your document library, this tutorial will focus on a specific folder.
  5. Configuring Advanced Settings
    Enable advanced settings to apply a query that limits the flow to the chosen folder, including files in the subfolders. Enter the parameters related to nested items and specify the folder to be processed. In this example, you will only move files created two years ago or more.
  6. Setting Filter Criteria
    The filter query will specify this criterion. Enter the name of the created column for the file creation date. You can also use 'modified' for the date of the last modification of the file. Set your criterion to 'le' (less than or equal) and enter an apostrophe to reference your deadline relative to the file creation date.
  7. Using Power FX Functions
    Use the Power FX button to enter a formula that references the current date (UTC now) associated with the 'A day' function, defining minus 730 days (about two years). This will allow you to subtract 730 days from the current date.
  8. Processing Files
    When SharePoint lists the files, it will include the names of the subfolders. To recreate the original structure in your archive library, constrain this action by adding a query parameter that excludes folder-type objects from the result. Initialize a text variable named 'folder' and populate it during future processing.
  9. Looping Through Files
    Files dated over two years will be listed. Begin their processing by initializing an 'Apply to Each' loop that retrieves the dynamic content body value, which is the list of items to process. Within the loop, populate your 'folder' variable by retrieving the access path of each file.
  10. Managing File Paths
    Choose the action related to variables to set your 'folder' variable. The access path of the file to be moved will contain the name of the library 'Shared Documents' and the subfolder 'Files to Move.' Use a Power FX formula to replace this path with empty space in your variable to retrieve only the relative path inside the folder to be processed.
  11. Handling Folder Structure
    The last character of your 'folder' variable will contain a slash, which will cause an issue when moving the file to be archived. Use the 'slice' function to retrieve the path string from position index zero to index minus one, corresponding to the slash to be removed. If the file is at the root of your 'Files to Move' folder, the variable will contain empty space; otherwise, it will contain the path of the folder where the file is placed.
  12. Creating Folders in SharePoint
    Manage an 'if' condition to test if the 'folder' variable is empty. If so, add the SharePoint action to create folders in your SharePoint site within your archives library, using the relative path of the folder corresponding to the file being processed.
  13. Moving Files to Archive
    After creating or not creating the folder, still within the loop, add the action to move the processed file. Refer to the file to be moved by its complete original path and set the destination folder corresponding to your archives library, followed by the path stored in your variable. If another file already exists, choose to replace it.
  14. Conclusion
    Finally, save and test your flow. Files over two years old will be moved to the root of your archives library, and for files stored in subfolders, the original structure will be recreated. This is how to create a complete archiving flow between SharePoint libraries.

FAQ :

What is the purpose of automating file movement in SharePoint?

Automating file movement in SharePoint helps maintain organization, ensures timely archiving of old files, and reduces manual effort in managing file storage.

How do I set up a recurring flow in Power Automate?

To set up a recurring flow in Power Automate, you can use the 'Recurrence' trigger, specify the frequency (e.g., monthly), and set the time for the flow to run.

What are Power FX functions?

Power FX functions are formulas used in Microsoft Power Platform to perform calculations, manipulate data, and automate tasks within applications.

How can I filter files based on their creation date in SharePoint?

You can filter files based on their creation date by using a filter query in your flow that specifies the date criteria, such as files created two years ago or more.

What should I do if a file already exists in the destination folder?

If a file already exists in the destination folder, you can choose to replace it during the file movement process in your flow.


Quelques cas d'usages :

Automating Document Archiving

In a corporate environment, a company can automate the archiving of old project files from a SharePoint library to an archive library. By setting up a flow that runs monthly, the company ensures that all files older than two years are moved, maintaining the original folder structure, which helps in easy retrieval of archived documents.

Managing Compliance Records

A legal firm can use this automated flow to manage compliance records by moving files that are no longer active to an archive library. This helps in keeping the active library clutter-free while ensuring that all compliance documents are stored securely and can be accessed if needed.

Streamlining File Organization

An educational institution can implement this flow to regularly archive student records and course materials that are no longer in use. By automating the process, the institution can ensure that their document library remains organized and that important historical data is preserved in an accessible manner.


Glossaire :

SharePoint

A web-based collaboration platform developed by Microsoft that integrates with Microsoft Office. It is used for storing, organizing, sharing, and accessing information from any device.

Power FX

A low-code programming language used in Microsoft Power Platform to create custom business logic and automate processes.

Flow

A feature in Microsoft Power Automate that allows users to automate workflows between applications and services.

UTC

Coordinated Universal Time, a time standard that is the basis for civil timekeeping worldwide.

Variable

A storage location identified by a name that can hold data which may change during the execution of a program.

Loop

A programming construct that repeats a block of code as long as a specified condition is true.

If Condition

A conditional statement that executes a block of code if a specified condition is true.

Folder Structure

The organization of folders and subfolders within a file system, which helps in managing and locating files.

Filter Query

A set of criteria used to limit the data retrieved from a database or service based on specific conditions.

00:00:05
automate the movement of files in an archive library.
00:00:09
This more complex flow will have to take into account a series of constraints.
00:00:14
In this video, you will use variables, conditional elements and power FX functions
00:00:21
to start
00:00:22
imagine that you need to move files from a folder in a sharepoint library.
00:00:26
Depending on the age of the files,
00:00:28
you will need to move them while maintaining the source folder and file structure
00:00:32
to keep an identical organization of your content in the target library.
00:00:36
That is your archive library. In
00:00:39
this sharepoint site,
00:00:40
you will find a standard library named documents in
00:00:43
which there is a folder titled files to move
00:00:47
this folder contains a series of files of varying ages.
00:00:51
You can optionally add a column for the file
00:00:53
creation or modification date which isn't shown by default.
00:00:58
Your second library named archives is currently completely
00:01:02
empty and will need to be automatically populated
00:01:06
to begin.
00:01:07
You will initiate a recurring flow that will run on the first of each month at 6 a.m.
00:01:19
The first action will be to retrieve
00:01:21
the files from the folder containing the potential
00:01:23
files to be moved while you could process
00:01:26
the entire contents of your document library.
00:01:28
In this tutorial, we will limit ourselves voluntarily to a specific folder.
00:01:34
Enable advanced settings to apply a query that will limit the flow to the
00:01:37
chosen folder while including the files in the sub folders of the targeted folder.
00:01:43
Then enter the parameters related to nested items
00:01:46
and specify the folder to be processed.
00:01:48
In
00:01:49
this example, we will only move files created two years ago or more.
00:01:54
The filter query will specify this criterion.
00:01:57
Enter the name of the created column for the file creation date.
00:02:01
You can also use modified for the date of last modification of the file.
00:02:06
Then set your criterion to le meaning less or equal.
00:02:11
You will then enter an apostrophe to reference
00:02:13
your deadline relative to the file creation date.
00:02:17
Use the power FX button and enter the
00:02:20
following formula which allows referencing the current date UTC
00:02:24
now associated with the A day function by defining minus 730 days or about two years.
00:02:32
Concretely. In this example, you will subtract 730 days from the current date.
00:02:39
When SharePoint lists the files, it will include the names of the sub folders.
00:02:43
In the result,
00:02:44
you will need to constrain this action by adding
00:02:46
a query parameter excluding folder type objects from the result
00:02:52
to recreate the original structure in your archive library, initialize a text,
00:02:57
variable named folder and populate it during future processing
00:03:02
the files dated over two years are listed,
00:03:05
begin their processing by initializing a apply to each
00:03:08
loop that will retrieve the dynamic content body value,
00:03:12
which is the list of items to process.
00:03:15
Always within the loop. Populate your folder.
00:03:18
Variable by retrieving the access path of each file.
00:03:21
Choose the action related to variables to set your folder. Variable.
00:03:27
Note several technical elements here,
00:03:30
the access path of the file to be moved
00:03:32
will contain the name of the library shared documents
00:03:35
as well as the sub folder files to move,
00:03:39
use a power FX formula to replace this path with empty space in your
00:03:43
variable to retrieve only the relative path inside the folder to be processed.
00:03:51
Another important point,
00:03:52
the last character of your folder variable will contain a slash which
00:03:57
will cause an issue when moving the file to be archived.
00:04:00
Use the slice function to retrieve the path string from position index
00:04:04
zero to index minus one corresponding to the slash to be removed.
00:04:10
If the file is at the root of your files to move folder,
00:04:13
the variable will contain empty space.
00:04:16
Otherwise it will contain the path of the folder where the file is placed.
00:04:21
Manage an if condition testing if the folder variable is empty.
00:04:27
If so add the SharePoint action to create folders to
00:04:31
create in your SharePoint site within your archives library.
00:04:35
The relative path of the folder corresponding to the file being processed
00:04:41
after creating or not the folder still within the loop.
00:04:44
Add the action to move the processed file,
00:04:46
refer to the file to be moved by its complete original path and set the
00:04:50
destination folder corresponding to your archives library followed
00:04:55
by the path stored in your variable.
00:04:57
If another file already exists, choose to replace it,
00:05:01
finally save and test
00:05:05
files over two years old will be moved to the root of your archives library
00:05:09
for files stored in sub folders. The original structure will be recreated.
00:05:14
This is how to create a complete archiving flow between sharepoint libraries.

No elements match your search in this video....
Do another search or back to content !

 

00:00:03
Bem-vindo a este tutorial onde irá aprender a
00:00:05
automatizar a movimentação de ficheiros numa biblioteca de arquivos.
00:00:09
Este fluxo mais complexo terá de ter em conta uma série de constrangimentos.
00:00:14
Neste vídeo, irá usar variáveis, elementos condicionais e funções Power FX
00:00:21
iniciar
00:00:22
imagine que precisa de mover ficheiros de uma pasta numa biblioteca do sharepoint.
00:00:26
Dependendo da idade dos ficheiros,
00:00:28
terá de os mover enquanto mantém a pasta de origem e a estrutura do ficheiro
00:00:32
para manter uma organização idêntica do seu conteúdo na biblioteca de destino.
00:00:36
Essa é a sua biblioteca de arquivos. Em
00:00:39
este site do sharepoint,
00:00:40
encontrará uma biblioteca standard denominada documentos em
00:00:43
que existe uma pasta intitulada ficheiros para mover
00:00:47
esta pasta contém uma série de ficheiros de idades variadas.
00:00:51
Opcionalmente, pode adicionar uma coluna para o ficheiro
00:00:53
data de criação ou modificação que não é mostrada por defeito.
00:00:58
A sua segunda biblioteca com o nome de arquivos está atualmente completamente
00:01:02
vazio e terá de ser preenchido automaticamente
00:01:06
para começar.
00:01:07
Irá iniciar um fluxo recorrente que decorrerá no primeiro dia de cada mês às 6 horas da manhã.
00:01:19
A primeira ação será recuperar
00:01:21
os ficheiros da pasta que contém o potencial
00:01:23
ficheiros a mover enquanto pode processar
00:01:26
todo o conteúdo da sua biblioteca de documentos.
00:01:28
Neste tutorial, limitar-nos-emos voluntariamente a uma pasta específica.
00:01:34
Activar definições avançadas para aplicar uma consulta que limita o fluxo ao
00:01:37
pasta escolhida enquanto inclui os ficheiros nas subpastas da pasta de destino.
00:01:43
Em seguida, introduza os parâmetros relacionados com os itens aninhados
00:01:46
e especifique a pasta a ser processada.
00:01:48
Em
00:01:49
neste exemplo, apenas moveremos ficheiros criados há dois anos ou mais.
00:01:54
A consulta do filtro especificará este critério.
00:01:57
Introduza o nome da coluna criada para a data de criação do ficheiro.
00:02:01
Também pode utilizar modificado para a data da última modificação do ficheiro.
00:02:06
Em seguida, defina o seu critério para le meaning menor ou igual.
00:02:11
Irá então introduzir um apóstrof para referência
00:02:13
o seu prazo relativo à data de criação do ficheiro.
00:02:17
Utilize o botão liga/desliga FX e introduza o
00:02:20
seguinte fórmula que permite fazer referência à data atual UTC
00:02:24
agora associada à função Dia A definindo menos 730 dias ou cerca de dois anos.
00:02:32
Concretamente. Neste exemplo, irá subtrair 730 dias da data atual.
00:02:39
Quando o SharePoint lista os ficheiros, incluirá os nomes das subpastas.
00:02:43
No resultado,
00:02:44
terá de restringir esta acção adicionando
00:02:46
um parâmetro de consulta excluindo objetos do tipo pasta do resultado
00:02:52
para recriar a estrutura original na sua biblioteca de arquivos, inicializar um texto,
00:02:57
variável nomeada pasta e preenchê-la durante o processamento futuro
00:03:02
os ficheiros com data superior a dois anos são enumerados,
00:03:05
iniciar o seu processamento inicializando uma aplicação a cada
00:03:08
loop que irá recuperar o valor do corpo do conteúdo dinâmico,
00:03:12
que é a lista de itens a processar.
00:03:15
Sempre dentro do ciclo. Preencha a sua pasta.
00:03:18
Variável recuperando o caminho de acesso de cada ficheiro.
00:03:21
Escolha a ação relacionada com variáveis para definir a sua pasta. Variável.
00:03:27
Note aqui vários elementos técnicos,
00:03:30
o caminho de acesso do ficheiro a mover
00:03:32
conterá o nome dos documentos partilhados da biblioteca
00:03:35
bem como os ficheiros da subpasta a mover,
00:03:39
use uma fórmula Power FX para substituir este caminho por espaço vazio no seu
00:03:43
variável para recuperar apenas o caminho relativo dentro da pasta a ser processada.
00:03:51
Outro ponto importante,
00:03:52
o último caractere da sua variável de pasta conterá uma barra que
00:03:57
irá causar um problema ao mover o ficheiro a ser arquivado.
00:04:00
Use a função slice para recuperar a string de caminho do índice de posição
00:04:04
zero ao índice menos um correspondente à barra a ser removida.
00:04:10
Se o ficheiro estiver na raiz dos ficheiros para mover a pasta,
00:04:13
a variável conterá espaço vazio.
00:04:16
Caso contrário, conterá o caminho da pasta onde o ficheiro é colocado.
00:04:21
Gerir um teste de condição if se a variável de pasta estiver vazia.
00:04:27
Em caso afirmativo, adicione a acção do SharePoint para criar pastas
00:04:31
criar no seu site do SharePoint dentro da biblioteca de arquivos.
00:04:35
O caminho relativo da pasta correspondente ao ficheiro a ser processado
00:04:41
depois de criar ou não a pasta ainda dentro do loop.
00:04:44
Adicione a ação para mover o ficheiro processado,
00:04:46
consulte o arquivo a ser movido pelo seu caminho original completo e defina o
00:04:50
pasta de destino correspondente à sua biblioteca de arquivos seguida
00:04:55
pelo caminho armazenado na sua variável.
00:04:57
Se já existir outro ficheiro, opte por substituí-lo,
00:05:01
finalmente salvar e testar
00:05:05
ficheiros com mais de dois anos serão movidos para a raiz da sua biblioteca de arquivos
00:05:09
para ficheiros armazenados em subpastas. A estrutura original será recriada.
00:05:14
Isto é como criar um fluxo de arquivamento completo entre as bibliotecas do sharepoint.

No elements match your search in this video....
Do another search or back to content !

 

00:00:03
Benvenuto in questo tutorial dove imparerai a
00:00:05
automatizzare lo spostamento dei file in una libreria di archivi.
00:00:09
Questo flusso più complesso dovrà tenere conto di una serie di vincoli.
00:00:14
In questo video, utilizzerai variabili, elementi condizionali e funzioni Power FX
00:00:21
per iniziare
00:00:22
immagina di dover spostare i file da una cartella in una libreria di sharepoint.
00:00:26
A seconda dell'età dei file,
00:00:28
dovrai spostarli mantenendo la cartella di origine e la struttura dei file
00:00:32
per mantenere un'organizzazione identica dei contenuti nella libreria di destinazione.
00:00:36
Questa è la tua libreria di archivi. Nel
00:00:39
questo sito sharepoint,
00:00:40
troverai una libreria standard denominata documents in
00:00:43
in cui è presente una cartella denominata files da spostare
00:00:47
questa cartella contiene una serie di file di età diverse.
00:00:51
Facoltativamente, puoi aggiungere una colonna per il file
00:00:53
data di creazione o modifica che non viene visualizzata per impostazione predefinita.
00:00:58
La tua seconda libreria denominata archives è attualmente completa
00:01:02
vuota e dovrà essere compilata automaticamente
00:01:06
per iniziare.
00:01:07
Inizierai un flusso ricorrente che verrà eseguito il primo giorno di ogni mese alle 6 del mattino.
00:01:19
La prima azione sarà recuperare
00:01:21
i file della cartella contenente il potenziale
00:01:23
file da spostare durante l'elaborazione
00:01:26
l'intero contenuto della tua libreria di documenti.
00:01:28
In questo tutorial, ci limiteremo volontariamente a una cartella specifica.
00:01:34
Abilita le impostazioni avanzate per applicare una query che limiterà il flusso al
00:01:37
cartella scelta includendo i file nelle sottocartelle della cartella di destinazione.
00:01:43
Quindi inserisci i parametri relativi agli elementi annidati
00:01:46
e specifica la cartella da elaborare.
00:01:48
In
00:01:49
in questo esempio, sposteremo solo i file creati due anni fa o più.
00:01:54
La ricerca del filtro specificherà questo criterio.
00:01:57
Immettete il nome della colonna creata per la data di creazione del file.
00:02:01
Puoi anche utilizzare modified per la data dell'ultima modifica del file.
00:02:06
Quindi imposta il criterio su le che significa minore o uguale.
00:02:11
Inserirai quindi un apostrofo a cui fare riferimento
00:02:13
la tua scadenza relativa alla data di creazione del file.
00:02:17
Usa il pulsante power FX e inserisci il
00:02:20
seguente formula che consente di fare riferimento alla data corrente UTC
00:02:24
ora associata alla funzione A day definendo meno 730 giorni o circa due anni.
00:02:32
Concretamente. In questo esempio, sottrarrai 730 giorni dalla data corrente.
00:02:39
Quando SharePoint elenca i file, includerà i nomi delle sottocartelle.
00:02:43
Nel risultato,
00:02:44
dovrai limitare questa azione aggiungendo
00:02:46
un parametro di interrogazione che esclude gli oggetti di tipo cartella dal risultato
00:02:52
per ricreare la struttura originale nella libreria di archivio, inizializza un testo,
00:02:57
variabile denominata folder e popolala durante l'elaborazione futura
00:03:02
sono elencati i file datati più di due anni,
00:03:05
iniziano la loro elaborazione inizializzando una domanda per ciascuno
00:03:08
loop che recupererà il valore del corpo del contenuto dinamico,
00:03:12
che è l'elenco degli elementi da elaborare.
00:03:15
Sempre aggiornato. Compila la tua cartella.
00:03:18
Variabile recuperando il percorso di accesso di ogni file.
00:03:21
Scegli l'azione relativa alle variabili per impostare la cartella. Variabile.
00:03:27
Nota qui diversi elementi tecnici,
00:03:30
il percorso di accesso del file da spostare
00:03:32
conterrà il nome dei documenti condivisi della libreria
00:03:35
oltre ai file delle sottocartelle da spostare,
00:03:39
usa una formula power FX per sostituire questo percorso con uno spazio vuoto nel tuo
00:03:43
variabile per recuperare solo il percorso relativo all'interno della cartella da elaborare.
00:03:51
Un altro punto importante,
00:03:52
l'ultimo carattere della variabile della cartella conterrà una barra che
00:03:57
causerà un problema durante lo spostamento del file da archiviare.
00:04:00
Usa la funzione slice per recuperare la stringa del percorso dall'indice di posizione
00:04:04
zero rispetto all'indice meno uno corrispondente alla barra da rimuovere.
00:04:10
Se il file è alla radice della cartella dei file da spostare,
00:04:13
la variabile conterrà uno spazio vuoto.
00:04:16
Altrimenti conterrà il percorso della cartella in cui è inserito il file.
00:04:21
Gestisci una condizione if verificando se la variabile della cartella è vuota.
00:04:27
In tal caso, aggiungi l'azione SharePoint per creare cartelle a
00:04:31
crea nel tuo sito di SharePoint all'interno della tua libreria di archivi.
00:04:35
Il percorso relativo della cartella corrispondente al file in fase di elaborazione
00:04:41
dopo aver creato o meno la cartella ancora all'interno del ciclo.
00:04:44
Aggiungi l'azione per spostare il file elaborato,
00:04:46
fate riferimento al file da spostare seguendo il percorso originale completo e impostate il
00:04:50
segue la cartella di destinazione corrispondente alla libreria degli archivi
00:04:55
dal percorso memorizzato nella variabile.
00:04:57
Se esiste già un altro file, scegli di sostituirlo,
00:05:01
infine salva e prova
00:05:05
i file che hanno più di due anni verranno spostati nella cartella principale della libreria degli archivi
00:05:09
per i file archiviati in sottocartelle. La struttura originale verrà ricreata.
00:05:14
Ecco come creare un flusso di archiviazione completo tra le librerie di SharePoint.

No elements match your search in this video....
Do another search or back to content !

 

00:00:03
Добро пожаловать в этот урок, где вы научитесь
00:00:05
автоматизировать перемещение файлов в архивной библиотеке.
00:00:09
Этот более сложный процесс должен учитывать ряд ограничений.
00:00:14
В этом видео вы будете использовать переменные, условные элементы и функции Power FX
00:00:21
для начала
00:00:22
представьте, что вам нужно переместить файлы из папки в библиотеке sharepoint.
00:00:26
В зависимости от возраста файлов,
00:00:28
вам нужно будет переместить их, сохранив исходную папку и файловую структуру
00:00:32
чтобы сохранить идентичную организацию содержимого в целевой библиотеке.
00:00:36
Это ваша архивная библиотека. В
00:00:39
на этом сайте sharepoint,
00:00:40
вы найдете стандартную библиотеку с названием documents в
00:00:43
в которой есть папка с названием «Файлы для перемещения»
00:00:47
эта папка содержит серию файлов разного возраста.
00:00:51
При желании вы можете добавить столбец для файла
00:00:53
дата создания или изменения, которая по умолчанию не отображается.
00:00:58
Ваша вторая библиотека под названием archives в настоящее время полностью готова
00:01:02
пуста и должна быть автоматически заполнена
00:01:06
для начала.
00:01:07
Вы начнете регулярный сбор средств, который будет проходить первого числа каждого месяца в 6 утра.
00:01:19
Первым действием будет извлечение
00:01:21
файлы из папки, содержащей потенциал
00:01:23
файлы, которые нужно переместить, пока вы сможете их обработать
00:01:26
все содержимое вашей библиотеки документов.
00:01:28
В этом уроке мы добровольно ограничимся определенной папкой.
00:01:34
Включите дополнительные настройки, чтобы применить запрос, ограничивающий поток до
00:01:37
выбранная папка при включении файлов во вложенные папки целевой папки.
00:01:43
Затем введите параметры, относящиеся к вложенным элементам
00:01:46
и укажите папку для обработки.
00:01:48
В
00:01:49
В этом примере мы будем перемещать только файлы, созданные два года назад или более.
00:01:54
В запросе фильтра будет указан этот критерий.
00:01:57
Введите имя созданного столбца для даты создания файла.
00:02:01
Можно также использовать измененное в качестве даты последнего изменения файла.
00:02:06
Затем задайте критерий «le», означающий «меньше» или «равно».
00:02:11
Затем вы введете апостроф для ссылки
00:02:13
ваш крайний срок относительно даты создания файла.
00:02:17
Используйте кнопку Power FX и введите
00:02:20
следующая формула, позволяющая указать текущую дату в формате UTC
00:02:24
теперь связано с функцией «День А» путем определения минус 730 дней или около двух лет.
00:02:32
Конкретно. В этом примере вы вычтете 730 дней из текущей даты.
00:02:39
Когда SharePoint перечислит файлы, он будет включать имена подпапок.
00:02:43
В результате
00:02:44
вам нужно будет ограничить это действие, добавив
00:02:46
параметр запроса, исключающий из результата объекты типа папки
00:02:52
чтобы воссоздать исходную структуру в архивной библиотеке, инициализируйте текст,
00:02:57
переменная назвала папку и заполните ее во время дальнейшей обработки
00:03:02
перечислены файлы, датированные более двух лет,
00:03:05
начните их обработку, инициализировав заявку на каждый из них
00:03:08
цикл, который будет извлекать значение тела динамического содержимого,
00:03:12
это список элементов для обработки.
00:03:15
Всегда в курсе событий. Заполните папку.
00:03:18
Переменная, получая путь доступа к каждому файлу.
00:03:21
Выберите действие, связанное с переменными, чтобы настроить папку. Переменная.
00:03:27
Обратите внимание на несколько технических элементов здесь,
00:03:30
путь доступа к перемещаемому файлу
00:03:32
будет содержать имя общих документов библиотеки
00:03:35
а также файлы подпапок, которые нужно переместить,
00:03:39
используйте формулу power FX, чтобы заменить этот путь пустым местом в вашем
00:03:43
переменная для получения только относительного пути в обрабатываемой папке.
00:03:51
Еще один важный момент,
00:03:52
последний символ переменной папки будет содержать косую черту, которая
00:03:57
вызовет проблему при перемещении файла для архивирования.
00:04:00
Используйте функцию среза для извлечения строки пути из индекса позиции
00:04:04
от нуля до индекса минус единица, соответствующая удаляемой косой черте.
00:04:10
Если файл находится в корне папки с файлами, которую нужно переместить,
00:04:13
переменная будет содержать пустое место.
00:04:16
В противном случае в ней будет указан путь к папке, в которую помещен файл.
00:04:21
Управляйте тестированием состояния if, если переменная папки пуста.
00:04:27
В таком случае добавьте действие SharePoint для создания папок в
00:04:31
создайте на своем сайте SharePoint в своей архивной библиотеке.
00:04:35
Относительный путь к папке, соответствующей обрабатываемому файлу
00:04:41
после создания или отсутствия папки, которая все еще находится в цикле.
00:04:44
Добавьте действие по перемещению обработанного файла,
00:04:46
укажите полный исходный путь к файлу, который нужно переместить, и задайте
00:04:50
Далее следует папка назначения, соответствующая вашей архивной библиотеке
00:04:55
по пути, сохраненному в переменной.
00:04:57
Если другой файл уже существует, замените его,
00:05:01
наконец, сохраните и протестируйте
00:05:05
файлы старше двух лет будут перемещены в корень вашей архивной библиотеки
00:05:09
для файлов, хранящихся в подпапках. Оригинальная структура будет воссоздана.
00:05:14
Вот как создать полный процесс архивирования между библиотеками sharepoint.

No elements match your search in this video....
Do another search or back to content !

 

00:00:03
Bienvenido a este tutorial donde aprenderás a
00:00:05
automatizar el movimiento de archivos en una biblioteca de archivos.
00:00:09
Este flujo más complejo tendrá que tener en cuenta una serie de restricciones.
00:00:14
En este vídeo, utilizarás variables, elementos condicionales y funciones de Power FX
00:00:21
para empezar
00:00:22
imagine que necesita mover archivos de una carpeta de una biblioteca de SharePoint.
00:00:26
Según la antigüedad de los archivos,
00:00:28
tendrá que moverlos manteniendo la carpeta de origen y la estructura de archivos
00:00:32
para mantener una organización idéntica del contenido en la biblioteca de destino.
00:00:36
Esa es tu biblioteca de archivos. En
00:00:39
este sitio de SharePoint,
00:00:40
encontrará una biblioteca estándar llamada documents en
00:00:43
donde hay una carpeta titulada «Archivos para mover»
00:00:47
esta carpeta contiene una serie de archivos de diferentes edades.
00:00:51
Si lo desea, puede añadir una columna para el archivo
00:00:53
fecha de creación o modificación que no se muestra de forma predeterminada.
00:00:58
Tu segunda biblioteca, llamada archivos, está actualmente completa
00:01:02
vacía y tendrá que rellenarse automáticamente
00:01:06
para empezar.
00:01:07
Iniciarás un flujo periódico que se ejecutará el primer día de cada mes a las 6 de la mañana.
00:01:19
La primera acción será recuperar
00:01:21
los archivos de la carpeta que contiene el potencial
00:01:23
archivos que se moverán mientras se puedan procesar
00:01:26
todo el contenido de su biblioteca de documentos.
00:01:28
En este tutorial, nos limitaremos voluntariamente a una carpeta específica.
00:01:34
Habilite la configuración avanzada para aplicar una consulta que limitará el flujo a
00:01:37
la carpeta elegida al tiempo que incluye los archivos en las subcarpetas de la carpeta de destino.
00:01:43
A continuación, introduzca los parámetros relacionados con los elementos anidados
00:01:46
y especifique la carpeta que se va a procesar.
00:01:48
En
00:01:49
en este ejemplo, solo moveremos los archivos creados hace dos años o más.
00:01:54
La consulta de filtro especificará este criterio.
00:01:57
Introduzca el nombre de la columna creada para la fecha de creación del archivo.
00:02:01
También puede usar modificado para la fecha de la última modificación del archivo.
00:02:06
A continuación, defina su criterio para que le signifique menor o igual.
00:02:11
A continuación, introducirás un apóstrofe al que hacer referencia
00:02:13
su fecha límite en relación con la fecha de creación del archivo.
00:02:17
Use el botón Power FX e introduzca el
00:02:20
siguiente fórmula que permite hacer referencia a la fecha actual UTC
00:02:24
ahora se asocia a la función Un día al definir menos 730 días o aproximadamente dos años.
00:02:32
Concretamente. En este ejemplo, restará 730 días de la fecha actual.
00:02:39
Cuando SharePoint enumere los archivos, incluirá los nombres de las subcarpetas.
00:02:43
En el resultado,
00:02:44
tendrá que restringir esta acción añadiendo
00:02:46
un parámetro de consulta que excluye del resultado los objetos de tipo carpeta
00:02:52
para recrear la estructura original de su biblioteca de archivos, inicialice un texto,
00:02:57
variable denominada carpeta y rellénala durante el procesamiento futuro
00:03:02
se enumeran los archivos fechados durante más de dos años,
00:03:05
comienzan su procesamiento inicializando una solicitud para cada uno
00:03:08
bucle que recuperará el valor del cuerpo del contenido dinámico,
00:03:12
que es la lista de elementos a procesar.
00:03:15
Siempre dentro del circuito. Rellena tu carpeta.
00:03:18
Variable recuperando la ruta de acceso de cada archivo.
00:03:21
Elija la acción relacionada con las variables para configurar su carpeta. Variable.
00:03:27
Tenga en cuenta aquí varios elementos técnicos,
00:03:30
la ruta de acceso del archivo que se va a mover
00:03:32
contendrá el nombre de los documentos compartidos de la biblioteca
00:03:35
así como los archivos de la subcarpeta que se van a mover,
00:03:39
utilice una fórmula de Power FX para reemplazar esta ruta por un espacio vacío en su
00:03:43
variable para recuperar solo la ruta relativa dentro de la carpeta que se va a procesar.
00:03:51
Otro punto importante,
00:03:52
el último carácter de la variable de su carpeta contendrá una barra que
00:03:57
provocará un problema al mover el archivo para archivarlo.
00:04:00
Utilice la función de división para recuperar la cadena de ruta desde el índice de posición
00:04:04
cero para indexar menos uno correspondiente a la barra que se va a eliminar.
00:04:10
Si el archivo está en la raíz de la carpeta de archivos a mover,
00:04:13
la variable contendrá un espacio vacío.
00:04:16
De lo contrario, contendrá la ruta de la carpeta en la que se encuentra el archivo.
00:04:21
Gestione una prueba de condición de estado si la variable de la carpeta está vacía.
00:04:27
Si es así, agregue la acción de SharePoint para crear carpetas a
00:04:31
cree en su sitio de SharePoint dentro de su biblioteca de archivos.
00:04:35
La ruta relativa de la carpeta correspondiente al archivo que se está procesando
00:04:41
después de crear o no la carpeta que sigue dentro del bucle.
00:04:44
Agregue la acción para mover el archivo procesado,
00:04:46
consulte la ruta original completa del archivo que se va a mover y defina
00:04:50
siguió la carpeta de destino correspondiente a su biblioteca de archivos
00:04:55
por la ruta almacenada en su variable.
00:04:57
Si ya existe otro archivo, elija reemplazarlo,
00:05:01
finalmente guarda y prueba
00:05:05
los archivos de más de dos años se moverán a la raíz de su biblioteca de archivos
00:05:09
para los archivos almacenados en subcarpetas. Se recreará la estructura original.
00:05:14
Así es como se crea un flujo de archivado completo entre las bibliotecas de SharePoint.

No elements match your search in this video....
Do another search or back to content !

 

00:00:03
Welkom bij deze tutorial waarin je leert
00:00:05
automatiseer de verplaatsing van bestanden in een archiefbibliotheek.
00:00:09
Deze complexere stroom zal rekening moeten houden met een aantal beperkingen.
00:00:14
In deze video gebruik je variabelen, voorwaardelijke elementen en power FX-functies
00:00:21
om te beginnen
00:00:22
stel je voor dat je bestanden uit een map in een sharepoint-bibliotheek moet verplaatsen.
00:00:26
Afhankelijk van de ouderdom van de bestanden
00:00:28
je moet ze verplaatsen met behoud van de bronmap en bestandsstructuur
00:00:32
om een identieke organisatie van uw inhoud in de doelbibliotheek te behouden.
00:00:36
Dat is je archiefbibliotheek. In
00:00:39
deze sharepoint-site,
00:00:40
vindt u een standaardbibliotheek met de naam documenten in
00:00:43
welke map met de titel bestanden is om te verplaatsen
00:00:47
deze map bevat een reeks bestanden van verschillende leeftijden.
00:00:51
Je kunt optioneel een kolom toevoegen voor het bestand
00:00:53
aanmaak- of wijzigingsdatum die standaard niet wordt weergegeven.
00:00:58
Je tweede bibliotheek met de naam archieven is momenteel volledig
00:01:02
leeg en moet automatisch worden ingevuld
00:01:06
om te beginnen.
00:01:07
Je start een terugkerende flow die op de eerste van elke maand om 06.00 uur loopt.
00:01:19
De eerste actie zal zijn om op te halen
00:01:21
de bestanden uit de map die het potentieel bevat
00:01:23
bestanden die moeten worden verplaatst terwijl u ze kunt verwerken
00:01:26
de volledige inhoud van je documentenbibliotheek.
00:01:28
In deze tutorial beperken we ons vrijwillig tot een specifieke map.
00:01:34
Schakel geavanceerde instellingen in om een query toe te passen die de stroom beperkt tot de
00:01:37
gekozen map met inbegrip van de bestanden in de submappen van de doelmap.
00:01:43
Voer vervolgens de parameters in die betrekking hebben op geneste items
00:01:46
en specificeer de map die moet worden verwerkt.
00:01:48
In
00:01:49
in dit voorbeeld verplaatsen we alleen bestanden die twee jaar geleden of langer zijn gemaakt.
00:01:54
De filterquery zal dit criterium specificeren.
00:01:57
Voer de naam van de aangemaakte kolom in voor de aanmaakdatum van het bestand.
00:02:01
U kunt ook modified gebruiken voor de datum van de laatste wijziging van het bestand.
00:02:06
Stel vervolgens je criterium in op le, wat minder of gelijk betekent.
00:02:11
Vervolgens voert u een apostrof in om naar te verwijzen
00:02:13
uw deadline in verhouding tot de aanmaakdatum van het bestand.
00:02:17
Gebruik de power FX-knop en voer de
00:02:20
volgende formule waarmee naar de huidige datum (UTC) kan worden verwezen
00:02:24
nu gekoppeld aan de A-dagfunctie door min 730 dagen of ongeveer twee jaar te definiëren.
00:02:32
Concreet. In dit voorbeeld trekt u 730 dagen af van de huidige datum.
00:02:39
Wanneer SharePoint de bestanden opsomt, worden de namen van de submappen opgenomen.
00:02:43
In het resultaat
00:02:44
je moet deze actie beperken door toe te voegen
00:02:46
een queryparameter die objecten van het maptype uitsluit van het resultaat
00:02:52
om de originele structuur in uw archiefbibliotheek opnieuw te creëren, een tekst te initialiseren,
00:02:57
map met variabele naam en vul deze in tijdens toekomstige verwerking
00:03:02
de dossiers die meer dan twee jaar oud zijn, worden vermeld,
00:03:05
begin hun verwerking door een aanvraag te initialiseren voor elk
00:03:08
loop die de body-waarde van de dynamische inhoud ophaalt,
00:03:12
dat is de lijst met items die moeten worden verwerkt.
00:03:15
Altijd op de hoogte. Vul je map in.
00:03:18
Variabele door het toegangspad van elk bestand op te halen.
00:03:21
Kies de actie met betrekking tot variabelen om je map in te stellen. Variabele.
00:03:27
Noteer hier verschillende technische elementen,
00:03:30
het toegangspad van het bestand dat moet worden verplaatst
00:03:32
bevat de naam van de gedeelde documenten van de bibliotheek
00:03:35
evenals de bestanden in de submap die moeten worden verplaatst,
00:03:39
gebruik een power FX-formule om dit pad te vervangen door lege ruimte in je
00:03:43
variabele om alleen het relatieve pad binnen de te verwerken map op te halen.
00:03:51
Nog een belangrijk punt,
00:03:52
het laatste teken van je mapvariabele zal een schuine streep bevatten die
00:03:57
zal een probleem veroorzaken bij het verplaatsen van het bestand dat gearchiveerd moet worden.
00:04:00
Gebruik de segmentfunctie om de padtekenreeks op te halen uit de positie-index
00:04:04
nul tot index min één die overeenkomt met de schuine streep die moet worden verwijderd.
00:04:10
Als het bestand zich in de hoofdmap van uw bestanden bevindt om de map te verplaatsen,
00:04:13
de variabele zal lege ruimte bevatten.
00:04:16
Anders bevat het het pad van de map waar het bestand is geplaatst.
00:04:21
Beheer een if-conditie om te testen of de mapvariabele leeg is.
00:04:27
Zo ja, voeg dan de SharePoint-actie toe om mappen aan te maken
00:04:31
creëer in uw SharePoint-site binnen uw archiefbibliotheek.
00:04:35
Het relatieve pad van de map dat overeenkomt met het bestand dat wordt verwerkt
00:04:41
na het aanmaken of niet, de map die nog steeds in de lus zit.
00:04:44
Voeg de actie toe om het verwerkte bestand te verplaatsen,
00:04:46
verwijs naar het bestand dat moet worden verplaatst via het volledige oorspronkelijke pad en stel de
00:04:50
doelmap die overeenkomt met uw archiefbibliotheek, gevolgd
00:04:55
via het pad dat is opgeslagen in je variabele.
00:04:57
Als er al een ander bestand bestaat, kies er dan voor om het te vervangen,
00:05:01
eindelijk opslaan en testen
00:05:05
bestanden die meer dan twee jaar oud zijn, worden verplaatst naar de hoofdmap van uw archiefbibliotheek
00:05:09
voor bestanden die zijn opgeslagen in submappen. De originele structuur wordt opnieuw gemaakt.
00:05:14
Zo creëer je een volledige archiveringsstroom tussen SharePoint-bibliotheken.

No elements match your search in this video....
Do another search or back to content !

 

00:00:03
Witamy w tym samouczku, w którym nauczysz się
00:00:05
zautomatyzować przepływ plików w bibliotece archiwum.
00:00:09
Ten bardziej złożony przepływ będzie musiał uwzględniać szereg ograniczeń.
00:00:14
W tym filmie użyjesz zmiennych, elementów warunkowych i funkcji Power FX
00:00:21
na początek
00:00:22
wyobraź sobie, że musisz przenieść pliki z folderu w bibliotece SharePoint.
00:00:26
W zależności od wieku plików,
00:00:28
będziesz musiał je przenieść, zachowując folder źródłowy i strukturę pliku
00:00:32
aby zachować identyczną organizację treści w bibliotece docelowej.
00:00:36
To jest twoja biblioteka archiwalna. W
00:00:39
ta witryna SharePoint,
00:00:40
znajdziesz standardową bibliotekę o nazwie dokumenty w
00:00:43
w którym znajduje się folder zatytułowany pliki do przeniesienia
00:00:47
ten folder zawiera serię plików w różnym wieku.
00:00:51
Opcjonalnie można dodać kolumnę do pliku
00:00:53
data utworzenia lub modyfikacji, która nie jest domyślnie wyświetlana.
00:00:58
Twoja druga biblioteka o nazwie archiwa jest obecnie całkowicie
00:01:02
pusty i będzie musiał zostać automatycznie wypełniony
00:01:06
na początek.
00:01:07
Zainicjujesz powtarzający się przepływ, który będzie przebiegał pierwszego dnia każdego miesiąca o 6 rano.
00:01:19
Pierwszą akcją będzie odzyskanie
00:01:21
pliki z folderu zawierającego potencjał
00:01:23
pliki do przeniesienia podczas przetwarzania
00:01:26
całą zawartość biblioteki dokumentów.
00:01:28
W tym samouczku dobrowolnie ograniczamy się do określonego folderu.
00:01:34
Włącz ustawienia zaawansowane, aby zastosować zapytanie, które ograniczy przepływ do
00:01:37
wybrany folder podczas włączania plików do podfolderów folderu docelowego.
00:01:43
Następnie wprowadź parametry związane z zagnieżdżonymi elementami
00:01:46
i określ folder, który ma być przetwarzany.
00:01:48
W
00:01:49
w tym przykładzie będziemy przenosić tylko pliki utworzone dwa lata temu lub dłużej.
00:01:54
Zapytanie filtrujące określi to kryterium.
00:01:57
Wprowadź nazwę utworzonej kolumny dla daty utworzenia pliku.
00:02:01
Możesz także użyć modyfikowanego dla daty ostatniej modyfikacji pliku.
00:02:06
Następnie ustaw swoje kryterium na le, co oznacza mniej lub równe.
00:02:11
Następnie wprowadzisz apostrof do odniesienia
00:02:13
Twój termin odnoszący się do daty utworzenia pliku.
00:02:17
Użyj przycisku zasilania FX i wprowadź
00:02:20
następujący wzór, który umożliwia odwołanie się do bieżącej daty UTC
00:02:24
teraz skojarzony z funkcją A day poprzez zdefiniowanie minus 730 dni lub około dwóch lat.
00:02:32
Konkretnie. W tym przykładzie odejmiesz 730 dni od bieżącej daty.
00:02:39
Gdy program SharePoint wyświetli listę plików, będzie zawierał nazwy podrzędnych folderów.
00:02:43
W rezultacie
00:02:44
będziesz musiał ograniczyć tę akcję, dodając
00:02:46
parametr zapytania wyłączający obiekty typu folderu z wyniku
00:02:52
aby odtworzyć oryginalną strukturę w bibliotece archiwum, zainicjować tekst,
00:02:57
zmiennej o nazwie folder i wypełnij go podczas przyszłego przetwarzania
00:03:02
wymienione są akta z upływem dwóch lat,
00:03:05
rozpocznij ich przetwarzanie, inicjując apply do każdego
00:03:08
pętla, która pobiera wartość treści dynamicznej,
00:03:12
która jest listą przedmiotów do przetworzenia.
00:03:15
Zawsze w pętli. Wypełnij swój folder.
00:03:18
Zmienna poprzez pobranie ścieżki dostępu do każdego pliku.
00:03:21
Wybierz akcję związaną ze zmiennymi, aby ustawić folder. Zmienna.
00:03:27
Zwróć uwagę na kilka elementów technicznych,
00:03:30
ścieżka dostępu do pliku, który ma zostać przeniesiony
00:03:32
będzie zawierać nazwę udostępnionych dokumentów biblioteki
00:03:35
a także pliki folderów podrzędnych do przeniesienia,
00:03:39
użyj formuły Power FX, aby zastąpić tę ścieżkę pustym miejscem w swoim
00:03:43
zmienna do pobierania tylko względnej ścieżki wewnątrz folderu, który ma być przetwarzany.
00:03:51
Kolejny ważny punkt,
00:03:52
ostatni znak zmiennej folderu będzie zawierał ukośnik, który
00:03:57
spowoduje problem podczas przenoszenia pliku do archiwizacji.
00:04:00
Użyj funkcji slice, aby pobrać ciąg ścieżki z indeksu pozycji
00:04:04
zero do indeksu minus jeden odpowiadający ukośnikowi, który ma zostać usunięty.
00:04:10
Jeśli plik znajduje się w katalogu głównym folderu plików do przeniesienia,
00:04:13
zmienna będzie zawierała puste miejsce.
00:04:16
W przeciwnym razie będzie zawierał ścieżkę folderu, w którym plik jest umieszczony.
00:04:21
Zarządzaj testowaniem warunku if, jeśli zmienna folderu jest pusta.
00:04:27
Jeśli tak, dodaj akcję SharePoint, aby utworzyć foldery
00:04:31
utworzyć w witrynie SharePoint w bibliotece archiwów.
00:04:35
Względna ścieżka folderu odpowiadającego przetwarzanemu plikowi
00:04:41
po utworzeniu lub nie folderu nadal znajdującego się w pętli.
00:04:44
Dodaj akcję, aby przenieść przetworzony plik,
00:04:46
odwołaj się do pliku, który ma zostać przeniesiony przez jego pełną oryginalną ścieżkę i ustaw
00:04:50
Obserwowano folder docelowy odpowiadający bibliotece archiwów
00:04:55
przez ścieżkę przechowywaną w zmiennej.
00:04:57
Jeśli inny plik już istnieje, wybierz go zastąpienie,
00:05:01
wreszcie zapisz i przetestuj
00:05:05
pliki starsze niż dwa lata zostaną przeniesione do katalogu głównego biblioteki archiwów
00:05:09
dla plików przechowywanych w podrzędnych folderach. Oryginalna struktura zostanie odtworzona.
00:05:14
W ten sposób można utworzyć pełny przepływ archiwizacji między bibliotekami programu SharePoint.

No elements match your search in this video....
Do another search or back to content !

 

00:00:03
Üdvözöljük ebben az oktatóanyagban, ahol megtanulja
00:00:05
automatizálja a fájlok mozgását egy archív könyvtárban.
00:00:09
Ennek a bonyolultabb áramlásnak számos korlátozást kell figyelembe vennie.
00:00:14
Ebben a videóban változókat, feltételes elemeket és Power FX funkciókat fog használni
00:00:21
kezdeni
00:00:22
képzelje el, hogy fájlokat kell áthelyeznie egy SharePoint-könyvtár mappájából.
00:00:26
A fájlok korától függően
00:00:28
át kell helyeznie őket, miközben fenntartja a forrásmappát és a fájlszerkezetet
00:00:32
a tartalom azonos szervezésének megőrzése érdekében a célkönyvtárban.
00:00:36
Ez az archívumkönyvtár. Benn
00:00:39
ez a sharepoint webhely,
00:00:40
a dokumentumok elnevezésű szabványos könyvtárat talál
00:00:43
amelyen áthelyezendő fájlok című mappa található
00:00:47
ez a mappa különböző korú fájlokat tartalmaz.
00:00:51
Opcionálisan hozzáadhat egy oszlopot a fájlhoz
00:00:53
létrehozás vagy módosítás dátuma, amely alapértelmezés szerint nem jelenik meg.
00:00:58
A második archívum nevű könyvtár jelenleg teljesen megtalálható
00:01:02
üres, és automatikusan ki kell tölteni
00:01:06
kezdjünk.
00:01:07
Ismétlődő áramlást kezdeményez, amely minden hónap első napján reggel 6 órakor indul.
00:01:19
Az első művelet a visszakeresés
00:01:21
a potenciált tartalmazó mappából származó fájlok
00:01:23
a feldolgozás közben áthelyezendő fájlok
00:01:26
a dokumentumkönyvtár teljes tartalmát.
00:01:28
Ebben az oktatóanyagban önként korlátozódunk egy adott mappára.
00:01:34
Engedélyezze a speciális beállításokat olyan lekérdezés alkalmazásához, amely a folyamatot a következőkre korlátozza
00:01:37
kiválasztott mappát, miközben a fájlokat a célzott mappa almappáiba helyezi.
00:01:43
Ezután adja meg a beágyazott elemekhez kapcsolódó paramétereket
00:01:46
és adja meg a feldolgozni kívánt mappát.
00:01:48
Benn
00:01:49
ebben a példában csak két évvel ezelőtt létrehozott fájlokat mozgatjuk át.
00:01:54
A szűrőlekérdezés ezt a kritériumot adja meg.
00:01:57
Adja meg a létrehozott oszlop nevét a fájl létrehozásának dátumához.
00:02:01
A fájl utolsó módosításának dátumához is használhatja a módosítást.
00:02:06
Ezután állítsa be a kritériumot le, ami kevesebbet vagy egyenlő jelentést jelent.
00:02:11
Ezután beírja az aposztrófot a hivatkozáshoz
00:02:13
a fájl létrehozásának dátumához viszonyított határidőt.
00:02:17
Használja a Power FX gombot, és írja be a
00:02:20
a következő képlet, amely lehetővé teszi az aktuális UTC dátumra való hivatkozást
00:02:24
most az A nap függvényhez társítják a mínusz 730 nap vagy körülbelül két év meghatározásával.
00:02:32
Konkrétan. Ebben a példában 730 napot von le az aktuális dátumtól.
00:02:39
Amikor a SharePoint felsorolja a fájlokat, az tartalmazza az almappák nevét.
00:02:43
Az eredmény szerint
00:02:44
korlátoznia kell ezt a műveletet a hozzáadással
00:02:46
lekérdezési paraméter, amely nem tartalmaz mappatípusú objektumokat az eredményből
00:02:52
az archívumkönyvtár eredeti struktúrájának újbóli létrehozásához, szöveg inicializálásához,
00:02:57
változó nevű mappa, és töltse ki a későbbi feldolgozás során
00:03:02
felsorolják a két évnél idősebb aktákat,
00:03:05
kezdje meg feldolgozásukat azáltal, hogy inicializálja az alkalmazást mindegyikre
00:03:08
hurok, amely lekérheti a dinamikus tartalom törzsértékét,
00:03:12
amely a feldolgozandó elemek listája.
00:03:15
Mindig a hurkon belül. Töltse ki a mappát.
00:03:18
Változó az egyes fájlok hozzáférési útvonalának lekérésével.
00:03:21
Válassza ki a változókhoz kapcsolódó műveletet a mappa beállításához. Változó.
00:03:27
Vegye figyelembe itt számos technikai elemet,
00:03:30
az áthelyezendő fájl hozzáférési útvonala
00:03:32
tartalmazza a könyvtár megosztott dokumentumainak nevét
00:03:35
valamint az áthelyezendő almappa fájlokat,
00:03:39
egy power FX képlet segítségével helyettesítheti ezt az útvonalat üres helyre
00:03:43
változó, amely csak a feldolgozandó mappában lévő relatív elérési út lekérheti.
00:03:51
Egy másik fontos pont,
00:03:52
a mappaváltozó utolsó karaktere tartalmaz egy vágójelet, amely
00:03:57
problémát okoz az archiválandó fájl áthelyezésekor.
00:04:00
A szeletek függvény segítségével lekérheti az útvonalkarakterláncot a pozícióindexből
00:04:04
nullától indextől mínusz egy, amely megfelel az eltávolítandó ferde.
00:04:10
Ha a fájl az áthelyezendő mappák gyökerében található,
00:04:13
a változó üres helyet fog tartalmazni.
00:04:16
Ellenkező esetben tartalmazza annak a mappának az elérési útját, ahová a fájl található.
00:04:21
Kezelje az if feltétel tesztelését, ha a mappaváltozó üres.
00:04:27
Ha igen, add hozzá a SharePoint-műveletet a mappák létrehozásához
00:04:31
létrehozhat SharePoint-webhelyén az archívumkönyvtárban.
00:04:35
A feldolgozott fájlnak megfelelő mappa relatív elérési útja
00:04:41
miután létrehozta vagy nem a mappát, amely még mindig a hurokban van.
00:04:44
Adja hozzá a műveletet a feldolgozott fájl áthelyezéséhez,
00:04:46
hivatkozzon a teljes eredeti elérési útján áthelyezendő fájlra, és állítsa be a
00:04:50
az archívumkönyvtárnak megfelelő célmappa követése
00:04:55
a változóban tárolt útvonal alapján.
00:04:57
Ha egy másik fájl már létezik, válassza ki annak cseréjét,
00:05:01
végül mentse és tesztelje
00:05:05
A két évesnél idősebb fájlok átkerülnek az archívumkönyvtár gyökerébe
00:05:09
almappákban tárolt fájlokhoz. Az eredeti szerkezet újjáépítésre kerül.
00:05:14
Így hozhat létre egy teljes archiválási folyamatot a sharepoint könyvtárak között.

No elements match your search in this video....
Do another search or back to content !

 

Mandarine AI: CE QUI POURRAIT VOUS INTÉRESSER

Reminder

Show