diff --git a/AppSourcePackages/mpa_HardwareRequestAndManagement/Logo.png b/AppSourcePackages/mpa_HardwareRequestAndManagement/Logo.png new file mode 100644 index 00000000..f70a53c9 Binary files /dev/null and b/AppSourcePackages/mpa_HardwareRequestAndManagement/Logo.png differ diff --git a/AppSourcePackages/mpa_HardwareRequestAndManagement/TermsOfUse.html b/AppSourcePackages/mpa_HardwareRequestAndManagement/TermsOfUse.html new file mode 100644 index 00000000..3f602d00 --- /dev/null +++ b/AppSourcePackages/mpa_HardwareRequestAndManagement/TermsOfUse.html @@ -0,0 +1,23 @@ + +MIT License + +Copyright (c) Microsoft Corporation. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE diff --git a/AppSourcePackages/mpa_HardwareRequestAndManagement/[Content_Types].xml b/AppSourcePackages/mpa_HardwareRequestAndManagement/[Content_Types].xml new file mode 100644 index 00000000..b5c49640 --- /dev/null +++ b/AppSourcePackages/mpa_HardwareRequestAndManagement/[Content_Types].xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AppSourcePackages/mpa_HardwareRequestAndManagement/input.xml b/AppSourcePackages/mpa_HardwareRequestAndManagement/input.xml new file mode 100644 index 00000000..20d99823 --- /dev/null +++ b/AppSourcePackages/mpa_HardwareRequestAndManagement/input.xml @@ -0,0 +1,18 @@ + + + Microsoft + package.zip + mpa_HardwareRequestAndManagement_managed.zip + 01/01/2019 + 01/01/2050 + US,CA + https://aka.ms/LearnHardwareRequestAndManagementTemplate + + + logo32x32.png + + + + + + \ No newline at end of file diff --git a/AppSourcePackages/mpa_HardwareRequestAndManagement/logo32x32.png b/AppSourcePackages/mpa_HardwareRequestAndManagement/logo32x32.png new file mode 100644 index 00000000..56a79ba1 Binary files /dev/null and b/AppSourcePackages/mpa_HardwareRequestAndManagement/logo32x32.png differ diff --git a/AppSourcePackages/mpa_Kudos/PkgAssets/ImportConfig.xml b/AppSourcePackages/mpa_Kudos/PkgAssets/ImportConfig.xml deleted file mode 100644 index 2504ecde..00000000 --- a/AppSourcePackages/mpa_Kudos/PkgAssets/ImportConfig.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/AppSourcePackages/mpa_Kudos/PkgAssets/manifest.ppkg.json b/AppSourcePackages/mpa_Kudos/PkgAssets/manifest.ppkg.json deleted file mode 100644 index a692ad13..00000000 --- a/AppSourcePackages/mpa_Kudos/PkgAssets/manifest.ppkg.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "SchemaVersion": "1.0", - "solutionParameters": { - "mpa_EmployeeExperienceBase": { - "components": [] - }, - "mpa_Kudos": { - "components": [ - { - "ComponentName": "", - "ComponentTypeName": "connectionreference", - "Attributes": { - "Count": 4, - "Keys": [ - "connectionreferencelogicalname", - "connectionreferencedisplayname", - "description", - "connectorid" - ], - "Values": [ - "mpa_KudosDataverse", - "Kudos - Dataverse", - null, - "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps" - ] - } - }, - { - "ComponentName": "", - "ComponentTypeName": "connectionreference", - "Attributes": { - "Count": 4, - "Keys": [ - "connectionreferencelogicalname", - "connectionreferencedisplayname", - "description", - "connectorid" - ], - "Values": [ - "mpa_KudosO365", - "Kudos - O365", - null, - "/providers/Microsoft.PowerApps/apis/shared_office365users" - ] - } - }, - { - "ComponentName": "", - "ComponentTypeName": "connectionreference", - "Attributes": { - "Count": 4, - "Keys": [ - "connectionreferencelogicalname", - "connectionreferencedisplayname", - "description", - "connectorid" - ], - "Values": [ - "mpa_KudosOutlook", - "Kudos - Outlook", - null, - "/providers/Microsoft.PowerApps/apis/shared_office365" - ] - } - } - ] - } - } -} \ No newline at end of file diff --git a/AppSourcePackages/mpa_OnboardingBuddy/Logo.png b/AppSourcePackages/mpa_OnboardingBuddy/Logo.png new file mode 100644 index 00000000..cab26420 Binary files /dev/null and b/AppSourcePackages/mpa_OnboardingBuddy/Logo.png differ diff --git a/AppSourcePackages/mpa_SAPProcurement/PkgAssets/ImportConfig.xml b/AppSourcePackages/mpa_SAPProcurement/PkgAssets/ImportConfig.xml deleted file mode 100644 index 7b8e464f..00000000 --- a/AppSourcePackages/mpa_SAPProcurement/PkgAssets/ImportConfig.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/AppSourcePackages/mpa_SAPProcurement/PkgAssets/manifest.ppkg.json b/AppSourcePackages/mpa_SAPProcurement/PkgAssets/manifest.ppkg.json deleted file mode 100644 index c6adc5e2..00000000 --- a/AppSourcePackages/mpa_SAPProcurement/PkgAssets/manifest.ppkg.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "SchemaVersion": "1.0", - "solutionParameters": { - "mpa_SAPBase": { - "components": [ - { - "ComponentName": "", - "ComponentTypeName": "EnvironmentVariableDefinition", - "Attributes": { - "Count": 5, - "Keys": [ - "schemaname", - "displayname", - "description", - "type", - "defaultvalue" - ], - "Values": [ - "mpa_SAPApplicationServer", - "SAP Application Server", - "JSON string that contains system parameters, host, system number, client, etc.", - "100000000", - null - ] - } - }, - { - "ComponentName": "", - "ComponentTypeName": "EnvironmentVariableDefinition", - "Attributes": { - "Count": 5, - "Keys": [ - "schemaname", - "displayname", - "description", - "type", - "defaultvalue" - ], - "Values": [ - "mpa_SAPClientID", - "SAP Client ID", - "The SAP client ID to connect to the SAP system. The SAP backends' client (or 'Mandant') into which to log in. It's a number ranging from 000 to 999. Used separately in IDoc transactions.", - "100000000", - null - ] - } - }, - { - "ComponentName": "", - "ComponentTypeName": "EnvironmentVariableDefinition", - "Attributes": { - "Count": 5, - "Keys": [ - "schemaname", - "displayname", - "description", - "type", - "defaultvalue" - ], - "Values": [ - "mpa_SAPCountofRowsToRead", - "SAP Count of Rows To Read", - "Sets the maximum number of records to be returned on any search query and helps to alleviate performance concerns", - "100000001", - "1000" - ] - } - }, - { - "ComponentName": "", - "ComponentTypeName": "EnvironmentVariableDefinition", - "Attributes": { - "Count": 5, - "Keys": [ - "schemaname", - "displayname", - "description", - "type", - "defaultvalue" - ], - "Values": [ - "mpa_SAPSPRAS", - "SAP SPRAS", - "Language Key from T0002", - "100000000", - "EN" - ] - } - }, - { - "ComponentName": "", - "ComponentTypeName": "EnvironmentVariableDefinition", - "Attributes": { - "Count": 5, - "Keys": [ - "schemaname", - "displayname", - "description", - "type", - "defaultvalue" - ], - "Values": [ - "mpa_SAPSystemID", - "SAP System ID", - "The SAP system's three-letter system ID (Mandatory if connection type Message Server and message server service isn't present). Used separately in IDoc transactions.", - "100000000", - null - ] - } - } - ] - }, - "mpa_SAPProcurement": { - "components": [ - { - "ComponentName": "", - "ComponentTypeName": "connectionreference", - "Attributes": { - "Count": 4, - "Keys": [ - "connectionreferencelogicalname", - "connectionreferencedisplayname", - "description", - "connectorid" - ], - "Values": [ - "mpa_SAPDataverse", - "SAP Dataverse Connection", - null, - "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps" - ] - } - }, - { - "ComponentName": "", - "ComponentTypeName": "connectionreference", - "Attributes": { - "Count": 4, - "Keys": [ - "connectionreferencelogicalname", - "connectionreferencedisplayname", - "description", - "connectorid" - ], - "Values": [ - "mpa_SAPERP", - "SAP ERP Connection", - null, - "/providers/Microsoft.PowerApps/apis/shared_saperp" - ] - } - } - ] - } - } -} \ No newline at end of file diff --git a/DeploymentPackages/mpa_HardwareRequestAndManagement/PackageImportExtension.cs b/DeploymentPackages/mpa_HardwareRequestAndManagement/PackageImportExtension.cs new file mode 100644 index 00000000..36ed5af4 --- /dev/null +++ b/DeploymentPackages/mpa_HardwareRequestAndManagement/PackageImportExtension.cs @@ -0,0 +1,95 @@ +using System; +using System.ComponentModel.Composition; +using Microsoft.Xrm.Tooling.PackageDeployment.CrmPackageExtentionBase; + +namespace mpa_HardwareRequestAndManagement +{ + /// + /// Import package starter frame. + /// + [Export(typeof(IImportExtensions))] + public class PackageImportExtension : ImportExtension + { + #region Metadata + + /// + /// Folder name where package assets are located in the final output package zip. + /// + public override string GetImportPackageDataFolderName => "PkgAssets"; + + /// + /// Name of the Import Package to Use + /// + /// if true, return plural version + public override string GetNameOfImport(bool plural) => "mpa_HardwareRequestAndManagement"; + + /// + /// Long name of the Import Package. + /// + public override string GetLongNameOfImport => "mpa_HardwareRequestAndManagement"; + + /// + /// Description of the package, used in the package selection UI + /// + public override string GetImportPackageDescriptionText => "mpa_HardwareRequestAndManagement"; + + #endregion + + /// + /// Called to Initialize any functions in the Custom Extension. + /// + /// + public override void InitializeCustomExtension() + { + } + + /// + /// Called before the Main Import process begins, after solutions and data. + /// + /// + /// + public override bool BeforeImportStage() + { + return true; + } + + /// + /// Raised before the named solution is imported to allow for any configuration settings to be made to the import process + /// + /// + /// name of the solution about to be imported + /// Value of this field from the solution configuration entry + /// Value of this field from the solution configuration entry + /// If set to true, imports the Solution with Override Customizations enabled + /// If set to true, attempts to auto publish workflows and activities as part of solution deployment + public override void PreSolutionImport(string solutionName, bool solutionOverwriteUnmanagedCustomizations, bool solutionPublishWorkflowsAndActivatePlugins, out bool overwriteUnmanagedCustomizations, out bool publishWorkflowsAndActivatePlugins) + { + base.PreSolutionImport(solutionName, solutionOverwriteUnmanagedCustomizations, solutionPublishWorkflowsAndActivatePlugins, out overwriteUnmanagedCustomizations, out publishWorkflowsAndActivatePlugins); + } + + /// + /// Called during a solution upgrade when both solutions, old and new, are present in the system. + /// This function can be used to provide a means to do data transformation or upgrade while a solution update is occurring. + /// + /// + /// Name of the solution + /// version number of the old solution + /// Version number of the new solution + /// Solution ID of the old solution + /// Solution ID of the new solution + public override void RunSolutionUpgradeMigrationStep(string solutionName, string oldVersion, string newVersion, Guid oldSolutionId, Guid newSolutionId) + { + base.RunSolutionUpgradeMigrationStep(solutionName, oldVersion, newVersion, oldSolutionId, newSolutionId); + } + + /// + /// Called After all Import steps are complete, allowing for final customizations or tweaking of the instance. + /// + /// + /// + public override bool AfterPrimaryImport() + { + return true; + } + } +} diff --git a/DeploymentPackages/mpa_HardwareRequestAndManagement/PkgAssets/ImportConfig.xml b/DeploymentPackages/mpa_HardwareRequestAndManagement/PkgAssets/ImportConfig.xml new file mode 100644 index 00000000..866e9f65 --- /dev/null +++ b/DeploymentPackages/mpa_HardwareRequestAndManagement/PkgAssets/ImportConfig.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/DeploymentPackages/mpa_HardwareRequestAndManagement/PkgAssets/manifest.ppkg.json b/DeploymentPackages/mpa_HardwareRequestAndManagement/PkgAssets/manifest.ppkg.json new file mode 100644 index 00000000..874e444a --- /dev/null +++ b/DeploymentPackages/mpa_HardwareRequestAndManagement/PkgAssets/manifest.ppkg.json @@ -0,0 +1,4 @@ +// Note: comments are removed at build time. +{ + "SchemaVersion": "1.0" +} \ No newline at end of file diff --git a/DeploymentPackages/mpa_HardwareRequestAndManagement/mpa_HardwareRequestAndManagement.csproj b/DeploymentPackages/mpa_HardwareRequestAndManagement/mpa_HardwareRequestAndManagement.csproj new file mode 100644 index 00000000..29e3bb42 --- /dev/null +++ b/DeploymentPackages/mpa_HardwareRequestAndManagement/mpa_HardwareRequestAndManagement.csproj @@ -0,0 +1,23 @@ + + + net472 + mpa_HardwareRequestAndManagement + mpa_HardwareRequestAndManagement + Copyright © 2023 + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + +