Skip to content

Commit c2b9a8f

Browse files
committedJul 4, 2024
v1.1.0.1
1 parent b033cd8 commit c2b9a8f

File tree

27 files changed

+1481
-187
lines changed

27 files changed

+1481
-187
lines changed
 

‎MigrateCanvasApps/CanvasApps/powciti_migratecanvasapps_9e789.meta.xml

+7-7
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"__Version":"0.1","App":"00f9c874-ce86-41df-a34f-e6eba071e15b","Test_7F478737223C4B69":"1766971d-f467-48a9-afba-d002e7493f94","Host":"697e99f5-80c3-411b-98fe-126a9061142f","CanvasApps":"a9343691-688d-45c6-8a51-d167d1c1e9b3","ScreenContainer1_1":"46d1754a-0a30-4cd2-8a59-383cc3802889","HeaderContainer1_1":"4a37ba88-3fa4-4830-afc5-6ab44440803a","lblTitle_1":"bb55b0be-ae67-4b17-b082-3fd93ed549bb","BottomContainer1_1":"32892f54-7665-42b3-9a6c-1e32ae860077","Permissions":"d7b9fa94-6b06-48fa-90da-65edd8c18486","lblShareApp":"480d7a1d-7a21-4096-88b9-7a4158718555","cntMigratedApp":"4071e96f-69d3-4f9b-a002-a839fcf1ccbd","Container10":"b5eca028-cd46-4800-9a97-cd5bbb6c5f45","lblInstructionsStep1_2":"7d86c65d-ffba-4c75-91bd-b0a3dd0971cc","Label12":"d5606f72-6332-4874-bdf0-cb429ad8e343","icoRefreshApps":"232f9570-489b-459d-b39e-3ca8cb2f0c20","ddlTargetEnvApps":"7485644c-76c5-46f4-9838-bbaeec05425e","DisplayName2_4":"b15e7b22-b7ef-4513-af57-9ee4aef7a0fc","cntShareApp":"2cc70044-1122-4897-ae4e-2ae7e7647b79","lblAppPermissions":"adddddf5-3cdb-4a40-bf23-c6e0cbb37097","Label9":"162e4ff2-f43d-4a5e-9f58-5f372d3af4f1","galPermissions":"32360439-dba9-407e-8f85-446112009c6e","galleryTemplate1":"e59e7a20-749b-4428-b0d6-93e86d7bacaf","Title3":"4db2eb1a-cd99-423b-88f8-c6373e94ee0e","icoDelete":"6522a636-9231-4a85-9ebf-2e847c09f0ad","icoSuccess":"5d564ba6-8788-42c4-9433-2aa0e575abb9","Subtitle2":"64d0f786-b2d4-41b1-ac31-91076213b950","Separator3":"d64a2955-efbe-48f3-8d45-65ae5c62cc8d","ButtonCanvas1":"28c3ae52-5f3f-4a88-99a3-0017dbda4009","Label1":"a159234d-b2a1-419b-b2de-45cb74c34db7","Container1_1":"dda429c2-9284-4de3-a77f-f0fe97633a25","btnCancel":"feebba51-2650-40a7-9c25-3bf6ac401b90","btnNextStep2":"12fe66ce-a9ce-4cf8-8e30-059315be8780","OldAppSettings":"eaf6bdfc-eff7-4abc-82bf-4bab780d0688","lblOldAppSettings":"33f2f948-8504-4e21-8d40-27932f15bf0d","Label14_1":"dd48c97f-a47f-4803-bd85-c6ebac9eb316","cntMigratedApp_2":"026c3a3c-49e3-4f11-b768-abc003188f97","btnRenameOldApp":"a4eef3d4-4924-4d1c-97ce-7fae92f3e646","lblRenameOldApp":"e9e70b2c-3909-44f1-9bad-13cf4125c48d","btnRemovePermissions":"fc95aedf-769e-4c17-b49e-7ab03f55ed08","lblRemovePermissions":"3c41fd98-5b82-4f9b-9f7d-78f709d12847","btnRemoveOldVersion":"cc50ef8e-9ef4-47d1-bced-f721db7cc163","lblRemoveOldVersion":"6ea2aead-233b-4b0f-b024-be8481bf3a5c","Container1_3":"09753a80-dba0-40d1-ac19-1f52895424ed","btnCancel2":"20e6146f-e80a-454b-bddc-53a4a9d5a3d1","btnNextStep3":"802f4b5b-e597-49b5-a073-cb6edad1cfd3","btnBackHome":"a8e5eab2-857f-4c92-ab19-e8f1afb1a440","NotifyAppUsers":"1b51ffbf-83c1-4e86-a5de-902e05ac0123","lblNotifyAppUsers":"29870ae3-94b3-4233-821f-23a68d08c55f","Label14":"f9f56cf3-b75e-4d78-9aa6-a474201c5492","cntMigratedApp_1":"ef076419-eb81-4a94-8455-514f08cdc308","Label11":"b9851bea-6bea-4cbb-b2e2-61f63d71c9aa","txtRecipients":"9b291983-db5f-4ded-8f37-d8bbe00f441b","lblSubject":"59a183fd-a602-45b0-ae03-c28a4762dfb7","txtSubject":"821a0235-ad5d-4a06-a83b-b50faef9575b","lblInstructionsStep1_3":"bacadd33-cd81-4506-9af8-73bee48b071e","txtBody":"820b4849-4dc6-4fc5-953a-0b5a18759abb","Container1_2":"2e89d632-f3fd-4fce-8caa-bccef55b1ce4","btnBackHome2":"e002f038-9332-4f98-a29b-bc95f062913a","btnPreviousStep":"1b3d0de5-467d-4ffa-87ce-d0b47e95d692","btnSendEmail":"1cde093d-23b5-4ca3-bafe-4d81e1e6ee83","MigrateApp":"4f3fe53d-1dce-42f9-96f6-788e20805abf","Label4_3":"50ee9efe-46e7-4fd0-abc7-66e76976d5ae","Migrate":"68365f48-cc9b-48a6-bc45-354e9863dc82","lblInstructionsStep1":"a3c6e473-e19a-4456-afcd-2d60c46d16eb","cntSourceEnvironment":"6cc05210-2c79-4c6f-8214-56d6327efc11","lblSourceEnvironment":"233c70c4-5e50-480f-aa08-ac60410680dd","ddlSourceEnvs":"591b117c-9181-4c1a-8a2d-f8ca2fa01eec","DisplayName2_2":"f63a6bf3-6246-4cc8-8af0-b333304e554d","cntSourceApp":"585735cd-d40c-40b2-97cf-515949f23cbe","lblSourceApps":"eb50a6b2-8753-44be-bee6-9ff032db7635","ddlSourceApps":"cade7c60-f019-4b52-a82d-c5187b37b1fd","DisplayName1":"4e29fc00-b607-42dc-92d2-6ab55a2916b9","cntTargetEnvironment":"ce541bbe-dd77-4e8b-9864-10c121250bd7","lblTargetEnvironment":"820dda0f-84f1-45a1-b9e0-2f6d823571d4","ddlTargetEnv":"6b498739-b5a4-4680-956b-3381087dd543","DisplayName2_5":"2b9aa999-d3f6-4965-9cfc-77db86180470","cntPackageResources":"519320f9-2463-48b7-9799-92f878a6d714","Container1":"a950bc8d-d664-4998-8bab-ffee94852ec9","lblRelatedResources":"0f96a096-0ded-40d8-a8bd-4c044604a26b","lblRefresh":"5d8d9eee-f7d2-4f3a-a170-6181c0b17e7b","iRefresh":"91c9e135-2b8a-49e4-a4fc-60ee91944595","lblCreateAll":"d9fcd2b7-51c5-4f34-9cbf-08b08855122b","iCreateConnections":"adaa1c19-0ead-4ba2-8cdf-a2d3959502a8","galPackageResources":"912cfa9b-9d42-4bf7-8d42-6702a09e88aa","galleryTemplate2":"c50f4a22-25b8-4710-99b2-6f5407b35295","lblName":"3fb8bc29-eecd-40e1-bd29-866974fce7fe","lblFlowConnectionType":"b15d6b37-13cf-4132-adcb-092376d3808c","ddlConnections":"973ef5de-e887-4cc4-9190-10ff5b7e926a","icoCreateConnection":"28e66a5d-2128-4993-84a7-77915bc2dd4c","lblResourceTitle":"d6e9ce14-8ff8-4ec9-966d-ac8c707050d9","Container2":"af68a1e2-3322-4888-b7a5-c9f3d1337535","btnNextStep":"1d21c3cd-b1ab-4443-a6b7-90be701a2fe2","lblMigrationStatus":"0a5e2297-5759-424f-80a5-caa713faa0d8","btnMigrate":"e51b2790-896c-48f8-b6e9-411c5004a44f","Dialog":"f100f7e2-052f-4916-83dc-c226b6fd6f63","DialogControls":"74e7b81b-294d-43ab-9268-8d6553ce86a4","Spinner1":"fa730c5f-f9f3-4cc7-bdfd-ebbe77818405","lblMigrationLog":"04be8440-a835-4ed5-bb55-e63ee2e79019","BlankLoader":"22de70d8-3aa5-4d20-bc3e-e8bf4f64d455"}
1+
{"__Version":"0.1","App":"00f9c874-ce86-41df-a34f-e6eba071e15b","Test_7F478737223C4B69":"1766971d-f467-48a9-afba-d002e7493f94","Host":"697e99f5-80c3-411b-98fe-126a9061142f","CanvasAppMigration":"a9343691-688d-45c6-8a51-d167d1c1e9b3","ScreenContainer1_1":"46d1754a-0a30-4cd2-8a59-383cc3802889","HeaderContainer1_1":"4a37ba88-3fa4-4830-afc5-6ab44440803a","lblTitle_1":"bb55b0be-ae67-4b17-b082-3fd93ed549bb","BottomContainer1_1":"32892f54-7665-42b3-9a6c-1e32ae860077","MigrateApp":"4f3fe53d-1dce-42f9-96f6-788e20805abf","Label4_3":"50ee9efe-46e7-4fd0-abc7-66e76976d5ae","Migrate":"68365f48-cc9b-48a6-bc45-354e9863dc82","lblInstructionsStep1":"a3c6e473-e19a-4456-afcd-2d60c46d16eb","cntSourceEnvironment":"6cc05210-2c79-4c6f-8214-56d6327efc11","lblSourceEnvironment":"233c70c4-5e50-480f-aa08-ac60410680dd","ddlSourceEnvs":"591b117c-9181-4c1a-8a2d-f8ca2fa01eec","DisplayName2_2":"f63a6bf3-6246-4cc8-8af0-b333304e554d","cntSourceApp":"585735cd-d40c-40b2-97cf-515949f23cbe","lblSourceApps":"eb50a6b2-8753-44be-bee6-9ff032db7635","ddlSourceApps":"cade7c60-f019-4b52-a82d-c5187b37b1fd","DisplayName1":"4e29fc00-b607-42dc-92d2-6ab55a2916b9","cntAppSKU":"84beca41-9f71-4559-8b88-17634ab4c258","lblLicenseDesignation":"1b9cbed6-405b-4ce7-99c4-0e7ba09675a5","lblLicenseDesignationValue":"cf52eed0-c7ca-43a3-b9b4-90a67acfa3dc","cntTargetEnvironment":"ce541bbe-dd77-4e8b-9864-10c121250bd7","lblTargetEnvironment":"820dda0f-84f1-45a1-b9e0-2f6d823571d4","ddlTargetEnv":"6b498739-b5a4-4680-956b-3381087dd543","DisplayNameWithSKU1":"71ce833f-faed-4ca6-bb27-6cdcda709adf","cntPackageResources":"519320f9-2463-48b7-9799-92f878a6d714","Container1":"a950bc8d-d664-4998-8bab-ffee94852ec9","lblCreateAll":"d9fcd2b7-51c5-4f34-9cbf-08b08855122b","iCreateConnections":"adaa1c19-0ead-4ba2-8cdf-a2d3959502a8","lblRelatedResources":"0f96a096-0ded-40d8-a8bd-4c044604a26b","iRefresh":"91c9e135-2b8a-49e4-a4fc-60ee91944595","lblRefresh":"5d8d9eee-f7d2-4f3a-a170-6181c0b17e7b","galPackageResources":"912cfa9b-9d42-4bf7-8d42-6702a09e88aa","galleryTemplate2":"c50f4a22-25b8-4710-99b2-6f5407b35295","lblName":"3fb8bc29-eecd-40e1-bd29-866974fce7fe","lblFlowConnectionType":"b15d6b37-13cf-4132-adcb-092376d3808c","ddlConnections":"973ef5de-e887-4cc4-9190-10ff5b7e926a","icoCreateConnection":"28e66a5d-2128-4993-84a7-77915bc2dd4c","lblResourceTitle":"d6e9ce14-8ff8-4ec9-966d-ac8c707050d9","Container2":"af68a1e2-3322-4888-b7a5-c9f3d1337535","lblMigrationStatus":"0a5e2297-5759-424f-80a5-caa713faa0d8","btnBackToHome":"7f9ada7d-46c3-4336-9f35-0c712889401a","btnMigrate":"e51b2790-896c-48f8-b6e9-411c5004a44f","btnNextStep":"1d21c3cd-b1ab-4443-a6b7-90be701a2fe2","Permissions":"cd8055f7-87c9-4316-a0b4-d6167625e797","Container9":"45b0a5fc-b368-447c-b15f-4b041e04de8c","lblShareApp_1":"69155fb8-cb0c-4907-9316-9135bdb797e5","Label12_1":"27100ffc-d8ca-4419-8295-beff34acd21d","icoRefreshApps_1":"67083c5c-114d-485b-9f8b-362c5d405288","cntShareApp_1":"19b708e5-420c-4c79-92b7-9dd6c1363c77","Label1_1":"569d964a-9577-4138-9dbf-9c20b38ecaa5","Container7":"4099cf84-5b3e-401b-8d18-8a88f82d9b1d","Label9_1":"faa1983e-5010-4ef6-8703-7305512f8693","galPermissions_1":"5dca5d6a-4ee1-4341-844d-32699fa64e88","f37edecb-dc92-4f5a-b9db-004acf994477":"65dd1ee1-2482-4161-949b-795108ea00c5","Title3_3":"48960d28-c44d-42f2-8ec2-e470d1dc2e09","icoDelete_1":"f1ece93a-2fe8-41db-a632-6c51be93c55a","icoSuccess_1":"80bb478a-6bd1-4e88-b980-e73d0dd7c178","Subtitle2_3":"988bbdd4-02fd-48c3-8ec3-2cbb863e8e41","Separator3_3":"c0b6294d-5998-4787-8ac7-7e843051ef78","Container3":"575cee3e-a9f9-4042-b9d5-d0a1c58f4402","Label3":"c0431088-2351-4ebd-b073-c3bb505f8a24","cbNotifyUsers":"8281a3a9-d806-41d9-96f5-aaab666f08ee","btnShareApp":"8cd1691c-ecf1-45c9-ba53-f009a2c09bb1","Container1_5":"43e864a8-7f26-4b0c-ac95-530ba68693a9","Label4":"10ebc2fa-80d3-4ba8-a164-a4de967ffbdb","btnCancel_2":"99da69e0-cfe2-4b39-8c07-0309ed1ebd07","btnNextStep2_2":"ce06d63c-6d15-428e-a932-dc33cc55696c","AdditionalActions":"bf4da0b0-9279-44ea-9cee-f60511feca99","Label14_2":"8a291c96-8129-4ed2-ada7-b4121f152186","Actions":"7899390f-4e56-4c4f-8334-25b0f2f6c478","btnRemoveOldVersion_1":"9a0e918c-7096-4ba2-ba74-30feb84b1060","btnRenameOldApp_1":"69f88899-5b1d-49f2-bb38-d08c5263e8dd","btnRemovePermissions_1":"4fc4ce88-f8a2-4e65-80f0-f1b33bad465f","EmailNotification":"152113f8-f365-4fa2-9d37-22c17b44921b","Container8":"f90cfb5b-0db0-4aee-a5a1-eb6ca1c970cc","Label14_3":"7f66f4bd-6186-4f72-97b5-acfecbb00b8b","Label11_1":"b1df8cf8-3cb7-4c8d-af76-28928d6efaa6","txtRecipients":"f4e0c844-f034-4923-98f3-ce45a392c5b0","lblSubject_1":"559307d8-69a4-413c-b8ce-c4cee9fd4c22","txtSubject":"82c6bce7-7b07-49e9-94c7-548a4b215698","lblInstructionsStep1_4":"5e6d9ec7-4fa3-4c7d-b836-30bb955f8b89","txtBody":"35609057-e1d4-4b99-836e-7192809e886a","Container1_6":"a164680d-4638-4c18-a7d5-08b445663030","btnBackHome_1":"306cfe65-9759-4a64-afb7-2e739bd01a6c","lblMessage":"9a306d6c-ee71-4d22-bba5-6d35d00cd9b7","btnCancel2_1":"b0ae729a-f27c-4608-a65f-7960673e4ada","btnSendEmail_1":"26b83628-59b3-4051-a82e-01b5d9f031a8","Dialog":"f100f7e2-052f-4916-83dc-c226b6fd6f63","DialogControls":"74e7b81b-294d-43ab-9268-8d6553ce86a4","Spinner1":"fa730c5f-f9f3-4cc7-bdfd-ebbe77818405","lblMigrationLog":"04be8440-a835-4ed5-bb55-e63ee2e79019","BlankLoader":"22de70d8-3aa5-4d20-bc3e-e8bf4f64d455","DialogAppHasFlows":"3e5c0350-0c37-4ffb-a104-4a3776916d12","DialogControls_2":"f265299d-ba05-46d0-9b26-edacacaa0861","lblAppHasFlows":"5b2e3a39-c1cf-4880-94f5-6dd03d32363e","btnOK":"532786d1-e57d-4393-8d9e-da129d62e061","Home":"5e947743-6ad6-49b6-9845-47319618bd99","ScreenContainer1":"2c2bfd09-709f-4f89-b356-dea24700c29e","HeaderContainer1":"370751cf-2422-4a10-a06b-cd9bd45debab","lblAppTitle_1":"86b78685-4455-4a61-adf3-c137d80adb8e","MainContainer1":"bc3517f7-91fa-4a81-941f-d198133c81c4","Container5":"8f5e8bff-2ebd-4bda-8d86-a044d386b4b7","TextCanvas1":"42492af0-a067-4299-af8b-2470f479fce5","ButtonCanvas1_1":"a9bad8e0-9f1d-4ffb-bbfb-ffb468ab4c45","Container6":"0ba3a3be-718c-4e68-ae6d-fe735560b8a9","TextCanvas1_1":"6a38f909-9e00-426d-9aa5-43c9e7bf9aaf","ButtonCanvas1_2":"04427ca1-3dae-472e-868b-5a06037581b1","PermissionMigration":"746d29c3-1fbc-4215-9bda-43f53ea0dd7a","ScreenContainer1_2":"ef05bae2-945c-4923-a027-4c3142fe097c","HeaderContainer1_2":"106038be-3f30-4bce-b4bb-b29ee923e5de","lblAppTitle_2":"146d5a3f-624c-4372-b355-2b0160f4acc4","BottomContainer1_2":"2d431221-38b1-440e-b28c-c5313dd46627","MigratePermissions":"89462cec-a48a-4691-8b9b-07073f2fcb49","TextCanvas4":"30bad933-d364-4620-89da-0df16eb8044f","Migrate_1":"ffffe58f-4339-4b36-8a95-42ef546fb411","cntSourceApp2":"f9fcc25a-796e-406b-b84a-40e47cb2bb02","lblSourceEnv":"b824d797-1500-41cd-84b8-a6e4a5c1515a","ddlSourceEnvPerms":"a34738d3-1380-4569-be2a-5c0474db4a8d","DisplayNameWithSKU2":"9b5e299a-389a-4123-9357-df90a27d28f5","lblSourceApp":"5572300f-4481-4aa6-92e9-eb76a3380c8c","ddlSourceAppPerms":"65398f34-992f-40ce-88d6-52214801be5f","DisplayName1_1":"b5be99be-a2a7-468d-8321-870cce337133","cntTargetApp2":"8e78de3d-b6af-4fcc-bce5-14883fbefc8c","lblTargetEnv":"4f82a975-b488-41bf-9248-4903537fb320","ddlTargetEnvPerms":"d7252123-31db-402c-b099-d20492541a49","DisplayNameWithSKU1_1":"ef8b1cdf-02d3-4811-84ee-c4ac37ef7db1","lblTargetApp":"c586c17d-df95-459b-9037-4a5c27665638","ddlTargetAppPerms":"0f564729-4e69-4ec2-98c2-e80deedc5f64","DisplayName1_2":"b0a7cbd5-b837-48b8-b523-31fafde6cb1a","cntSourceTargetAppPerms":"273193b9-4f45-4625-9df0-43b36b5aa7eb","cntSourceAppPerms":"e5d34b84-e2e6-4b70-b6f6-da4964514aa6","lblSourceAppPermissions":"5005cfdc-3394-48d8-8e0a-eff9eb726853","galSourceAppPermissions":"48755d5b-b12f-40bf-87d0-6544c741f01e","fb67abf9-8e6c-4f7e-aaea-6217d96de12d":"f7d32a75-4144-4409-ba9f-4a530d91565f","Title3_1":"30f97302-632b-4958-8cb9-b005436cc461","Subtitle2_1":"6aff5e8b-d041-4a11-a45a-713fad3a1794","Separator3_1":"44677d0f-8e05-4cfe-9b7e-5db9152596c8","cntTargetAppPerms":"211d91fb-2bea-4c7a-b3f5-62114709d363","lblTargetAppPerms":"1fb4686e-4b27-42c4-a62c-c638e1baf66e","galTargetAppPerms":"4696490b-849c-46b2-8df5-609a2ce703ee","64a0bb1d-ead5-4d09-b45b-698d845a30cf":"2ce83b0d-0311-416d-a493-9bb10efcbf87","Title3_2":"63643e37-97a2-47dc-a3aa-452fda6b0cd7","Subtitle2_2":"1663f9e5-a980-47ed-9690-0fad0160b233","Separator3_2":"2d7acecc-5274-4e5e-999e-3140da2a7bdf","Container10_1":"a920d9ec-b86b-419e-acf0-36da58030253","cbNotifyUsers2":"f56a0cee-6589-4931-a90e-f13c5997fd53","Container1_4":"bda26822-fe63-4548-a503-41f02bb1adb5","Label4_1":"b3361a59-fe5e-4af9-a939-da8cd2d7fa54","btnCancel_1":"fb0b1d94-9a00-43b9-b7fd-28c77f3da75c","btnNextStep2_1":"18b6ec78-efe0-41e4-acaa-e774f4a0db5b","BlankLoader_1":"eb46fcda-254a-42c7-8e6f-f658bca706cf"}
Binary file not shown.

