Skip to content

Commit

Permalink
Merge pull request #39 from microsoft/users/tbrazelton/add-onboarding…
Browse files Browse the repository at this point in the history
…-buddy-solution

Added onboarding buddy solution
  • Loading branch information
Ryanb58 committed Sep 29, 2023
2 parents 1aff94f + ce25e33 commit 9b6be50
Show file tree
Hide file tree
Showing 222 changed files with 162,942 additions and 0 deletions.
23 changes: 23 additions & 0 deletions AppSourcePackages/mpa_OnboardingBuddy/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_OnboardingBuddy/[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_OnboardingBuddy/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_OnboardingBuddy_managed.zip</SolutionAnchorName>
<StartDate>01/01/2019</StartDate>
<EndDate>01/01/2050</EndDate>
<SupportedCountries>US,CA</SupportedCountries>
<LearnMoreLink>https://aka.ms/LearnOnboardingBuddyTemplate</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.
95 changes: 95 additions & 0 deletions DeploymentPackages/mpa_OnboardingBuddy/PackageImportExtension.cs
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_OnboardingBuddy
{
/// <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_OnboardingBuddy";

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

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

#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;
}
}
}
45 changes: 45 additions & 0 deletions DeploymentPackages/mpa_OnboardingBuddy/PkgAssets/ImportConfig.xml
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"
}
23 changes: 23 additions & 0 deletions DeploymentPackages/mpa_OnboardingBuddy/mpa_OnboardingBuddy.csproj
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_OnboardingBuddy</AssemblyTitle>
<Product>mpa_OnboardingBuddy</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_OnboardingBuddy\bin\Release\mpa_OnboardingBuddy_managed.zip" />
</ItemGroup>
</Project>
8 changes: 8 additions & 0 deletions Solutions/mpa_OnboardingBuddy/.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
53 changes: 53 additions & 0 deletions Solutions/mpa_OnboardingBuddy/mpa_OnboardingBuddy.cdsproj
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>09c8b6ba-93d6-4707-86e3-12ab2faadd19</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>
</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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<AppModuleSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SiteMapUniqueName>mpa_OnboardingBuddyAdmin</SiteMapUniqueName>
<EnableCollapsibleGroups>False</EnableCollapsibleGroups>
<ShowHome>True</ShowHome>
<ShowPinned>True</ShowPinned>
<ShowRecents>True</ShowRecents>
<SiteMap IntroducedVersion="7.0.0.0">
<Area Id="area_be009bac" ResourceId="SitemapDesigner.NewTitle" DescriptionResourceId="SitemapDesigner.NewTitle" ShowGroups="true" IntroducedVersion="7.0.0.0">
<Titles>
<Title LCID="1033" Title="Area1" />
</Titles>
<Group Id="group_472fa41f" ResourceId="SitemapDesigner.NewGroup" DescriptionResourceId="SitemapDesigner.NewGroup" IntroducedVersion="7.0.0.0" IsProfile="false" ToolTipResourseId="SitemapDesigner.Unknown">
<Titles>
<Title LCID="1033" Title="Onboarding" />
</Titles>
<SubArea Id="subarea_672d42e4" VectorIcon="/WebResources/mpa_onboarders_svg" Icon="/WebResources/mpa_onboarders_svg" Entity="mpa_onboarders" Client="All,Outlook,OutlookLaptopClient,OutlookWorkstationClient,Web" AvailableOffline="true" PassParams="false" Sku="All,OnPremise,Live,SPLA" />
<SubArea Id="subarea_6544e061" VectorIcon="/WebResources/mpa_buddylist_svg" Icon="/WebResources/mpa_buddylist_svg" Entity="mpa_buddylist" Client="All,Outlook,OutlookLaptopClient,OutlookWorkstationClient,Web" AvailableOffline="true" PassParams="false" Sku="All,OnPremise,Live,SPLA" />
</Group>
<Group Id="NewGroup_0b216f5b" ResourceId="SitemapDesigner.NewGroup" IsProfile="false" ToolTipResourseId="SitemapDesigner.Unknown">
<Titles>
<Title LCID="1033" Title="Settings" />
</Titles>
<SubArea Id="subarea_a95cd579" VectorIcon="/WebResources/mpa_configuration_svg" Icon="/WebResources/mpa_configuration_svg" Entity="mpa_configuration" Client="All,Outlook,OutlookLaptopClient,OutlookWorkstationClient,Web" AvailableOffline="true" PassParams="false" Sku="All,OnPremise,Live,SPLA" />
<SubArea Id="subarea_6c815e1f" Entity="mpa_eelocalization" Client="All,Outlook,OutlookLaptopClient,OutlookWorkstationClient,Web" AvailableOffline="true" PassParams="false" Sku="All,OnPremise,Live,SPLA" />
</Group>
</Area>
</SiteMap>
<LocalizedNames>
<LocalizedName description="Onboarding Buddy Admin" languagecode="1033" />
</LocalizedNames>
</AppModuleSiteMap>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<AppModuleSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SiteMapUniqueName>mpa_OnboardingBuddyAdmin</SiteMapUniqueName>
<EnableCollapsibleGroups>False</EnableCollapsibleGroups>
<ShowHome>True</ShowHome>
<ShowPinned>True</ShowPinned>
<ShowRecents>True</ShowRecents>
<SiteMap IntroducedVersion="7.0.0.0">
<Area Id="area_be009bac" ResourceId="SitemapDesigner.NewTitle" DescriptionResourceId="SitemapDesigner.NewTitle" ShowGroups="true" IntroducedVersion="7.0.0.0">
<Titles>
<Title LCID="1033" Title="Area1" />
</Titles>
<Group Id="group_472fa41f" ResourceId="SitemapDesigner.NewGroup" DescriptionResourceId="SitemapDesigner.NewGroup" IntroducedVersion="7.0.0.0" IsProfile="false" ToolTipResourseId="SitemapDesigner.Unknown">
<Titles>
<Title LCID="1033" Title="Onboarding" />
</Titles>
<SubArea Id="subarea_672d42e4" VectorIcon="/WebResources/mpa_onboarders_svg" Icon="/WebResources/mpa_onboarders_svg" Entity="mpa_onboarders" Client="All,Outlook,OutlookLaptopClient,OutlookWorkstationClient,Web" AvailableOffline="true" PassParams="false" Sku="All,OnPremise,Live,SPLA" />
<SubArea Id="subarea_6544e061" VectorIcon="/WebResources/mpa_buddylist_svg" Icon="/WebResources/mpa_buddylist_svg" Entity="mpa_buddylist" Client="All,Outlook,OutlookLaptopClient,OutlookWorkstationClient,Web" AvailableOffline="true" PassParams="false" Sku="All,OnPremise,Live,SPLA" />
</Group>
<Group Id="NewGroup_0b216f5b" ResourceId="SitemapDesigner.NewGroup" IsProfile="false" ToolTipResourseId="SitemapDesigner.Unknown">
<Titles>
<Title LCID="1033" Title="Settings" />
</Titles>
<SubArea Id="subarea_a95cd579" VectorIcon="/WebResources/mpa_configuration_svg" Icon="/WebResources/mpa_configuration_svg" Entity="mpa_configuration" Client="All,Outlook,OutlookLaptopClient,OutlookWorkstationClient,Web" AvailableOffline="true" PassParams="false" Sku="All,OnPremise,Live,SPLA" />
<SubArea Id="subarea_6c815e1f" Entity="mpa_eelocalization" Client="All,Outlook,OutlookLaptopClient,OutlookWorkstationClient,Web" AvailableOffline="true" PassParams="false" Sku="All,OnPremise,Live,SPLA" />
</Group>
</Area>
</SiteMap>
<LocalizedNames>
<LocalizedName description="Onboarding Buddy Admin" languagecode="1033" />
</LocalizedNames>
</AppModuleSiteMap>
Loading

0 comments on commit 9b6be50

Please sign in to comment.