MigrateFilesToChildren
What it does
Helps migrate from a Files: Documents field to a related entity, with a Files: Documents field in single-file mode.
Introduced in version 11879.
How to invoke
Make a http request:
.../main?command=com.tsnocode.codeunit.common.MigrateFilesToChildren
Options
Required parameters:
| Name | Description |
| From | Entity migrating files from |
| FromDocument | Field to migrate files from in "From" entity |
| To | Entity to migrate files to |
| ToParent | Field that references "From" entity |
| ToDocument | Field to migrate files to in "To" entity |
Optional parameters:
| DontKeepMetadata | Don't set CreatedAt and CreatedBy based on when and who uploaded the original file |
| TEST | Limit to first 10 records in "From" entity |
All entity and field names are system names.
Developer info
- Type: CodeunitPagecontentPublic
- Security: requires admin
- Classpath: com.tsnocode.codeunit.common.MigrateFilesToChildren