‎MigrateCanvasApps/Other/Customizations.xml

+8-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@
2323
<statecode>0</statecode>
2424
<statuscode>1</statuscode>
2525
</connectionreference>
26+
<connectionreference connectionreferencelogicalname="powciti_MigrateCanvasAppsOffice365Groups">
27+
<connectionreferencedisplayname>MigrateCanvasApps-Office365Groups</connectionreferencedisplayname>
28+
<connectorid>/providers/Microsoft.PowerApps/apis/shared_office365groups</connectorid>
29+
<iscustomizable>1</iscustomizable>
30+
<statecode>0</statecode>
31+
<statuscode>1</statuscode>
32+
</connectionreference>
2633
<connectionreference connectionreferencelogicalname="powciti_Office365Users">
27-
<connectionreferencedisplayname>Office365Users</connectionreferencedisplayname>
34+
<connectionreferencedisplayname>MigrateCanvasApps-Office365Users</connectionreferencedisplayname>
2835
<connectorid>/providers/Microsoft.PowerApps/apis/shared_office365users</connectorid>
2936
<iscustomizable>1</iscustomizable>
3037
<statecode>0</statecode>

‎MigrateCanvasApps/Other/Solution.xml

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<ImportExportXml version="9.2.24043.228" SolutionPackageVersion="9.2" languagecode="1033" generatedBy="CrmLive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2+
<ImportExportXml version="9.2.24061.198" SolutionPackageVersion="9.2" languagecode="1033" generatedBy="CrmLive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
33
<SolutionManifest>
44
<UniqueName>MigrateCanvasApps</UniqueName>
55
<LocalizedNames>
66
<LocalizedName description="Migrate Canvas Apps" languagecode="1033" />
77
</LocalizedNames>
88
<Descriptions />
9-
<Version>1.0.0.0</Version>
9+
<Version>1.1.0.1</Version>
1010
<Managed>0</Managed>
1111
<Publisher>
1212
<UniqueName>PowerCitizens</UniqueName>
@@ -86,13 +86,23 @@
8686
<RootComponent type="29" id="{4cc1cc3e-f5e6-ee11-904c-000d3a4adf70}" behavior="0" />
8787
<RootComponent type="29" id="{61d61172-55e1-ee11-904c-000d3a4adf70}" behavior="0" />
8888
<RootComponent type="29" id="{87d577a2-dee6-ee11-904c-000d3a4adf70}" behavior="0" />
89+
<RootComponent type="29" id="{8b5ba6cf-ef32-ef11-8409-000d3abea4c6}" behavior="0" />
8990
<RootComponent type="29" id="{b1b1237f-c4b9-ee11-a569-000d3a4c1cce}" behavior="0" />
9091
<RootComponent type="29" id="{b6224efc-6cd1-ee11-9079-000d3a4c1cce}" behavior="0" />
9192
<RootComponent type="29" id="{d5bd811f-7be7-ee11-904c-000d3a4adf70}" behavior="0" />
9293
<RootComponent type="29" id="{f1fa3b0b-1cb9-ee11-a569-000d3a4c1cce}" behavior="0" />
94+
<RootComponent type="29" id="{f8bbb170-f832-ef11-8409-000d3abea4c6}" behavior="0" />
9395
<RootComponent type="300" schemaName="powciti_migratecanvasapps_9e789" behavior="0" />
9496
</RootComponents>
9597
<MissingDependencies>
98+
<MissingDependency>
99+
<Required type="1" schemaName="environmentvariabledefinition" displayName="Environment Variable Definition" solution="EnvironmentVariables (1.0.2406.4)" />
100+
<Dependent type="300" schemaName="powciti_migratecanvasapps_9e789" displayName="Migrate Canvas Apps" />
101+
</MissingDependency>
102+
<MissingDependency>
103+
<Required type="1" schemaName="environmentvariablevalue" displayName="Environment Variable Value" solution="EnvironmentVariables (1.0.2406.4)" />
104+
<Dependent type="300" schemaName="powciti_migratecanvasapps_9e789" displayName="Migrate Canvas Apps" />
105+
</MissingDependency>
96106
<MissingDependency>
97107
<Required type="372" schemaName="powciti_migrate-20canvas-20apps" displayName="Migrate Canvas Apps" solution="Active" id="{0ddf224c-ca32-4d8a-8fb9-048a37bc3407}" />
98108
<Dependent type="29" displayName="GetPackageResources" id="{26762c41-cfe1-ee11-904c-000d3a4adf70}" />

‎MigrateCanvasApps/Roles/Canvas Apps Migration Users.xml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<RolePrivilege name="prvReadSdkMessageProcessingStepImage" level="Global" />
1313
<RolePrivilege name="prvReadSharePointData" level="Global" />
1414
<RolePrivilege name="prvReadSharePointDocument" level="Global" />
15+
<RolePrivilege name="prvReadWorkflow" level="Global" />
1516
<RolePrivilege name="prvWritepowciti_MigrationJob" level="Basic" />
1617
<RolePrivilege name="prvWriteSharePointData" level="Global" />
1718
</RolePrivileges>

‎MigrateCanvasApps/Workflows/GetAppPermissions-075D7D80-28B9-EE11-A569-000D3A4C1CCE.json

+204-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@
99
"api": {
1010
"name": "shared_powerappsforappmakers"
1111
}
12+
},
13+
"shared_office365users_1": {
14+
"runtimeSource": "invoker",
15+
"connection": {
16+
"connectionReferenceLogicalName": "powciti_Office365Users"
17+
},
18+
"api": {
19+
"name": "shared_office365users"
20+
}
21+
},
22+
"shared_office365groups_1": {
23+
"runtimeSource": "invoker",
24+
"connection": {
25+
"connectionReferenceLogicalName": "powciti_MigrateCanvasAppsOffice365Groups"
26+
},
27+
"api": {
28+
"name": "shared_office365groups"
29+
}
1230
}
1331
},
1432
"definition": {
@@ -52,7 +70,11 @@
5270
},
5371
"actions": {
5472
"Get_App_Role_Assignments": {
55-
"runAfter": {},
73+
"runAfter": {
74+
"AppPermissions": [
75+
"Succeeded"
76+
]
77+
},
5678
"metadata": {
5779
"operationMetadataId": "42aa6bbb-a6d3-4aea-9cbe-d5e6e2a8cd8b"
5880
},
@@ -73,7 +95,7 @@
7395
},
7496
"SelectNeededProperties": {
7597
"runAfter": {
76-
"Get_App_Role_Assignments": [
98+
"LoopPermissions": [
7799
"Succeeded"
78100
]
79101
},
@@ -106,7 +128,7 @@
106128
"inputs": {
107129
"statusCode": 200,
108130
"body": {
109-
"permissions": "@{body('SelectNeededProperties')}"
131+
"permissions": "@{variables('AppPermissions')}"
110132
},
111133
"schema": {
112134
"type": "object",
@@ -119,6 +141,185 @@
119141
}
120142
}
121143
}
144+
},
145+
"LoopPermissions": {
146+
"foreach": "@outputs('Get_App_Role_Assignments')?['body/value']",
147+
"actions": {
148+
"Switch": {
149+
"runAfter": {},
150+
"cases": {
151+
"User": {
152+
"case": "User",
153+
"actions": {
154+
"GetUser": {
155+
"runAfter": {},
156+
"metadata": {
157+
"operationMetadataId": "66b80d09-b666-4999-8ba7-311850598a15"
158+
},
159+
"type": "OpenApiConnection",
160+
"inputs": {
161+
"host": {
162+
"connectionName": "shared_office365users_1",
163+
"operationId": "UserProfile_V2",
164+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365users"
165+
},
166+
"parameters": {
167+
"id": "@items('LoopPermissions')?['properties/principal/id']"
168+
},
169+
"authentication": "@parameters('$authentication')"
170+
}
171+
},
172+
"USER_NOT_FOUND": {
173+
"runAfter": {
174+
"GetUser": [
175+
"Failed"
176+
]
177+
},
178+
"metadata": {
179+
"operationMetadataId": "4899dfd0-5523-4ce3-9fd1-2dfb9d444269"
180+
},
181+
"type": "Compose",
182+
"inputs": "USER NOT FOUND"
183+
},
184+
"Append_to_array_variable": {
185+
"runAfter": {
186+
"USER_NOT_FOUND": [
187+
"Skipped"
188+
]
189+
},
190+
"metadata": {
191+
"operationMetadataId": "11658b42-ee96-418e-a001-0ec353a90bbf"
192+
},
193+
"type": "AppendToArrayVariable",
194+
"inputs": {
195+
"name": "AppPermissions",
196+
"value": {
197+
"Account": "@items('LoopPermissions')?['properties/principal/displayName']",
198+
"Type": "@items('LoopPermissions')?['properties/principal/type']",
199+
"Email": "@items('LoopPermissions')?['properties/principal/email']",
200+
"Role": "@items('LoopPermissions')?['properties/roleName']",
201+
"ObjectID": "@items('LoopPermissions')?['properties/principal/id']"
202+
}
203+
}
204+
}
205+
}
206+
},
207+
"Group": {
208+
"case": "Group",
209+
"actions": {
210+
"GetGroup": {
211+
"runAfter": {},
212+
"metadata": {
213+
"operationMetadataId": "7704b50d-9c97-45c9-b9dd-b7543571b583"
214+
},
215+
"type": "OpenApiConnection",
216+
"inputs": {
217+
"host": {
218+
"connectionName": "shared_office365groups_1",
219+
"operationId": "HttpRequestV2",
220+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365groups"
221+
},
222+
"parameters": {
223+
"Uri": "https://graph.microsoft.com/v1.0/groups/@{items('LoopPermissions')?['properties/principal/id']}",
224+
"Method": "GET",
225+
"ContentType": "application/json"
226+
},
227+
"authentication": "@parameters('$authentication')"
228+
}
229+
},
230+
"GROUP_NOT_FOUND": {
231+
"runAfter": {
232+
"GetGroup": [
233+
"Failed"
234+
]
235+
},
236+
"metadata": {
237+
"operationMetadataId": "ae45ec05-1831-4c99-9a82-56df5d35203b"
238+
},
239+
"type": "Compose",
240+
"inputs": "GROUP NOT FOUND"
241+
},
242+
"Append_to_array_variable_2": {
243+
"runAfter": {
244+
"GROUP_NOT_FOUND": [
245+
"Skipped"
246+
]
247+
},
248+
"metadata": {
249+
"operationMetadataId": "c3c03dc2-954c-43a7-8801-ae6d62da642c"
250+
},
251+
"type": "AppendToArrayVariable",
252+
"inputs": {
253+
"name": "AppPermissions",
254+
"value": {
255+
"Account": "@items('LoopPermissions')?['properties/principal/displayName']",
256+
"Type": "@items('LoopPermissions')?['properties/principal/type']",
257+
"Email": "@items('LoopPermissions')?['properties/principal/email']",
258+
"Role": "@items('LoopPermissions')?['properties/roleName']",
259+
"ObjectID": "@items('LoopPermissions')?['properties/principal/id']"
260+
}
261+
}
262+
}
263+
}
264+
},
265+
"Tenant": {
266+
"case": "Tenant",
267+
"actions": {
268+
"Append_to_array_variable_3": {
269+
"runAfter": {},
270+
"metadata": {
271+
"operationMetadataId": "cfa25003-eb57-4e30-9ebb-60665bb4df9c"
272+
},
273+
"type": "AppendToArrayVariable",
274+
"inputs": {
275+
"name": "AppPermissions",
276+
"value": {
277+
"Account": "@items('LoopPermissions')?['properties/principal/displayName']",
278+
"Type": "@items('LoopPermissions')?['properties/principal/type']",
279+
"Email": "",
280+
"Role": "@items('LoopPermissions')?['properties/roleName']",
281+
"ObjectID": "@items('LoopPermissions')?['properties/principal/tenantId']"
282+
}
283+
}
284+
}
285+
}
286+
}
287+
},
288+
"default": {
289+
"actions": {}
290+
},
291+
"expression": "@items('LoopPermissions')?['properties/principal/type']",
292+
"metadata": {
293+
"operationMetadataId": "6d166e22-4018-49e1-9779-788e49bb2c28"
294+
},
295+
"type": "Switch"
296+
}
297+
},
298+
"runAfter": {
299+
"Get_App_Role_Assignments": [
300+
"Succeeded"
301+
]
302+
},
303+
"metadata": {
304+
"operationMetadataId": "7e219971-19fe-43f6-99cb-c7708beea0b4"
305+
},
306+
"type": "Foreach"
307+
},
308+
"AppPermissions": {
309+
"runAfter": {},
310+
"metadata": {
311+
"operationMetadataId": "bcc35e32-0b6f-4d54-9cc2-28e9edf13929"
312+
},
313+
"type": "InitializeVariable",
314+
"inputs": {
315+
"variables": [
316+
{
317+
"name": "AppPermissions",
318+
"type": "array",
319+
"value": []
320+
}
321+
]
322+
}
122323
}
123324
}
124325
},

