pacx script solution - neronotte/Greg.Xrm.Command GitHub Wiki

Generates PACX scripts for all tables in a PowerApps solution.

Usage

This command generates PACX scripts for all tables in one or more PowerApps solutions.

If requested, the generated CSV file will contain only the statecode and statuscode fields for each entity, for documentation purposes.

Example usage:

pacx script solution --solutionNames "Solution1,Solution2" --customPrefixs "custom_" --output "C:/output" --scriptFileName "myscript.ps1" --stateFileName "state-fields.csv" --includeStateFields

Arguments

Long Name Short Name Required? Description Default value Valid values
solutionNames sn Y Comma-separated list of PowerApps solution names. - String
customPrefixes cp Y Comma-separated custom prefixes for entities and fields. - String
output o N Output directory for generated files. - String
scriptFileName script N Name for the generated PACX script file. pacx_datamodel_script.ps1 String
stateFileName state N Name of the CSV file that will contain the state fields. state-fields.csv String
includeStateFields i N If true, exports the statecode and statuscode fields as CSV. False true, false