Skip to content

Commit

Permalink
Merge pull request #28 from microsoft/users/ryanb58/adding-awards-and…
Browse files Browse the repository at this point in the history
…-recognition-app

Added mpa_AwardsAndRecognition App
  • Loading branch information
Ryanb58 committed Aug 4, 2023
2 parents 7ad50c0 + c0bc8f4 commit d2f3ca1
Show file tree
Hide file tree
Showing 327 changed files with 150,698 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<configdatastorage installsampledata="false" waitforsampledatatoinstall="true" crmmigdataimportfile="">
<solutions>
<configsolutionfile solutionpackagefilename="mpa_EmployeeExperienceBase_managed.zip" publishworkflowsandactivateplugins="true" />
<configsolutionfile solutionpackagefilename="mpa_AwardsAndRecognition_managed.zip" publishworkflowsandactivateplugins="true" />
</solutions>
<externalpackages />
<filestoimport />
<filesmapstoimport />
<cmtdatafiles />
</configdatastorage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"SchemaVersion": "1.0",
"solutionParameters": {
"mpa_EmployeeExperienceBase": {
"components": []
},
"mpa_AwardsAndRecognition": {
"components": [
{
"ComponentName": "",
"ComponentTypeName": "connectionreference",
"Attributes": {
"Count": 4,
"Keys": [
"connectionreferencelogicalname",
"connectionreferencedisplayname",
"description",
"connectorid"
],
"Values": [
"mpa_EmployeeRecognition_Dataverse",
"EmployeeRecognition_Dataverse",
null,
"/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
]
}
}
]
}
}
}
23 changes: 23 additions & 0 deletions AppSourcePackages/mpa_AwardsAndRecognition/TermsOfUse.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!-- Copyright (c) Microsoft Corporation.
Licensed under the MIT License. -->
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
16 changes: 16 additions & 0 deletions AppSourcePackages/mpa_AwardsAndRecognition/[Content_Types].xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
<Default Extension="xml" ContentType="application/octet-stream" />
<Default Extension="xaml" ContentType="application/octet-stream" />
<Default Extension="dll" ContentType="application/octet-stream" />
<Default Extension="zip" ContentType="application/octet-stream" />
<Default Extension="jpg" ContentType="application/octet-stream" />
<Default Extension="gif" ContentType="application/octet-stream" />
<Default Extension="png" ContentType="application/octet-stream" />
<Default Extension="htm" ContentType="application/octet-stream" />
<Default Extension="html" ContentType="application/octet-stream" />
<Default Extension="db" ContentType="application/octet-stream" />
<Default Extension="css" ContentType="application/octet-stream" />
<Default Extension="json" ContentType="application/octet-stream" />
<Default Extension="msapp" ContentType="application/octet-stream" />
</Types>
18 changes: 18 additions & 0 deletions AppSourcePackages/mpa_AwardsAndRecognition/input.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<PvsPackageData>
<ProviderName>Microsoft</ProviderName>
<PackageFile>package.zip</PackageFile>
<SolutionAnchorName>mpa_AwardsAndRecognition_managed.zip</SolutionAnchorName>
<StartDate>01/01/2019</StartDate>
<EndDate>01/01/2050</EndDate>
<SupportedCountries>US,CA</SupportedCountries>
<LearnMoreLink>https://aka.ms/LearnAwardsAndRecognitionTemplate</LearnMoreLink>
<Locales>
<PackageLocale Code="1033" IsDefault="true">
<Logo>logo32x32.png</Logo>
<Terms>
<PackageTerm File="TermsOfUse.html" />
</Terms>
</PackageLocale>
</Locales>
</PvsPackageData>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
using System;
using System.ComponentModel.Composition;
using Microsoft.Xrm.Tooling.PackageDeployment.CrmPackageExtentionBase;