‎MigrateCanvasApps/Workflows/GetAppPermissions-075D7D80-28B9-EE11-A569-000D3A4C1CCE.json.data.xml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<IsCustomizable>1</IsCustomizable>
2020
<BusinessProcessType>0</BusinessProcessType>
2121
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
2223
<PrimaryEntity>none</PrimaryEntity>
2324
<LocalizedNames>
2425
<LocalizedName languagecode="1033" description="GetAppPermissions" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
{
2+
"properties": {
3+
"connectionReferences": {
4+
"shared_powerappsforappmakers_1": {
5+
"runtimeSource": "invoker",
6+
"connection": {
7+
"connectionReferenceLogicalName": "powciti_sharedpowerappsforappmakers_8fba6"
8+
},
9+
"api": {
10+
"name": "shared_powerappsforappmakers"
11+
}
12+
}
13+
},
14+
"definition": {
15+
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
16+
"contentVersion": "1.0.0.0",
17+
"parameters": {
18+
"$connections": {
19+
"defaultValue": {},
20+
"type": "Object"
21+
},
22+
"$authentication": {
23+
"defaultValue": {},
24+
"type": "SecureObject"
25+
}
26+
},
27+
"triggers": {
28+
"manual": {
29+
"metadata": {
30+
"operationMetadataId": "13dfa903-ae2b-4a1d-ac33-bed0c150bc3c"
31+
},
32+
"type": "Request",
33+
"kind": "PowerAppV2",
34+
"inputs": {
35+
"schema": {
36+
"type": "object",
37+
"properties": {
38+
"text": {
39+
"title": "TargetAppID",
40+
"type": "string",
41+
"x-ms-dynamically-added": true,
42+
"description": "Please enter your input",
43+
"x-ms-content-hint": "TEXT"
44+
}
45+
},
46+
"required": [
47+
"text"
48+
]
49+
}
50+
}
51+
}
52+
},
53+
"actions": {
54+
"AppObject": {
55+
"runAfter": {},
56+
"metadata": {
57+
"operationMetadataId": "3153ae61-5032-4edf-8611-515f9ae77ec8"
58+
},
59+
"type": "InitializeVariable",
60+
"inputs": {
61+
"variables": [
62+
{
63+
"name": "AppObject",
64+
"type": "array",
65+
"value": []
66+
}
67+
]
68+
}
69+
},
70+
"Do_until": {
71+
"actions": {
72+
"Get_App": {
73+
"runAfter": {},
74+
"metadata": {
75+
"operationMetadataId": "a650ec77-a45d-431b-96d8-271387eb97c3"
76+
},
77+
"type": "OpenApiConnection",
78+
"inputs": {
79+
"host": {
80+
"connectionName": "shared_powerappsforappmakers_1",
81+
"operationId": "Get-App",
82+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_powerappsforappmakers"
83+
},
84+
"parameters": {
85+
"app": "@triggerBody()['text']",
86+
"api-version": "2016-11-01"
87+
},
88+
"authentication": "@parameters('$authentication')"
89+
}
90+
},
91+
"StatusCode": {
92+
"runAfter": {
93+
"Get_App": [
94+
"Succeeded",
95+
"Failed"
96+
]
97+
},
98+
"metadata": {
99+
"operationMetadataId": "e872a2e7-22f6-4b26-9915-26754668a4bf"
100+
},
101+
"type": "Compose",
102+
"inputs": "@outputs('Get_App')['statusCode']"
103+
},
104+
"Condition": {
105+
"actions": {
106+
"Append_to_array_variable": {
107+
"runAfter": {},
108+
"metadata": {
109+
"operationMetadataId": "507072d3-0880-4aa2-855b-df0152feeac4"
110+
},
111+
"type": "AppendToArrayVariable",
112+
"inputs": {
113+
"name": "AppObject",
114+
"value": {
115+
"DisplayName": "@outputs('Get_App')?['body/properties/displayName']",
116+
"ID": "@triggerBody()['text']",
117+
"Environment": "@outputs('Get_App')?['body/properties/environment/name']",
118+
"Created": "@outputs('Get_App')?['body/properties/createdTime']",
119+
"PlayURI": "@outputs('Get_App')?['body/properties/appOpenUri']",
120+
"LicenseDesignation": "",
121+
"HasDataverse": ""
122+
}
123+
}
124+
}
125+
},
126+
"runAfter": {
127+
"StatusCode": [
128+
"Succeeded"
129+
]
130+
},
131+
"expression": {
132+
"equals": [
133+
"@outputs('StatusCode')",
134+
200
135+
]
136+
},
137+
"metadata": {
138+
"operationMetadataId": "12e9ae6f-ee76-4c0e-b5e0-386a262e5924"
139+
},
140+
"type": "If"
141+
}
142+
},
143+
"runAfter": {
144+
"AppObject": [
145+
"Succeeded"
146+
]
147+
},
148+
"expression": "@equals(outputs('StatusCode'), 200)",
149+
"limit": {
150+
"count": 60,
151+
"timeout": "PT100S"
152+
},
153+
"metadata": {
154+
"operationMetadataId": "8ff92686-a4b5-410a-bf9b-f2dc364f21fa"
155+
},
156+
"type": "Until"
157+
},
158+
"Respond_to_a_Power_App_or_flow": {
159+
"runAfter": {
160+
"Do_until": [
161+
"Succeeded"
162+
]
163+
},
164+
"metadata": {
165+
"operationMetadataId": "260fb3f3-9989-4344-a844-77e152f2ffa0"
166+
},
167+
"type": "Response",
168+
"kind": "PowerApp",
169+
"inputs": {
170+
"statusCode": 200,
171+
"body": {
172+
"appobject": "@{variables('AppObject')}"
173+
},
174+
"schema": {
175+
"type": "object",
176+
"properties": {
177+
"appobject": {
178+
"title": "AppObject",
179+
"x-ms-dynamically-added": true,
180+
"type": "string"
181+
}
182+
}
183+
}
184+
}
185+
}
186+
}
187+
},
188+
"templateName": ""
189+
},
190+
"schemaVersion": "1.0.0.0"
191+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Workflow WorkflowId="{f8bbb170-f832-ef11-8409-000d3abea4c6}" Name="GetMigratedAppFromTargetEnvironment" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<JsonFileName>/Workflows/GetMigratedAppFromTargetEnvironment-F8BBB170-F832-EF11-8409-000D3ABEA4C6.json</JsonFileName>
4+
<Type>1</Type>
5+
<Subprocess>0</Subprocess>
6+
<Category>5</Category>
7+
<Mode>0</Mode>
8+
<Scope>4</Scope>
9+
<OnDemand>0</OnDemand>
10+
<TriggerOnCreate>0</TriggerOnCreate>
11+
<TriggerOnDelete>0</TriggerOnDelete>
12+
<AsyncAutodelete>0</AsyncAutodelete>
13+
<SyncWorkflowLogOnFailure>0</SyncWorkflowLogOnFailure>
14+
<StateCode>1</StateCode>
15+
<StatusCode>2</StatusCode>
16+
<RunAs>1</RunAs>
17+
<IsTransacted>1</IsTransacted>
18+
<IntroducedVersion>1.0.0.1</IntroducedVersion>
19+
<IsCustomizable>1</IsCustomizable>
20+
<BusinessProcessType>0</BusinessProcessType>
21+
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
23+
<PrimaryEntity>none</PrimaryEntity>
24+
<LocalizedNames>
25+
<LocalizedName languagecode="1033" description="GetMigratedAppFromTargetEnvironment" />
26+
</LocalizedNames>
27+
</Workflow>

‎MigrateCanvasApps/Workflows/GetMyConnections-10D1D4D3-0F94-EE11-BE37-000D3A4C1CCE.json.data.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<IsCustomizable>1</IsCustomizable>
2020
<BusinessProcessType>0</BusinessProcessType>
2121
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22-
<BillingContext>[{"id":"powciti_copyflows_a03a7","type":"UnifiedApp","metadata":{"displayName":"Copy Flows"}}]</BillingContext>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
2323
<PrimaryEntity>none</PrimaryEntity>
2424
<LocalizedNames>
2525
<LocalizedName languagecode="1033" description="GetMyConnections" />

‎MigrateCanvasApps/Workflows/GetMyEnvironmentApps-F1FA3B0B-1CB9-EE11-A569-000D3A4C1CCE.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"type": "Query",
120120
"inputs": {
121121
"from": "@outputs('Get_Apps')?['body/value']",
122-
"where": "@equals(item()?['properties/owner/id'], triggerBody()['text_1'])"
122+
"where": "@and(equals(item()?['properties/almMode'], 'Environment'), equals(item()?['properties/owner/id'], triggerBody()['text_1']))"
123123
}
124124
},
125125
"SelectNeededProperties": {
@@ -139,7 +139,9 @@
139139
"ID": "@item()?['name']",
140140
"Environment": "@item()?['properties/environment/name']",
141141
"Created": "@item()?['properties/createdTime']",
142-
"PlayURI": "@item()?['properties/appPlayUri']"
142+
"PlayURI": "@item()?['properties/appPlayUri']",
143+
"LicenseDesignation": "@item()?['properties/appPlanClassification']",
144+
"HasDataverse": "@not(empty(item()?['properties/databaseReferences']))"
143145
}
144146
}
145147
}

