Skip to content

Handy small go app/docker image for export/import solutions from and to ms dataverse (PowerApps). Can run in GitHub Actions for CI/CD dataverse solutions.

License

Notifications You must be signed in to change notification settings

stevesaemmang/dataverse_ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dataverse_ci

tiny CLI tool for exporting/importing dataverse solution files.

Usage

Getting solution information

docker run stevesaemmang/dataverse_ci solutionlist --clientId 00000000-0000-0000-0000-000000000000 --tenantId 00000000-0000-0000-0000-000000000000 --clientSecret abcdefg1234567 --environment https://mypowerapp.crm4.dynamics.com

Set solution version

docker run stevesaemmang/dataverse_ci setsolutionversion --clientId 00000000-0000-0000-0000-000000000000 --tenantId 00000000-0000-0000-0000-000000000000 --clientSecret abcdefg1234567 --environment https://mypowerapp.crm4.dynamics.com --solutionid 00000000-0000-0000-0000-000000000000 --version 2021.04.06.1210

Export unmanaged solution by name

docker run -v `pwd`:/output stevesaemmang/dataverse_ci exportsolution --clientId 00000000-0000-0000-0000-000000000000 --tenantId 00000000-0000-0000-0000-000000000000 --clientSecret abcdefg1234567 --environment https://mypowerapp.crm4.dynamics.com --solutionname MySolution

Export managed solution by name

docker run -v `pwd`:/output stevesaemmang/dataverse_ci exportsolution --clientId 00000000-0000-0000-0000-000000000000 --tenantId 00000000-0000-0000-0000-000000000000 --clientSecret abcdefg1234567 --environment https://mypowerapp.crm4.dynamics.com --solutionname MySolution --managed

Import solution

docker run -v `pwd`:/input stevesaemmang/dataverse_ci importsolution --clientId 00000000-0000-0000-0000-000000000000 --tenantId 00000000-0000-0000-0000-000000000000 --clientSecret abcdefg1234567 --environment https://mypowerapp.crm4.dynamics.com --solutionfile input/Test_managed.zip --overwriteunmanaged --publishworkflows

Use in GitHub Actions

Deploy solution file

jobs:
  deploy_powerapp:
    name: DeployPowerAppSolution

    runs-on: ubuntu-latest    
    steps:
      - uses: actions/checkout@v2
      - name: Deploy solution to dataverse
        uses: docker://stevesaemmang/dataverse_ci:latest
        with:
          entrypoint: /dataverse_ci
          args: importsolution --clientId 00000000-0000-0000-0000-000000000000 --tenantId 00000000-0000-0000-0000-000000000000 --clientSecret abcdefg1234567 --environment https://mypowerapp.crm4.dynamics.com --solutionfile Test_managed.zip --overwriteunmanaged --publishworkflows

About

Handy small go app/docker image for export/import solutions from and to ms dataverse (PowerApps). Can run in GitHub Actions for CI/CD dataverse solutions.

Topics

Resources

License

Stars

Watchers

Forks