namespace mpa_AwardsAndRecognition
{
/// <summary>
/// Import package starter frame.
/// </summary>
[Export(typeof(IImportExtensions))]
public class PackageImportExtension : ImportExtension
{
#region Metadata

/// <summary>
/// Folder name where package assets are located in the final output package zip.
/// </summary>
public override string GetImportPackageDataFolderName => "PkgAssets";

/// <summary>
/// Name of the Import Package to Use
/// </summary>
/// <param name="plural">if true, return plural version</param>
public override string GetNameOfImport(bool plural) => "mpa_AwardsAndRecognition";

/// <summary>
/// Long name of the Import Package.
/// </summary>
public override string GetLongNameOfImport => "mpa_AwardsAndRecognition";

/// <summary>
/// Description of the package, used in the package selection UI
/// </summary>
public override string GetImportPackageDescriptionText => "mpa_AwardsAndRecognition";

#endregion

/// <summary>
/// Called to Initialize any functions in the Custom Extension.
/// </summary>
/// <see cref="ImportExtension.InitializeCustomExtension"/>
public override void InitializeCustomExtension()
{
}

/// <summary>
/// Called before the Main Import process begins, after solutions and data.
/// </summary>
/// <see cref="ImportExtension.BeforeImportStage"/>
/// <returns></returns>
public override bool BeforeImportStage()
{
return true;
}

/// <summary>
/// Raised before the named solution is imported to allow for any configuration settings to be made to the import process
/// </summary>
/// <see cref="ImportExtension.PreSolutionImport"/>
/// <param name="solutionName">name of the solution about to be imported</param>
/// <param name="solutionOverwriteUnmanagedCustomizations">Value of this field from the solution configuration entry</param>
/// <param name="solutionPublishWorkflowsAndActivatePlugins">Value of this field from the solution configuration entry</param>
/// <param name="overwriteUnmanagedCustomizations">If set to true, imports the Solution with Override Customizations enabled</param>
/// <param name="publishWorkflowsAndActivatePlugins">If set to true, attempts to auto publish workflows and activities as part of solution deployment</param>
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);
}

/// <summary>
/// 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.
/// </summary>
/// <see cref="ImportExtension.RunSolutionUpgradeMigrationStep"/>
/// <param name="solutionName">Name of the solution</param>
/// <param name="oldVersion">version number of the old solution</param>
/// <param name="newVersion">Version number of the new solution</param>
/// <param name="oldSolutionId">Solution ID of the old solution</param>
/// <param name="newSolutionId">Solution ID of the new solution</param>
public override void RunSolutionUpgradeMigrationStep(string solutionName, string oldVersion, string newVersion, Guid oldSolutionId, Guid newSolutionId)
{
base.RunSolutionUpgradeMigrationStep(solutionName, oldVersion, newVersion, oldSolutionId, newSolutionId);
}

