This extension connects to PowerApps CLI and provide wrapper over Portal tasks to download/ upload the source code from PAP environments.
Below tasks are included in this extension
Task Name
Details
Install PowerApps CLI
This task installs CLI required to connect to Dataverse
Extract PowerApps Portal Code
This task uses paportal download command to extract the portal data
Upload PowerApps Portal Code
This task uses paportal upload command to upload the Portal code back in Dataverse
#yml code
- task: DownloadPortalCode@0
inputs:
EnvironmentURL: 'https://****.crm3.dynamics.com/'
ExtractPath: $(System.DefaultWorkingDirectory)\<PortalFolderPath>\ # Path in repository where the source code should be extracted
Websiteid: 'D78574F9-****-****-****-85CF5B7AC141' # Website Id
UseServicePrincipal: true # Indicate whether to use SP or Username/Password
Username: d637a88f-****-****-****-16abc29faac1 # Username or ClientId
Password: ********************** # Password or ClientSecret
CLIPath: $(System.DefaultWorkingDirectory)
TenantId: '189f6623-****-****-****-8c15cc157352' #This is required if using Service Principal
3. Upload PowerApps Portal Code
#yml code
- task: UploadPortalCode@0
displayName: Upload Portal Code
inputs:
EnvironmentURL: 'https://****.crm3.dynamics.com/'
ExtractPath: PAPCUPortal/custom-portal/ # Path where Portal source code is present in repository
Websiteid: 'D78574F9-****-****-****-85CF5B7AC141' # Website ID
UseServicePrincipal: true # Indicate whether to use SP or Username/Password
Username: b0b7b4cd-****-****-****-b41335b12ff3 # Username or ClientId
Password: ********************** # Password or ClientSecret
CLIPath: $(System.DefaultWorkingDirectory)
TenantId: 189f6623-****-****-****-8c15cc157352 #This is required if using Service Principal