‎MigrateCanvasApps/Workflows/GetMyEnvironmentApps-F1FA3B0B-1CB9-EE11-A569-000D3A4C1CCE.json.data.xml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<IsCustomizable>1</IsCustomizable>
2020
<BusinessProcessType>0</BusinessProcessType>
2121
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
2223
<PrimaryEntity>none</PrimaryEntity>
2324
<LocalizedNames>
2425
<LocalizedName languagecode="1033" description="GetMyEnvironmentApps" />

‎MigrateCanvasApps/Workflows/MigrateCanvasAppExportPackage-61D61172-55E1-EE11-904C-000D3A4ADF70.json

+24-12
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
}
2222
},
2323
"shared_commondataserviceforapps_1": {
24+
"impersonation": {
25+
"source": "invoker"
26+
},
2427
"runtimeSource": "embedded",
2528
"connection": {
2629
"connectionReferenceLogicalName": "powciti_sharedcommondataserviceforapps_4cf94"
@@ -138,12 +141,15 @@
138141
"type": "OpenApiConnection",
139142
"inputs": {
140143
"host": {
144+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365users",
141145
"connectionName": "shared_office365users_1",
142-
"operationId": "MyProfile_V2",
143-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365users"
146+
"operationId": "MyProfile_V2"
144147
},
145148
"parameters": {},
146-
"authentication": "@parameters('$authentication')"
149+
"authentication": {
150+
"value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']",
151+
"type": "Raw"
152+
}
147153
}
148154
},
149155
"ResourceTemp": {
@@ -338,16 +344,19 @@
338344
"type": "OpenApiConnection",
339345
"inputs": {
340346
"host": {
347+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81",
341348
"connectionName": "shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81_1",
342-
"operationId": "ListPackageResources",
343-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81"
349+
"operationId": "ListPackageResources"
344350
},
345351
"parameters": {
346352
"EnvironmentID": "@triggerBody()['text']",
347353
"api-version": "2016-11-01",
348354
"body": "{\n \"baseResourceIds\": [\n \"/providers/Microsoft.PowerApps/apps/@{triggerBody()['text_2']}\"\n ]\n}"
349355
},
350-
"authentication": "@parameters('$authentication')"
356+
"authentication": {
357+
"value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']",
358+
"type": "Raw"
359+
}
351360
}
352361
},
353362
"XML": {
@@ -615,16 +624,19 @@
615624
"type": "OpenApiConnection",
616625
"inputs": {
617626
"host": {
627+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81",
618628
"connectionName": "shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81_1",
619-
"operationId": "ExportPackage",
620-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81"
629+
"operationId": "ExportPackage"
621630
},
622631
"parameters": {
623632
"EnvironmentID": "@triggerBody()['text']",
624633
"api-version": "2016-11-01",
625634
"body": "@json(concat(substring(outputs('Set-ResourceIds'), 0, sub(length(outputs('Set-ResourceIds')), 1)), '}}'))"
626635
},
627-
"authentication": "@parameters('$authentication')"
636+
"authentication": {
637+
"value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']",
638+
"type": "Raw"
639+
}
628640
},
629641
"operationOptions": "DisableAsyncPattern"
630642
},
@@ -958,9 +970,9 @@
958970
"type": "OpenApiConnection",
959971
"inputs": {
960972
"host": {
973+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
961974
"connectionName": "shared_commondataserviceforapps_1",
962-
"operationId": "CreateRecord",
963-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
975+
"operationId": "CreateRecord"
964976
},
965977
"parameters": {
966978
"entityName": "powciti_migrationjobs",
@@ -991,7 +1003,7 @@
9911003
}
9921004
}
9931005
},
994-
"templateName": ""
1006+
"templateName": null
9951007
},
9961008
"schemaVersion": "1.0.0.0"
9971009
}

‎MigrateCanvasApps/Workflows/MigrateCanvasAppImportPackage-4CC1CC3E-F5E6-EE11-904C-000D3A4ADF70.json