/// <summary>
/// Called After all Import steps are complete, allowing for final customizations or tweaking of the instance.
/// </summary>
/// <see cref="ImportExtension.AfterPrimaryImport"/>
/// <returns></returns>
public override bool AfterPrimaryImport()
{
return true;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
More information about ImportConfig.xml file
https://docs.microsoft.com/en-us/power-platform/alm/package-deployer-tool
Common attributes on the root element:
- installsampledata (bool)
- waitforsampledatatoinstall (bool)
- agentdesktopzipfile (string)
- agentdesktopexename (string)
- crmmigdataimportfile (string)
-->
<configdatastorage installsampledata="false" waitforsampledatatoinstall="true">
<solutions>
<!--
Solutions to import
This section will be populated by default at build time and is populated with the solutions specified in the project via:
- ProjectReference, where the project is a Dataverse Solution project (e.g. *.cdsproj)
- PpSolution, explicitly added loose zip file of a solution.
The order of these elements is significant as it indicates the order in which solutions will be installed into the environment.
<configsolutionfile solutionpackagefilename="solutionFile.zip" />
-->
</solutions>
<filestoimport>
<!--
Contains an array of <configimportfile> and <zipimportdetails> nodes that are used to describe individual files and zip files respectively to be imported.
<configimportfile filename="File.csv" filetype="CSV" associatedmap="" importtoentity="FileEntity" datadelimiter="" fielddelimiter="comma" enableduplicatedetection="true" isfirstrowheader="true" isrecordownerateam="false" owneruser="" waitforimporttocomplete="true"/>
<configimportfile filename="File.zip" filetype="ZIP" associatedmap="ZipFileMap" importtoentity="FileEntity" datadelimiter="" fielddelimiter="comma" enableduplicatedetection="true" isfirstrowheader="true" isrecordownerateam="false" owneruser="" waitforimporttocomplete="true"/>
<zipimportdetails>
<zipimportdetail filename="subfile1.csv" filetype="csv" importtoentity="account" />
<zipimportdetail filename="subfile2.txt" filetype="csv" importtoentity="contact" />
</zipimportdetails>
-->
</filestoimport>
<filesmapstoimport>
<!--
<configimportmapfile filename="FileMap.xml" />
<configimportmapfile filename="ZipFileMap.xml" />
-->
</filesmapstoimport>
</configdatastorage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Note: comments are removed at build time.
{
"SchemaVersion": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<AssemblyTitle>mpa_AwardsAndRecognition</AssemblyTitle>
<Product>mpa_AwardsAndRecognition</Product>
<Copyright>Copyright © 2023</Copyright>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.PowerApps.MSBuild.PDPackage" Version="1.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CrmSdk.XrmTooling.CoreAssembly" Version="9.1.0.79" PrivateAssets="all" />
<PackageReference Include="Microsoft.CrmSdk.XrmTooling.PackageDeployment" Version="9.1.0.74" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.ComponentModel.Composition" />
</ItemGroup>
<ItemGroup>
<PdSolution Include="..\..\Solutions\mpa_EmployeeExperienceBase\bin\Release\mpa_EmployeeExperienceBase_managed.zip" />
<PdSolution Include="..\..\Solutions\mpa_AwardsAndRecognition\bin\Release\mpa_AwardsAndRecognition_managed.zip" />
</ItemGroup>
</Project>
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,24 @@ This solution allows you to extend your core procure-to-pay business processes e

Enables individual teammates to celebrate co-workers for their contributions. There are many more exciting solutions on the roadmap such as Awards & Recognitions which enables employees to nominate individuals & teams for awards and Employee Onboarding which partners new employees with current employees and mentors to facilitate new employee onboarding, especially in a hybrid work environment. All with easy to use interface with data stored in Microsoft Dataverse. Available for both web and mobile devices.

### Employee Awards and Recognition

The Awards and Recognition template streamlines and automates the process of acknowledging outstanding efforts in an organization. By facilitating an engaging, inclusive, and efficient awards system, the app aims to encourage a positive work culture that recognizes and appreciates exceptional contributions

## Access on AppSource

#### [Employee Kudos Template on AppSource](https://aka.ms/AccessEmployeeKudosTemplate)

#### [Employee Awards and Recognition](https://aka.ms/AccessAwardsAndRecognitionTemplate)

#### [SAP Procurement Template on AppSource](https://aka.ms/AccessSAPProcurementTemplate)

## Documentation

#### [Employee Kudos Template](https://aka.ms/LearnEmployeeKudosTemplate)

#### [Employee Awards and Recognition](https://aka.ms/LearnAwardsAndRecognitionTemplate)

#### [SAP Procurement Template](https://aka.ms/LearnSAPProcurementTemplate)

#### [General Documenatation](https://aka.ms/LearnTemplatesForPowerPlatform)
Expand Down
8 changes: 8 additions & 0 deletions Solutions/mpa_AwardsAndRecognition/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# msbuild output directories
/bin
/obj

# MSBuild Binary and Structured Log
*.binlog
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PowerAppsTargetsPath>$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\PowerApps</PowerAppsTargetsPath>
</PropertyGroup>

<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
<Import Project="$(PowerAppsTargetsPath)\Microsoft.PowerApps.VisualStudio.Solution.props" Condition="Exists('$(PowerAppsTargetsPath)\Microsoft.PowerApps.VisualStudio.Solution.props')" />

<PropertyGroup>
<ProjectGuid>e64ea665-cc7e-4fa8-bcfe-6efe74f41706</ProjectGuid>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<!--Remove TargetFramework when this is available in 16.1-->
<TargetFramework>net462</TargetFramework>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<SolutionRootPath>src</SolutionRootPath>
</PropertyGroup>

<!--
Solution Packager overrides, un-comment to use: SolutionPackagerType (Managed, Unmanaged, Both)
Solution Localization Control, if you want to enabled localization of your solution, un-comment SolutionPackageEnableLocalization and set the value to true. - Requires use of -loc flag on Solution Clone or Sync
-->

<PropertyGroup>
<SolutionPackageType>Both</SolutionPackageType>
<SolutionPackageEnableLocalization>false</SolutionPackageEnableLocalization>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.PowerApps.MSBuild.Solution" Version="1.*" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<ExcludeDirectories Include="$(MSBuildThisFileDirectory)\.gitignore" />
<ExcludeDirectories Include="$(MSBuildThisFileDirectory)\bin\**" />
<ExcludeDirectories Include="$(MSBuildThisFileDirectory)\obj\**" />
<ExcludeDirectories Include="$(MSBuildThisFileDirectory)\*.cdsproj" />
<ExcludeDirectories Include="$(MSBuildThisFileDirectory)\*.cdsproj.user" />
<ExcludeDirectories Include="$(MSBuildThisFileDirectory)\*.sln" />
</ItemGroup>

<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\**" Exclude="@(ExcludeDirectories)" />
<Content Include="$(SolutionPackageZipFilePath)">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
<Import Project="$(PowerAppsTargetsPath)\Microsoft.PowerApps.VisualStudio.Solution.targets" Condition="Exists('$(PowerAppsTargetsPath)\Microsoft.PowerApps.VisualStudio.Solution.targets')" />

</Project>
Loading

0 comments on commit d2f3ca1

Please sign in to comment.