Expand |
---|
title | How to switch to classic D365 viewer |
---|
|
Click Solutions → APSD → ... → Switch to classic |
...
Expand |
---|
title | How to create custom connectors [DEV ONLY] |
---|
|
Note |
---|
Only for the DEV environment Custom connectors must be created before importing the APSD & Flows solutions. |
Clone the APSD-PAPS repository to your local computer. On the left hand menu, navigate to Data → Custom Connectors . Click on + New custom connector → Import an OpenAPI file . In the Connector name field, type “NAPA-SNAPA”. Click Import and go to \repos\APSD-PAPS\Custom Connectors\JSON and select the NAPA-SNAPA.json file. Click Continue . Verify that the Host and Base URL point to the correct location for the environment you are in (refer to chart below). For NAPA API only: Set up OAuth security Click Create connector . Click on the Test tab, then + New connection . Enter the API Key (RDIMS 17999814) and click Create connection . Repeat steps 3-10 to create the rest of the connectors using their json files (SIAPI, SPAPI, MTAPI & TMAPI). *Note: SIAPI doesn’t require an API Key. 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 . This must be done so that any changes to the API Key get shared to all users. The update should be instant, if users are not receiving the updated key, they will need to clear their browser’s cache. Give edit access to TC-CivAv Azure group.
|
...
Expand |
---|
title | Creating connections for Do Not Reply APSD / Ne Pas Répondre PAPS |
---|
|
Note |
---|
Perform the steps in this section in a FireFox browser. For some reason, Chrome auto-signs in to your personal account. |
Go to https://myaccount.microsoft.com/, click on your profile icon in the top right corner and select Sign in with a different account . Click + Use another account . Log in to DoNotReplyAPSD-NePasRepondrePAPS@tc.gc.ca (info in RDIMS 17999814). In the same browser, go to Power Apps Studio. Click on Data/Dataverse > Connections in the side menu. Click on + New connection and select Office 365 Outlook. Click Create and select the Do Not Reply APSD account that you signed into in Step 3. Repeat Steps 6-7 for the Office 365 Groups and Excel Online (Business) connections.
You should now have the following connections set up |
Expand |
---|
title | Export the solution from DEV |
---|
|
Info |
---|
The Canvas apps are inside the APSD-PAPS Flows solution. |
Open the Power Apps Studio and select the ap-dev-tcd365 environment. Click on Solutions in the side menu, then click Publish all customizations in the top menu bar. Select the APSD solution. Click Export → Next . Increase the version number as needed (revision # is automatically increased) and ensure Export as Managed is selected, then click on Export . Repeat steps 3-5 with the APSD-PAPS Admin solution. Repeat steps 3-5 with the APSD-PAPS Env Variables, APSD-PAPS Flows and APSD-PAPS Custom Connectors solutions but export them as Unmanaged.
|
Expand |
---|
|
Note |
---|
Solution Import Order Must be followed or will break dependencies APSD-PAPS Env Variables > APSD-PAPS Custom Connectors > APSD > APSD-PAPS Flows > APSD-PAPS Admin |
Info |
---|
Basic steps to import a solution: Click on Solutions on the left-hand menu and then Import in the top menu bar. Select Browse and point to the zip file, e.g. APSD_PAPS_EnvVariables_1_0_0_X.zip , created in the export solution steps.
|
Go to the desired environment. Once the Env Variables solution has been imported Once the Custom Connectors solution has been imported Clone the APSD-PAPS repository to your local computer. Go into the APSD-PAPS Custom Connector solution. **Must be done from within the solution to ensure that the same name is generated (ap_5Fnapa-2Dsnapa).** Click on + New > Automation > Custom connector Enter in the info as follows: Click Create connector . Return to the APSD-PAPS Custom Connector solution and verify the name of the connector is ap_5Fnapa-2Dsnapa. On the left-hand menu, click on Data/Dataverse > Custom connectors. Beside the NAPA-SNAPA connector, click ... > Update from OpenAPI file . Click Import and go to \repos\APSD-PAPS\Custom Connectors\JSON and select the NAPA-SNAPA.json file. Click Continue . Toggle the Swagger Editor ON > OFF. Go to the Security tab and enter in the information as per RDIMS 17999814. Click Update connector . Click on the Test tab, then + New connection . Click X Close . For the rest of the connectors, edit them and go to the Test tab, then click + New connection (API key are in RDIMS 17999814). On the left-hand menu, click on Data/Dataverse > Connections. For the MTAPI, SPAPI & TMAPI connections, share them with the organization.
Import the APSD solution When importing the Flows solution Click Next twice then select the CivAv APSD Service Principal connection for Dataverse and the shared connections for the APIs. For the Office 365 and Excel Online connections, select the Do Not Reply APSD / Ne Pas Répondre PAPS connection created earlier.
Click Import and wait for the process to finish. Click on Publish all customizations . Verify that all the required flows are turned on. If any are off, follow the steps at the end of this section. Share the APSD-PAPS Canvas App with Everyone in TC. Uncheck the box at the bottom “Send an email invitation to new users”. Share the Canvas apps with the other developers individually, checking off the co-owner box. PROD ONLY: Edit the APSD-PAPS Canvas App. Go into the App.OnStart() and edit the MTOA JWT token to the Production one. Assign a security role to yourself in order to test the application. If any of the flows are off:If ‘Modify Users’ flow is off, turn on ‘Remove User’ and ‘Update User’ flows first (if not already on). Select the flow and click Turn on . If there is an error, select the flow and click Edit . If you are brough to a screen asking to confirm the flow connections, ensure all are using the connection references inside the solution then click Continue . Once you are brought to the flow screen, click Save . Steps 6 - 9 are only for certain flows (e.g. those with a manual trigger). Go back to the solution and click on the flow name to view its details. Click on Edit in the Run only users section. Ensure that all the connections are using the generic account connections and NOT “Provided by run only user”. Click Save . Click Turn on . Repeat steps 1-10 for any other flows that are not on.
|
Migrating
...
Changes Between Existing Environments
Infonote |
---|
Data will not be migrated between environments through the solution. You will need to perform data migration separately following the steps below. |
Expand |
---|
title | Export the solution from DEV |
---|
|
Info |
---|
Most deployments will only require the APSD and Flows solutions to be migrated. Custom Connectors solution must only be migrated if there are any changes to the existing custom connectors or a new custom connector is added. Env Variables solution must only be migrated if new environment variables are added.
Version number format: major.minor.build.revision number |
Open the Power Apps Studio and select the ap-dev-tcd365 environment. Select the solution you need to migrate. Click Export → Publish → Next . Increase the version number as needed (revision # is automatically increased). Select corresponding export as type, then click on Export . Managed: APSD, APSD-PAPS Admin, DataVerse-Security Role Unmanaged: APSD-PAPS Flows, APSD-PAPS Custom Connectors, APSD-PAPS Env Variables
Download the exported file. Repeat steps 2-6 for any other solutions required.
|
Expand |
---|
|
Note |
---|
Solution Import Order Must be followed or else will break dependencies APSD-PAPS Env Variables > APSD-PAPS Custom Connectors > APSD > APSD-PAPS Flows > APSD-PAPS Admin Only import the exported solutions from the previous section. |
Go to the desired environment. Click on Solutions on the left-hand menu and then Import in the top menu bar. Select Browse and point to the zip file, e.g. APSD_PAPS_EnvVariables_1_0_0_X.zip , created in the export solution steps. Click Import and wait for the process to finish. Import the rest of the solutions as needed. Click on Publish all customizations . Verify that all the required flows are turned on.
If any of the flows are off: Select the flow and click Turn on . If there is an error, select the flow and click Edit . If you are brough to a screen asking to confirm the flow connections, ensure all are using the connection references inside the solution then click Continue . Once you are brought to the flow screen, click Save . Steps 6 - 9 are only for certain flows (e.g. those with a manual trigger). Go back to the solution and click on the flow name to view its details. Click on Edit in the Run only users section. Ensure that all the connections are using the generic account connections and NOT “Provided by run only user”. Click Save . Click Turn on . Repeat steps 1-10 for any other flows that are not on.
If importing the APSD Custom Connectors solution: Even if there are no edits to make, you must still go in to edit it and click on Update Connector for it to connect properly. |
...
Expand |
---|
title | Importing task data - Export to Excel then import [NOT RECOMMENDED] |
---|
|
Warning |
---|
NOT RECOMMENDED METHOD |
Go to the environment that has the master set of data for the SCRAM tasks. Currently, this is QA. On the left menu, go to Data → Tables , then open the Scram Tasks table. On the top menu, click on Data → Export data . Once the export has been successfully completed, click on Download exported data . Unzip the csv file. Switch to the environment you are deploying to. On the left menu, go to Data → Tables , then open the Scram Tasks table. On the top menu, click on Data → > beside Get data → Get data from Excel . Upload the csv file from step 4. If there are any mapping issues, fix them. Click Import . Wait for the process to complete, then verify that the data was imported.
Follow the same steps using the AP Task table instead. |
Flows
Always use the existing connection references inside the APSD-PAPS Flows solution for each flow. If the connection reference for the connection doesn’t exist, create a new one inside the solution first. The connection reference should be connected to the generic account connections.
...
Expand |
---|
title | Update connectors and dropdowns in the Canvas app - NO LONGER REQUIRED |
---|
|
Warning |
---|
IGNORE THIS SECTION Not necessary anymore now that the custom connectors are inside solutions. |
Edit the APSD-PAPS 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. SharePoint data connector: for APSD_Translation file. 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 & click Connect . Run the App Checker and ensure no errors are reported. Turn on “Allow searching” in the properties for the following elements: New Service Request Step One Screen - cboNapaProject element
New Service Request Step Three Contact Info Screen - cboFindOrganizationAlt element Service Request Review Screen - ddSRRChangeReAssignment element
New Invoice Step One Screen - cboInvoiceCustomer and cboCustomerAddress elements
Weekly Time Entry Normalized Screen - cmbProject
Save and Publish the app.
|
...