+239-58
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"properties": {
33
"connectionReferences": {
44
"shared_commondataserviceforapps_1": {
5+
"impersonation": {
6+
"source": "invoker"
7+
},
58
"runtimeSource": "embedded",
69
"connection": {
710
"connectionReferenceLogicalName": "powciti_sharedcommondataserviceforapps_4cf94"
@@ -61,46 +64,6 @@
6164
}
6265
},
6366
"actions": {
64-
"Respond_to_a_PowerApp_or_flow": {
65-
"runAfter": {
66-
"Update-MigrationJob": [
67-
"Succeeded"
68-
]
69-
},
70-
"metadata": {
71-
"operationMetadataId": "06ef095d-8382-4f47-9344-05284df14e5d"
72-
},
73-
"type": "Response",
74-
"kind": "PowerApp",
75-
"inputs": {
76-
"statusCode": 200,
77-
"body": {
78-
"status": "@variables('MigrationStatus')",
79-
"message": "@variables('MigrationMessage')",
80-
"completed": "@{variables('MigrationCompleted')}"
81-
},
82-
"schema": {
83-
"type": "object",
84-
"properties": {
85-
"status": {
86-
"title": "Status",
87-
"x-ms-dynamically-added": true,
88-
"type": "string"
89-
},
90-
"message": {
91-
"title": "Message",
92-
"x-ms-dynamically-added": true,
93-
"type": "string"
94-
},
95-
"completed": {
96-
"title": "Completed",
97-
"x-ms-dynamically-added": true,
98-
"type": "string"
99-
}
100-
}
101-
}
102-
}
103-
},
10467
"MigrationStatus": {
10568
"runAfter": {
10669
"Get-MigrationJob": [
@@ -179,7 +142,7 @@
179142
},
180143
"ImportPackage": {
181144
"runAfter": {
182-
"MigrationCompleted": [
145+
"TargetAppID": [
183146
"Succeeded"
184147
]
185148
},
@@ -243,6 +206,78 @@
243206
"name": "MigrationCompleted",
244207
"value": "@false"
245208
}
209+
},
210+
"Update-MigrationJob-Failed": {
211+
"runAfter": {
212+
"Set-MigrationCompleted-Import": [
213+
"Succeeded"
214+
]
215+
},
216+
"metadata": {
217+
"operationMetadataId": "b662b114-6a79-4b24-8365-d9910b4eba4d"
218+
},
219+
"type": "OpenApiConnection",
220+
"inputs": {
221+
"host": {
222+
"connectionName": "shared_commondataserviceforapps_1",
223+
"operationId": "UpdateRecord",
224+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
225+
},
226+
"parameters": {
227+
"entityName": "powciti_migrationjobs",
228+
"recordId": "@triggerBody()['text_7']",
229+
"item/powciti_completed": "@variables('MigrationCompleted')",
230+
"item/powciti_migrationmessage": "@variables('MigrationMessage')",
231+
"item/powciti_migrationstatus": "@variables('MigrationStatus')"
232+
},
233+
"authentication": "@parameters('$authentication')"
234+
}
235+
},
236+
"Respond_to_a_PowerApp_or_flow_2": {
237+
"runAfter": {
238+
"Update-MigrationJob-Failed": [
239+
"Succeeded"
240+
]
241+
},
242+
"metadata": {
243+
"operationMetadataId": "06ef095d-8382-4f47-9344-05284df14e5d"
244+
},
245+
"type": "Response",
246+
"kind": "PowerApp",
247+
"inputs": {
248+
"statusCode": 200,
249+
"body": {
250+
"status": "@variables('MigrationStatus')",
251+
"message": "@variables('MigrationMessage')",
252+
"completed": "@{variables('MigrationCompleted')}",
253+
"targetappid": "@variables('TargetAppID')"
254+
},
255+
"schema": {
256+
"type": "object",
257+
"properties": {
258+
"status": {
259+
"title": "Status",
260+
"x-ms-dynamically-added": true,
261+
"type": "string"
262+
},
263+
"message": {
264+
"title": "Message",
265+
"x-ms-dynamically-added": true,
266+
"type": "string"
267+
},
268+
"completed": {
269+
"title": "Completed",
270+
"x-ms-dynamically-added": true,
271+
"type": "string"
272+
},
273+
"targetappid": {
274+
"title": "TargetAppID",
275+
"x-ms-dynamically-added": true,
276+
"type": "string"
277+
}
278+
}
279+
}
280+
}
246281
}
247282
},
248283
"runAfter": {
@@ -354,6 +389,87 @@
354389
"name": "MigrationCompleted",
355390
"value": "@true"
356391
}
392+
},
393+
"ImportPackageResponseXML": {
394+
"runAfter": {
395+
"Set-MigrationCompleted-Success": [
396+
"Succeeded"
397+
]
398+
},
399+
"metadata": {
400+
"operationMetadataId": "c011c1cc-5235-4f7d-8854-27accaa3401b"
401+
},
402+
"type": "Compose",
403+
"inputs": "@xml(json(concat('{\"root\": { resources:', body('ImportPackage')['properties/resources'], '}}')))"
404+
},
405+
"GetTargetAppID": {
406+
"runAfter": {
407+
"ImportPackageResponseXML": [
408+
"Succeeded"
409+
]
410+
},
411+
"metadata": {
412+
"operationMetadataId": "4e449af4-1cee-4dfc-b24b-675537a83662"
413+
},
414+
"type": "Compose",
415+
"inputs": "@xpath(outputs('ImportPackageResponseXML'), '//hierarchy[contains(text(), \"Root\")]/../id/text()')"
416+
},
417+
"Condition": {
418+
"actions": {
419+
"AppID": {
420+
"runAfter": {},
421+
"metadata": {
422+
"operationMetadataId": "5b89b5ea-7f75-463b-9b8f-5e488cd5a829"
423+
},
424+
"type": "Compose",
425+
"inputs": "@first(outputs('GetTargetAppID'))"
426+
},
427+
"Set_variable": {
428+
"runAfter": {
429+
"AppID": [
430+
"Succeeded"
431+
]
432+
},
433+
"metadata": {
434+
"operationMetadataId": "2e29fd47-94d9-4a11-9ab0-abf536812e1a"
435+
},
436+
"type": "SetVariable",
437+
"inputs": {
438+
"name": "TargetAppID",
439+
"value": "@{substring(outputs('AppID'), add(lastIndexOf(outputs('AppID'), '/'), 1))}"
440+
}
441+
}
442+
},
443+
"runAfter": {
444+
"GetTargetAppID": [
445+
"Succeeded"
446+
]
447+
},
448+
"else": {
449+
"actions": {
450+
"Set_variable_2": {
451+
"runAfter": {},
452+
"metadata": {
453+
"operationMetadataId": "6ed26536-ec9f-433e-9f8a-c5f77bc32929"
454+
},
455+
"type": "SetVariable",
456+
"inputs": {
457+
"name": "TargetAppID",
458+
"value": "@{null}"
459+
}
460+
}
461+
}
462+
},
463+
"expression": {
464+
"equals": [
465+
"@length(outputs('GetTargetAppID'))",
466+
1
467+
]
468+
},
469+
"metadata": {
470+
"operationMetadataId": "296333f1-988d-46c3-8efe-cc88ecb67e8e"
471+
},
472+
"type": "If"
357473
}
358474
}
359475
},
@@ -367,6 +483,78 @@
367483
"operationMetadataId": "64c8eefc-eb10-4505-aa13-f3f36d1e5e66"
368484
},
369485
"type": "If"
486+
},
487+
"Update-MigrationJob": {
488+
"runAfter": {
489+
"ImportFailed": [
490+
"Succeeded"
491+
]
492+
},
493+
"metadata": {
494+
"operationMetadataId": "b662b114-6a79-4b24-8365-d9910b4eba4d"
495+
},
496+
"type": "OpenApiConnection",
497+
"inputs": {
498+
"host": {
499+
"connectionName": "shared_commondataserviceforapps_1",
500+
"operationId": "UpdateRecord",
501+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
502+
},
503+
"parameters": {
504+
"entityName": "powciti_migrationjobs",
505+
"recordId": "@triggerBody()['text_7']",
506+
"item/powciti_completed": "@variables('MigrationCompleted')",
507+
"item/powciti_migrationmessage": "@variables('MigrationMessage')",
508+
"item/powciti_migrationstatus": "@variables('MigrationStatus')"
509+
},
510+
"authentication": "@parameters('$authentication')"
511+
}
512+
},
513+
"Respond_to_a_PowerApp_or_flow": {
514+
"runAfter": {
515+
"Update-MigrationJob": [
516+
"Succeeded"
517+
]
518+
},
519+
"metadata": {
520+
"operationMetadataId": "06ef095d-8382-4f47-9344-05284df14e5d"
521+
},
522+
"type": "Response",
523+
"kind": "PowerApp",
524+
"inputs": {
525+
"statusCode": 200,
526+
"body": {
527+
"status": "@variables('MigrationStatus')",
528+
"message": "@variables('MigrationMessage')",
529+
"completed": "@{variables('MigrationCompleted')}",
530+
"targetappid": "@variables('TargetAppID')"
531+
},
532+
"schema": {
533+
"type": "object",
534+
"properties": {
535+
"status": {
536+
"title": "Status",
537+
"x-ms-dynamically-added": true,
538+
"type": "string"
539+
},
540+
"message": {
541+
"title": "Message",
542+
"x-ms-dynamically-added": true,
543+
"type": "string"
544+
},
545+
"completed": {
546+
"title": "Completed",
547+
"x-ms-dynamically-added": true,
548+
"type": "string"
549+
},
550+
"targetappid": {
551+
"title": "TargetAppID",
552+
"x-ms-dynamically-added": true,
553+
"type": "string"
554+
}
555+
}
556+
}
557+
}
370558
}
371559
},
372560
"runAfter": {
@@ -379,30 +567,23 @@
379567
},
380568
"type": "Scope"
381569
},
382-
"Update-MigrationJob": {
570+
"TargetAppID": {
383571
"runAfter": {
384-
"ImportPackageAction-SUCCESS": [
572+
"MigrationCompleted": [
385573
"Succeeded"
386574
]
387575
},
388576
"metadata": {
389-
"operationMetadataId": "b662b114-6a79-4b24-8365-d9910b4eba4d"
577+
"operationMetadataId": "ba07194e-dbd9-462b-a992-b3799b0a1d3f"
390578
},
391-
"type": "OpenApiConnection",
579+
"type": "InitializeVariable",
392580
"inputs": {
393-
"host": {
394-
"connectionName": "shared_commondataserviceforapps_1",
395-
"operationId": "UpdateRecord",
396-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
397-
},
398-
"parameters": {
399-
"entityName": "powciti_migrationjobs",
400-
"recordId": "@triggerBody()['text_7']",
401-
"item/powciti_completed": "@variables('MigrationCompleted')",
402-
"item/powciti_migrationmessage": "@variables('MigrationMessage')",
403-
"item/powciti_migrationstatus": "@variables('MigrationStatus')"
404-
},
405-
"authentication": "@parameters('$authentication')"
581+
"variables": [
582+
{
583+
"name": "TargetAppID",
584+
"type": "string"
585+
}
586+
]
406587
}
407588
}
408589
}

‎MigrateCanvasApps/Workflows/MigrateCanvasAppImportPackage-4CC1CC3E-F5E6-EE11-904C-000D3A4ADF70.json.data.xml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<IsCustomizable>1</IsCustomizable>
2020
<BusinessProcessType>0</BusinessProcessType>
2121
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
2223
<PrimaryEntity>none</PrimaryEntity>
2324
<LocalizedNames>
2425
<LocalizedName languagecode="1033" description="MigrateCanvasAppImportPackage" />

‎MigrateCanvasApps/Workflows/MigrateCanvasAppImportPackageValidation-D5BD811F-7BE7-EE11-904C-000D3A4ADF70.json

+26-14
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
}
1212
},
1313
"shared_commondataserviceforapps_1": {
14+
"impersonation": {
15+
"source": "invoker"
16+
},
1417
"runtimeSource": "embedded",
1518
"connection": {
1619
"connectionReferenceLogicalName": "powciti_sharedcommondataserviceforapps_4cf94"
@@ -78,12 +81,15 @@
7881
"type": "OpenApiConnection",
7982
"inputs": {
8083
"host": {
84+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365users",
8185
"connectionName": "shared_office365users_1",
82-
"operationId": "MyProfile_V2",
83-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_office365users"
86+
"operationId": "MyProfile_V2"
8487
},
8588
"parameters": {},
86-
"authentication": "@parameters('$authentication')"
89+
"authentication": {
90+
"value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']",
91+
"type": "Raw"
92+
}
8793
}
8894
},
8995
"Respond_to_a_PowerApp_or_flow": {
@@ -241,9 +247,9 @@
241247
"type": "OpenApiConnection",
242248
"inputs": {
243249
"host": {
250+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
244251
"connectionName": "shared_commondataserviceforapps_1",
245-
"operationId": "GetItem",
246-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
252+
"operationId": "GetItem"
247253
},
248254
"parameters": {
249255
"entityName": "powciti_migrationjobs",
@@ -265,9 +271,9 @@
265271
"type": "OpenApiConnection",
266272
"inputs": {
267273
"host": {
274+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps",
268275
"connectionName": "shared_commondataserviceforapps_1",
269-
"operationId": "UpdateRecord",
270-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
276+
"operationId": "UpdateRecord"
271277
},
272278
"parameters": {
273279
"entityName": "powciti_migrationjobs",
@@ -289,16 +295,19 @@
289295
"type": "OpenApiConnection",
290296
"inputs": {
291297
"host": {
298+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81",
292299
"connectionName": "shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81_1",
293-
"operationId": "ListImportOperation",
294-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81"
300+
"operationId": "ListImportOperation"
295301
},
296302
"parameters": {
297303
"EnvironmentID": "@outputs('Get-MigrationJob')?['body/powciti_targetenvironmentid']",
298304
"OperationID": "@outputs('Get-MigrationJob')?['body/powciti_importlocation']",
299305
"api-version": "2016-11-01"
300306
},
301-
"authentication": "@parameters('$authentication')"
307+
"authentication": {
308+
"value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']",
309+
"type": "Raw"
310+
}
302311
}
303312
},
304313
"Parse-ListImportOperation": {
@@ -768,16 +777,19 @@
768777
"type": "OpenApiConnection",
769778
"inputs": {
770779
"host": {
780+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81",
771781
"connectionName": "shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81_1",
772-
"operationId": "ValidateImportPackage",
773-
"apiId": "/providers/Microsoft.PowerApps/apis/shared_migrate-20canvas-20apps-5fb1c7f5321b570664-5f5aadce8b365dea81"
782+
"operationId": "ValidateImportPackage"
774783
},
775784
"parameters": {
776785
"EnvironmentID": "@outputs('Get-MigrationJob')?['body/powciti_targetenvironmentid']",
777786
"api-version": "2016-11-01",
778787
"body": "@json(concat(substring(string(outputs('Set-PackageTelemetryID')), 0, sub(length(string(outputs('Set-PackageTelemetryID'))), 1)), '}}'))"
779788
},
780-
"authentication": "@parameters('$authentication')"
789+
"authentication": {
790+
"value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']",
791+
"type": "Raw"
792+
}
781793
}
782794
},
783795
"Parse-ValidateImportPackage": {
@@ -1023,7 +1035,7 @@
10231035
}
10241036
}
10251037
},
1026-
"templateName": ""
1038+
"templateName": null
10271039
},
10281040
"schemaVersion": "1.0.0.0"
10291041
}

‎MigrateCanvasApps/Workflows/MigrateCanvasAppImportPackageValidation-D5BD811F-7BE7-EE11-904C-000D3A4ADF70.json.data.xml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<IsCustomizable>1</IsCustomizable>
2020
<BusinessProcessType>0</BusinessProcessType>
2121
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
2223
<PrimaryEntity>none</PrimaryEntity>
2324
<LocalizedNames>
2425
<LocalizedName languagecode="1033" description="MigrateCanvasAppImportPackageValidation" />

‎MigrateCanvasApps/Workflows/MigrateCanvasAppUploadPackage-87D577A2-DEE6-EE11-904C-000D3A4ADF70.json

+143-61
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
}
1313
},
1414
"shared_commondataserviceforapps_1": {
15+
"impersonation": {
16+
"source": "invoker"
17+
},
1518
"runtimeSource": "embedded",
1619
"connection": {
1720
"connectionReferenceLogicalName": "powciti_sharedcommondataserviceforapps_4cf94"
@@ -95,52 +98,6 @@
9598
]
9699
}
97100
},
98-
"Respond_to_a_PowerApp_or_flow": {
99-
"runAfter": {
100-
"UploadSuccess": [
101-
"Succeeded"
102-
]
103-
},
104-
"metadata": {
105-
"operationMetadataId": "06ef095d-8382-4f47-9344-05284df14e5d"
106-
},
107-
"type": "Response",
108-
"kind": "PowerApp",
109-
"inputs": {
110-
"statusCode": 200,
111-
"body": {
112-
"status": "@variables('MigrationStatus')",
113-
"message": "@variables('MigrationMessage')",
114-
"migrationjobid": "@triggerBody()['text_7']",
115-
"completed": "@{false}"
116-
},
117-
"schema": {
118-
"type": "object",
119-
"properties": {
120-
"status": {
121-
"title": "Status",
122-
"x-ms-dynamically-added": true,
123-
"type": "string"
124-
},
125-
"message": {
126-
"title": "Message",
127-
"x-ms-dynamically-added": true,
128-
"type": "string"
129-
},
130-
"migrationjobid": {
131-
"title": "MigrationJobID",
132-
"x-ms-dynamically-added": true,
133-
"type": "string"
134-
},
135-
"completed": {
136-
"title": "Completed",
137-
"x-ms-dynamically-added": true,
138-
"type": "string"
139-
}
140-
}
141-
}
142-
}
143-
},
144101
"Upload": {
145102
"actions": {
146103
"Packaging_Operation": {
@@ -539,21 +496,6 @@
539496
"value": "Failed"
540497
}
541498
},
542-
"Set-MigrationMessage-Failed": {
543-
"runAfter": {
544-
"Set-MigrationStatus-Failed": [
545-
"Succeeded"
546-
]
547-
},
548-
"metadata": {
549-
"operationMetadataId": "8989ac4f-0548-4034-bf45-d6be8b7309ad"
550-
},
551-
"type": "SetVariable",
552-
"inputs": {
553-
"name": "MigrationMessage",
554-
"value": "App uploaded failed"
555-
}
556-
},
557499
"Update-MigrationJob-Failed": {
558500
"runAfter": {
559501
"Set-MigrationMessage-Failed": [
@@ -578,6 +520,100 @@
578520
},
579521
"authentication": "@parameters('$authentication')"
580522
}
523+
},
524+
"Respond_to_a_PowerApp_or_flow_2": {
525+
"runAfter": {
526+
"Update-MigrationJob-Failed": [
527+
"Succeeded"
528+
]
529+
},
530+
"metadata": {
531+
"operationMetadataId": "06ef095d-8382-4f47-9344-05284df14e5d"
532+
},
533+
"type": "Response",
534+
"kind": "PowerApp",
535+
"inputs": {
536+
"statusCode": 200,
537+
"body": {
538+
"status": "@variables('MigrationStatus')",
539+
"message": "@variables('MigrationMessage')",
540+
"migrationjobid": "@triggerBody()['text_7']",
541+
"completed": "@{false}"
542+
},
543+
"schema": {
544+
"type": "object",
545+
"properties": {
546+
"status": {
547+
"title": "Status",
548+
"x-ms-dynamically-added": true,
549+
"type": "string"
550+
},
551+
"message": {
552+
"title": "Message",
553+
"x-ms-dynamically-added": true,
554+
"type": "string"
555+
},
556+
"migrationjobid": {
557+
"title": "MigrationJobID",
558+
"x-ms-dynamically-added": true,
559+
"type": "string"
560+
},
561+
"completed": {
562+
"title": "Completed",
563+
"x-ms-dynamically-added": true,
564+
"type": "string"
565+
}
566+
}
567+
}
568+
}
569+
},
570+
"FilterErrors": {
571+
"runAfter": {
572+
"Set-MigrationStatus-Failed": [
573+
"Succeeded"
574+
]
575+
},
576+
"metadata": {
577+
"operationMetadataId": "6b1fd5dc-228f-4cf3-b3e3-e40d0d1597d7"
578+
},
579+
"type": "Query",
580+
"inputs": {
581+
"from": "@result('Upload')",
582+
"where": "@equals(item()['Status'], 'Failed')"
583+
}
584+
},
585+
"Select": {
586+
"runAfter": {
587+
"FilterErrors": [
588+
"Succeeded"
589+
]
590+
},
591+
"metadata": {
592+
"operationMetadataId": "9963e7e5-51f6-4688-bb50-631d30726a61"
593+
},
594+
"type": "Select",
595+
"inputs": {
596+
"from": "@body('FilterErrors')",
597+
"select": {
598+
"Action": "@item()['name']",
599+
"Message": "@if(contains(item(), 'error'), item()['error/message'], if(contains(item(), 'outputs'), item()['outputs/body/error/message'], ''))"
600+
}
601+
}
602+
},
603+
"Set-MigrationMessage-Failed": {
604+
"runAfter": {
605+
"Select": [
606+
"Succeeded"
607+
]
608+
},
609+
"metadata": {
610+
"operationMetadataId": "8989ac4f-0548-4034-bf45-d6be8b7309ad"
611+
},
612+
"type": "SetVariable",
613+
"inputs": {
614+
"name": "MigrationMessage",
615+
"value": "@{concat('App upload failed: ', first(body('Select'))['Message'] )}"
616+
}
581617
}
582618
},
583619
"runAfter": {
@@ -643,6 +679,52 @@
643679
},
644680
"authentication": "@parameters('$authentication')"
645681
}
682+
},
683+
"Respond_to_a_PowerApp_or_flow": {
684+
"runAfter": {
685+
"Update-MigrationJob-Success": [
686+
"Succeeded"
687+
]
688+
},
689+
"metadata": {
690+
"operationMetadataId": "06ef095d-8382-4f47-9344-05284df14e5d"
691+
},
692+
"type": "Response",
693+
"kind": "PowerApp",
694+
"inputs": {
695+
"statusCode": 200,
696+
"body": {
697+
"status": "@variables('MigrationStatus')",
698+
"message": "@variables('MigrationMessage')",
699+
"migrationjobid": "@triggerBody()['text_7']",
700+
"completed": "@{false}"
701+
},
702+
"schema": {
703+
"type": "object",
704+
"properties": {
705+
"status": {
706+
"title": "Status",
707+
"x-ms-dynamically-added": true,
708+
"type": "string"
709+
},
710+
"message": {
711+
"title": "Message",
712+
"x-ms-dynamically-added": true,
713+
"type": "string"
714+
},
715+
"migrationjobid": {
716+
"title": "MigrationJobID",
717+
"x-ms-dynamically-added": true,
718+
"type": "string"
719+
},
720+
"completed": {
721+
"title": "Completed",
722+
"x-ms-dynamically-added": true,
723+
"type": "string"
724+
}
725+
}
726+
}
727+
}
646728
}
647729
},
648730
"runAfter": {

‎MigrateCanvasApps/Workflows/MigrateCanvasAppUploadPackage-87D577A2-DEE6-EE11-904C-000D3A4ADF70.json.data.xml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<IsCustomizable>1</IsCustomizable>
2020
<BusinessProcessType>0</BusinessProcessType>
2121
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
2223
<PrimaryEntity>none</PrimaryEntity>
2324
<LocalizedNames>
2425
<LocalizedName languagecode="1033" description="MigrateCanvasAppUploadPackage" />

‎MigrateCanvasApps/Workflows/MigratePermissions-8B5BA6CF-EF32-EF11-8409-000D3ABEA4C6.json

+512
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Workflow WorkflowId="{8b5ba6cf-ef32-ef11-8409-000d3abea4c6}" Name="MigratePermissions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<JsonFileName>/Workflows/MigratePermissions-8B5BA6CF-EF32-EF11-8409-000D3ABEA4C6.json</JsonFileName>
4+
<Type>1</Type>
5+
<Subprocess>0</Subprocess>
6+
<Category>5</Category>
7+
<Mode>0</Mode>
8+
<Scope>4</Scope>
9+
<OnDemand>0</OnDemand>
10+
<TriggerOnCreate>0</TriggerOnCreate>
11+
<TriggerOnDelete>0</TriggerOnDelete>
12+
<AsyncAutodelete>0</AsyncAutodelete>
13+
<SyncWorkflowLogOnFailure>0</SyncWorkflowLogOnFailure>
14+
<StateCode>1</StateCode>
15+
<StatusCode>2</StatusCode>
16+
<RunAs>1</RunAs>
17+
<IsTransacted>1</IsTransacted>
18+
<IntroducedVersion>1.0.0.1</IntroducedVersion>
19+
<IsCustomizable>1</IsCustomizable>
20+
<BusinessProcessType>0</BusinessProcessType>
21+
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
23+
<PrimaryEntity>none</PrimaryEntity>
24+
<LocalizedNames>
25+
<LocalizedName languagecode="1033" description="MigratePermissions" />
26+
</LocalizedNames>
27+
</Workflow>

‎MigrateCanvasApps/Workflows/ShareApp-B1B1237F-C4B9-EE11-A569-000D3A4C1CCE.json

+11-22
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,22 @@
6969
"x-ms-dynamically-added": true,
7070
"description": "Please enter your input",
7171
"x-ms-content-hint": "TEXT"
72+
},
73+
"text_5": {
74+
"title": "NotifyUsers",
75+
"type": "string",
76+
"x-ms-dynamically-added": true,
77+
"description": "Please enter your input",
78+
"x-ms-content-hint": "TEXT"
7279
}
7380
},
7481
"required": [
7582
"text",
7683
"text_1",
7784
"text_2",
7885
"text_3",
79-
"text_4"
86+
"text_4",
87+
"text_5"
8088
]
8189
}
8290
}
@@ -98,28 +106,9 @@
98106
]
99107
}
100108
},
101-
"Email": {
102-
"runAfter": {
103-
"Status": [
104-
"Succeeded"
105-
]
106-
},
107-
"metadata": {
108-
"operationMetadataId": "c77b3ddb-50e4-4384-a57c-3ca7678703ee"
109-
},
110-
"type": "InitializeVariable",
111-
"inputs": {
112-
"variables": [
113-
{
114-
"name": "Email",
115-
"type": "string"
116-
}
117-
]
118-
}
119-
},
120109
"Edit_App_Role_Assignment": {
121110
"runAfter": {
122-
"Email": [
111+
"Status": [
123112
"Succeeded"
124113
]
125114
},
@@ -142,7 +131,7 @@
142131
{
143132
"properties/principal/id": "@triggerBody()['text_2']",
144133
"properties/principal/type": "@triggerBody()['text_4']",
145-
"properties/NotifyShareTargetOption": "false",
134+
"properties/NotifyShareTargetOption": "@{triggerBody()['text_5']}",
146135
"properties/roleName": "@triggerBody()['text_3']"
147136
}
148137
]

‎MigrateCanvasApps/Workflows/ShareApp-B1B1237F-C4B9-EE11-A569-000D3A4C1CCE.json.data.xml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<IsCustomizable>1</IsCustomizable>
2020
<BusinessProcessType>0</BusinessProcessType>
2121
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
2223
<PrimaryEntity>none</PrimaryEntity>
2324
<LocalizedNames>
2425
<LocalizedName languagecode="1033" description="ShareApp" />

‎MigrateCanvasApps/Workflows/UnshareApp-B6224EFC-6CD1-EE11-9079-000D3A4C1CCE.json

+23-3
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,32 @@
5555
"x-ms-dynamically-added": true,
5656
"description": "Please enter your input",
5757
"x-ms-content-hint": "TEXT"
58+
},
59+
"text_3": {
60+
"title": "Type",
61+
"type": "string",
62+
"x-ms-dynamically-added": true,
63+
"description": "Please enter your input",
64+
"x-ms-content-hint": "TEXT"
5865
}
5966
},
6067
"required": [
6168
"text",
6269
"text_1",
63-
"text_2"
70+
"text_2",
71+
"text_3"
6472
]
6573
}
6674
}
6775
}
6876
},
6977
"actions": {
7078
"Status": {
71-
"runAfter": {},
79+
"runAfter": {
80+
"BuildObjectOrTenantID": [
81+
"Succeeded"
82+
]
83+
},
7284
"metadata": {
7385
"operationMetadataId": "8358d676-c5b9-45fe-879f-a1416818e8ff"
7486
},
@@ -105,7 +117,7 @@
105117
"Content-Type": "application/json",
106118
"body/delete": [
107119
{
108-
"id": "@triggerBody()['text_2']"
120+
"id": "@outputs('BuildObjectOrTenantID')"
109121
}
110122
]
111123
},
@@ -170,6 +182,14 @@
170182
}
171183
}
172184
}
185+
},
186+
"BuildObjectOrTenantID": {
187+
"runAfter": {},
188+
"metadata": {
189+
"operationMetadataId": "b362c133-a23d-4465-ac3c-5cd3548ee6dc"
190+
},
191+
"type": "Compose",
192+
"inputs": "@if(equals(triggerBody()['text_3'], 'Tenant'), concat('tenant-', triggerBody()['text_2']), triggerBody()['text_2'])"
173193
}
174194
}
175195
},

