Steps to install APSD in D365 PowerApps platform
Export the solution
Data will not be migrated between environments. This would need to be done separately using Excel files.
Return to the modern Power Apps UI and select the environment you are migrating from.
Click on
Solutions
on the left-hand menu and then click on theAPSD
solution.Click
Publish all customizations
in the top menu bar.Switch to the Overview tab on the side and click
Export
→Next
.Increase version number as applicable, and select Unmanaged, then click on
Export
.
We have to export it as unmanaged due to the custom connectors, which cannot be exported as part of the solution. They need to be recreated in the new environment and then the app must be updated to point to the “new” connectors. Once Microsoft fixes this bug, we can then migrate the connectors as part of the solution and this should allow us to use a managed solution.
Creating custom connectors in new environment
Must be done before importing the solution & only for NEW EMPTY environments.
The custom connectors cannot be created/added to a solution as there is a bug with Power Apps that does not allow them to be shared in this scenario. The workaround provided by Microsoft also does not work.
On the left hand menu, navigate to
Data
→Custom Connectors
Click on
+ New
→Other
→Custom connector
.In the Connector Name field, type “APSR”.
Toggle the
Swagger Editor
to ON, delete all the code and copy/paste the code from the APSR.json file.Toggle the
Swagger Editor
to OFF.Ensure you are in the General tab and then verify that the Host and Base URL point to the correct location for the environment you are in (refer to chart below).
Click
Create connector
.Click on the Test tab, then
+ New connection
.Enter the API Key (RDIMS 17999814) and click
Create connection
.Repeat steps 3-9 to create the SIAPI connector using the SIAPI.json file.
**This API doesn’t require an API Key.Repeat steps 3-10 to create the SPAPI connector using the SPAPI.json file.
Repeat steps 3-10 to create the MTAPI connector using the MTAPI.json file.
Repeat steps 3-10 to create the TMAPI connector using the TMAPI.json file.
For all 5 connectors, share them with the organization.
Click
...
→Invite another user
→Share with org
→Save
.You can also give edit rights to other developers here.
On the left hand menu, navigate to
Data
->Connections
.For each connection, share them with the organization.
Click
...
→Share
→+ Add everyone in my org
→Save
.
Import the solution
Click on
Solutions
on the left-hand menu and thenImport
in the top menu bar.Select
Browse
and point to the zip file,APSD_1_0_0_X.zip
, created in the export solution steps. "X" will be the current iteration number at the time of deployment.Click
Next
twice and create a new connection for both Outlook and Dataverse.For both connectors, select a predefined system account that is a System Administrator. This information needs to be handed over by the Exchange group, in the DEV environment we are using our own accounts.
Click
Import
and wait for the process to finish.Click on
Publish all customizations
.
Update connectors and dropdowns in the Canvas app
Go to edit the Service Request Canvas app.
When prompted, select
Don't Allow
.Remove all connections that are showing as not connected - 5 connections (APSR, MTAPI, SIAPI, SPAPI, TMAPI), Office365Users and APSD_Translations.
Add all of them back.
For APSD_Translation, connect to SharePoint data connector. In the box enter the following URL: https://034gc.sharepoint.com/sites/DSD-CivilAviation/Lists/APSD_Translations/AllItems.aspx
Check off the
APSD_Translations
list & clickConnect
.Run the App Checker and ensure no errors are reported.
Go to the “
New Service Request Step One Screen
" and click on thecboNapaProject
element. Turn on “Allow searching” in the properties.Go to the “
New Service Request Step Three Contact Info Screen
” and click on thecboFindOrganizationAlt
element. Turn on "Allow searching" in the properties.Save and Publish the app.
Importing/Migrating Data
When setting up a new environment, all lookup data must be brought into the environment. This can be done either through creating a dataflow to migrate data between environments or by importing the data from an Excel spreadsheet.
0 Comments