‎MigrateCanvasApps/Workflows/UnshareApp-B6224EFC-6CD1-EE11-9079-000D3A4C1CCE.json.data.xml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<IsCustomizable>1</IsCustomizable>
2020
<BusinessProcessType>0</BusinessProcessType>
2121
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
22+
<BillingContext>[{"id":"powciti_migratecanvasapps_9e789","type":"UnifiedApp","metadata":{"displayName":"Migrate Canvas Apps"}}]</BillingContext>
2223
<PrimaryEntity>none</PrimaryEntity>
2324
<LocalizedNames>
2425
<LocalizedName languagecode="1033" description="UnshareApp" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<environmentvariabledefinition schemaname="powciti_TargetEnvironmentTypes">
2+
<description default="Comma separated list of allowed target environment types e.g. Sandbox,Production">
3+
<label description="Comma separated list of allowed target environment types e.g. Sandbox,Production" languagecode="1033" />
4+
</description>
5+
<displayname default="Target Environment Types">
6+
<label description="Target Environment Types" languagecode="1033" />
7+
</displayname>
8+
<introducedversion>1.0.0.1</introducedversion>
9+
<iscustomizable>1</iscustomizable>
10+
<isrequired>0</isrequired>
11+
<secretstore>0</secretstore>
12+
<type>100000000</type>
13+
</environmentvariabledefinition>

0 commit comments

Comments
 (0)
Please sign in to comment.