Compare commits

..

10 Commits

Author SHA1 Message Date
Claudio Boggian ebffb151cb Fix manifest 2024-11-22 14:49:59 +01:00
Claudio Boggian 24f0943b4d issue for test and deploy 2024-11-22 13:32:55 +01:00
Davide Conforti 013b11ab87 Changed app GUID 2024-06-28 11:18:03 +02:00
Davide Conforti 11884931cc typo fix 2024-06-26 17:59:21 +02:00
Davide Conforti c54bd7d6b2 typo fix 2024-06-26 17:58:05 +02:00
Davide Conforti f560a84cb2 bugfix 2024-06-26 17:54:50 +02:00
Davide Conforti 45f691547b Changed main group name and description 2024-06-26 17:53:17 +02:00
Claudio Boggian 532f6bb531 define resources on azure 2024-06-26 17:47:42 +02:00
Claudio Boggian 858b97502a Change btn name 2024-06-26 09:12:37 +02:00
Claudio Boggian b8c7f45981 FIle refactor and define component description 2024-06-26 09:08:44 +02:00
26 changed files with 373 additions and 184 deletions
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.OfficeApp" DefaultFile="outllook_pal_tools.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="AppPackage" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="outllook_pal_tools.xml" Type="AppPackage" />
</Files>
<ExtensionData>
<ExtensionDataItem Key="OfficeAppManifestRelativePath" Value="outllook_pal_toolsManifest\outllook_pal_tools.xml" />
</ExtensionData>
</ProjectItem>
@@ -1,151 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Created:ce44715c-8c4e-446b-879c-ea9ebe0f09c8-->
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
xsi:type="MailApp">
<!-- Inizio Impostazioni di base: metadati del componente aggiuntivo, usati per tutte le versioni di Office a meno che non venga specificato un override. -->
<!-- IMPORTANTE: l'ID deve essere univoco per il componente aggiuntivo. Se si riutilizza questo manifesto, assicurarsi di cambiare l'ID specificando un nuovo GUID. -->
<Id>7badd9f2-c760-4498-acbf-059760660dd9</Id>
<!--Versione. Gli aggiornamenti dallo Store vengono attivati solo in caso di modifica della versione. -->
<Version>1.0.0.17</Version>
<ProviderName>PAL s.r.l.</ProviderName>
<DefaultLocale>it-IT</DefaultLocale>
<!-- Nome visualizzato del componente aggiuntivo. Viene usato nello Store e in altri punti dell'interfaccia utente di Office, come la finestra di dialogo dei componenti aggiuntivi. -->
<DisplayName DefaultValue="Inserisci invito" />
<Description DefaultValue="Inserisci invito"/>
<IconUrl DefaultValue="~remoteAppUrl/Images/Icon64.png"/>
<SupportUrl DefaultValue="http://www.contoso.com" />
<!-- Domini che saranno consentiti durante gli spostamenti. Se ad esempio si usa ShowTaskpane ed è presente un collegamento href, gli spostamenti saranno consentiti solo se il dominio è incluso nell'elenco. -->
<AppDomains>
<AppDomain>AppDomain1</AppDomain>
<AppDomain>AppDomain2</AppDomain>
<AppDomain>AppDomain3</AppDomain>
</AppDomains>
<!--Fine Impostazioni di base. -->
<Hosts>
<Host Name="Mailbox"/>
</Hosts>
<Requirements>
<Sets>
<Set Name="Mailbox" MinVersion="1.1"/>
</Sets>
</Requirements>
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="~remoteAppUrl/Functions/Commands.html"/>
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
</FormSettings>
<Permissions>ReadWriteItem</Permissions>
<Rule xsi:type="RuleCollection" Mode="Or">
<Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit"/>
<Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
</Rule>
<DisableEntityHighlighting>false</DisableEntityHighlighting>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
<Requirements>
<bt:Sets DefaultMinVersion="1.3">
<bt:Set Name="Mailbox"/>
</bt:Sets>
</Requirements>
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="Commands.Url"/>
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<OfficeTab id="TabHome">
<Group id="PAL.Group1">
<Label resid="PAL.Group1Label" />
<Control xsi:type="Menu" id="PAL.Menu">
<Label resid="PAL.Menu.Label" />
<Supertip>
<Title resid="PAL.Menu.Label" />
<Description resid="PAL.Menu.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.tpicon_16x16" />
<bt:Image size="32" resid="PAL.tpicon_32x32" />
<bt:Image size="80" resid="PAL.tpicon_80x80" />
</Icon>
<Items>
<Item id="itemExecuteFunctionItalian">
<Label resid="PAL.Item2.LabelIta"/>
<Supertip>
<Title resid="PAL.Item2.LabelIta" />
<Description resid="PAL.Item2.TooltipIta" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.flag_it_16x16" />
<bt:Image size="32" resid="PAL.flag_it_32x32" />
<bt:Image size="80" resid="PAL.flag_it_80x80" />
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>writeInviteIta</FunctionName>
</Action>
</Item>
<Item id="itemExecuteFunctionEnglish">
<Label resid="PAL.Item2.LabelEng"/>
<Supertip>
<Title resid="PAL.Item2.LabelEng" />
<Description resid="PAL.Item2.TooltipEng" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.flag_en_16x16" />
<bt:Image size="32" resid="PAL.flag_en_32x32" />
<bt:Image size="80" resid="PAL.flag_en_80x80" />
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>writeInviteEng</FunctionName>
</Action>
</Item>
</Items>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="PAL.tpicon_16x16" DefaultValue="~remoteAppUrl/Images/Icon16.png" />
<bt:Image id="PAL.tpicon_32x32" DefaultValue="~remoteAppUrl/Images/Icon32.png" />
<bt:Image id="PAL.tpicon_80x80" DefaultValue="~remoteAppUrl/Images/Icon80.png" />
<bt:Image id="PAL.flag_it_16x16" DefaultValue="~remoteAppUrl/Images/Flag_It_Icon16.png" />
<bt:Image id="PAL.flag_it_32x32" DefaultValue="~remoteAppUrl/Images/Flag_It_Icon32.png" />
<bt:Image id="PAL.flag_it_80x80" DefaultValue="~remoteAppUrl/Images/Flag_It_Icon80.png" />
<bt:Image id="PAL.flag_en_16x16" DefaultValue="~remoteAppUrl/Images/Flag_En_Icon16.png" />
<bt:Image id="PAL.flag_en_32x32" DefaultValue="~remoteAppUrl/Images/Flag_En_Icon32.png" />
<bt:Image id="PAL.flag_en_80x80" DefaultValue="~remoteAppUrl/Images/Flag_En_Icon80.png" />
</bt:Images>
<bt:Urls>
<bt:Url id="Commands.Url" DefaultValue="~remoteAppUrl/Functions/Commands.html" />
</bt:Urls>
<!-- ShortStrings max characters==125. -->
<bt:ShortStrings>
<bt:String id="PAL.Item2.LabelIta" DefaultValue="Italano" />
<bt:String id="PAL.Item2.LabelEng" DefaultValue="Inglese" />
<bt:String id="PAL.Menu.Label" DefaultValue="Inserisci invito" />
<bt:String id="PAL.Group1Label" DefaultValue="Strumenti PAL" />
</bt:ShortStrings>
<!-- LongStrings max characters==250. -->
<bt:LongStrings>
<bt:String id="PAL.Item2.TooltipIta" DefaultValue="Inserisci l'invito in Italiano" />
<bt:String id="PAL.Item2.TooltipEng" DefaultValue="Inserisci l'invito in Inglese" />
<bt:String id="PAL.Menu.Tooltip" DefaultValue="Inserisci l'invito alla registrazione al portale visitatori." />
</bt:LongStrings>
</Resources>
</VersionOverrides>
</OfficeApp>
@@ -42,17 +42,17 @@
<UseVSHostingProcess>false</UseVSHostingProcess> <UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<None Include="outllook_pal_toolsManifest\SharePointProjectItem.spdata"> <None Include="outlook_pal_toolsManifest\SharePointProjectItem.spdata">
<SharePointProjectItemId>{672beda2-fa38-41a5-8d4b-0785f387f99e}</SharePointProjectItemId> <SharePointProjectItemId>{672beda2-fa38-41a5-8d4b-0785f387f99e}</SharePointProjectItemId>
</None> </None>
<Content Include="outllook_pal_toolsManifest\outllook_pal_tools.xml"> <Content Include="outlook_pal_toolsManifest\outlook_pal_tools.xml">
<OpcRelationship>manifest-oemanifest</OpcRelationship> <OpcRelationship>manifest-oemanifest</OpcRelationship>
</Content> </Content>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\outllook_pal_toolsWeb\outllook_pal_toolsWeb.csproj"> <ProjectReference Include="..\outllook_pal_toolsWeb\outlook_pal_toolsWeb.csproj">
<Project>{DC7C0C39-50B1-4980-9822-DB69813EC7C1}</Project> <Project>{93C73AFD-B62D-4C2C-BBDC-ADF2BC50DAC5}</Project>
<Name>outllook_pal_toolsWeb</Name> <Name>outlook_pal_toolsWeb</Name>
<Private>True</Private> <Private>True</Private>
<RoleType>Web</RoleType> <RoleType>Web</RoleType>
<OutputItemType>SharePointWebProjectOutput</OutputItemType> <OutputItemType>SharePointWebProjectOutput</OutputItemType>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.OfficeApp" DefaultFile="outlook_pal_tools.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="AppPackage" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="outlook_pal_tools.xml" Type="AppPackage" />
</Files>
<ExtensionData>
<ExtensionDataItem Key="OfficeAppManifestRelativePath" Value="outlook_pal_toolsManifest\outlook_pal_tools.xml" />
</ExtensionData>
</ProjectItem>
@@ -0,0 +1,217 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Created:ce44715c-8c4e-446b-879c-ea9ebe0f09c8-->
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
xsi:type="MailApp">
<!-- Inizio Impostazioni di base: metadati del componente aggiuntivo, usati per tutte le versioni di Office a meno che non venga specificato un override. -->
<!-- IMPORTANTE: l'ID deve essere univoco per il componente aggiuntivo. Se si riutilizza questo manifesto, assicurarsi di cambiare l'ID specificando un nuovo GUID. -->
<Id>7badd9f2-c760-4498-acbf-059720660dd9</Id>
<!--Versione. Gli aggiornamenti dallo Store vengono attivati solo in caso di modifica della versione. -->
<Version>1.0.0.22</Version>
<ProviderName>PAL s.r.l.</ProviderName>
<DefaultLocale>it-IT</DefaultLocale>
<!-- Nome visualizzato del componente aggiuntivo. Viene usato nello Store e in altri punti dell'interfaccia utente di Office, come la finestra di dialogo dei componenti aggiuntivi. -->
<DisplayName DefaultValue="PAL" />
<Description DefaultValue="Strumento PAL per gestire custom proprietarie"/>
<IconUrl DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/App_64.png"/>
<HighResolutionIconUrl DefaultValue="https://paltestapp.azurewebsites.net/res/OutlookAddin/Images/App_128.png"/>
<SupportUrl DefaultValue="https://www.imalpal.com/" />
<Hosts>
<Host Name="Mailbox"/>
</Hosts>
<Requirements>
<Sets>
<Set Name="Mailbox" MinVersion="1.1"/>
</Sets>
</Requirements>
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="https://clportal.pal.it/res/OutlookAddin/Functions/reginv.html"/>
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
</FormSettings>
<Permissions>ReadWriteItem</Permissions>
<Rule xsi:type="RuleCollection" Mode="Or">
<Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit"/>
<Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
</Rule>
<DisableEntityHighlighting>false</DisableEntityHighlighting>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
<Requirements>
<bt:Sets DefaultMinVersion="1.3">
<bt:Set Name="Mailbox"/>
</bt:Sets>
</Requirements>
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="Commands.Url"/>
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<OfficeTab id="TabHome">
<Group id="PAL.Group1">
<Label resid="PAL.Group1Label" />
<Control xsi:type="Menu" id="PAL.Menu">
<Label resid="PAL.Menu.Label" />
<Supertip>
<Title resid="PAL.Menu.Label" />
<Description resid="PAL.Menu.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.tpicon_16x16" />
<bt:Image size="32" resid="PAL.tpicon_32x32" />
<bt:Image size="80" resid="PAL.tpicon_80x80" />
</Icon>
<Items>
<Item id="itemExecuteFunctionItalian">
<Label resid="PAL.Item2.LabelIta"/>
<Supertip>
<Title resid="PAL.Item2.LabelIta" />
<Description resid="PAL.Item2.TooltipIta" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.flag_it_16x16" />
<bt:Image size="32" resid="PAL.flag_it_32x32" />
<bt:Image size="80" resid="PAL.flag_it_80x80" />
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>writeInviteIta</FunctionName>
</Action>
</Item>
<Item id="itemExecuteFunctionEnglish">
<Label resid="PAL.Item2.LabelEng"/>
<Supertip>
<Title resid="PAL.Item2.LabelEng" />
<Description resid="PAL.Item2.TooltipEng" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.flag_en_16x16" />
<bt:Image size="32" resid="PAL.flag_en_32x32" />
<bt:Image size="80" resid="PAL.flag_en_80x80" />
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>writeInviteEng</FunctionName>
</Action>
</Item>
</Items>
</Control>
<Control xsi:type="Menu" id="PAL.Menu2">
<Label resid="PAL.Menu2.Label" />
<Supertip>
<Title resid="PAL.Menu2.Label" />
<Description resid="PAL.Menu2.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.tpicon_16x16" />
<bt:Image size="32" resid="PAL.tpicon_32x32" />
<bt:Image size="80" resid="PAL.tpicon_80x80" />
</Icon>
<Items>
<Item id="itemExecuteFunctionItalian2">
<Label resid="PAL.Item2.LabelIta"/>
<Supertip>
<Title resid="PAL.Item2.LabelIta" />
<Description resid="PAL.Item2.TooltipIta" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.flag_it_16x16" />
<bt:Image size="32" resid="PAL.flag_it_32x32" />
<bt:Image size="80" resid="PAL.flag_it_80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneSEA.Url"/>
</Action>
</Item>
</Items>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<OfficeTab id="TabHome">
<Group id="PAL.Group2">
<Label resid="PAL.Group1Label" />
<Control xsi:type="Menu" id="PAL.Menu3">
<Label resid="PAL.Menu2.Label" />
<Supertip>
<Title resid="PAL.Menu2.Label" />
<Description resid="PAL.Menu2.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.tpicon_16x16" />
<bt:Image size="32" resid="PAL.tpicon_32x32" />
<bt:Image size="80" resid="PAL.tpicon_80x80" />
</Icon>
<Items>
<Item id="itemExecuteFunctionItalian2">
<Label resid="PAL.Item2.LabelIta"/>
<Supertip>
<Title resid="PAL.Item2.LabelIta" />
<Description resid="PAL.Item2.TooltipIta" />
</Supertip>
<Icon>
<bt:Image size="16" resid="PAL.flag_it_16x16" />
<bt:Image size="32" resid="PAL.flag_it_32x32" />
<bt:Image size="80" resid="PAL.flag_it_80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="TaskpaneSEA.Url"/>
</Action>
</Item>
</Items>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="PAL.tpicon_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/RegInv_16.png" />
<bt:Image id="PAL.tpicon_32x32" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/RegInv_32.png" />
<bt:Image id="PAL.tpicon_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/RegInv_80.png" />
<bt:Image id="PAL.flag_it_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_It_16.png" />
<bt:Image id="PAL.flag_it_32x32" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_It_32.png" />
<bt:Image id="PAL.flag_it_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_It_80.png" />
<bt:Image id="PAL.flag_en_16x16" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_16.png" />
<bt:Image id="PAL.flag_en_32x32" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_32.png" />
<bt:Image id="PAL.flag_en_80x80" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Images/Flag_En_80.png" />
<!--<bt:Image id="PAL.sharepoint_16x16" DefaultValue="~remoteAppUrl/Images/sharepoint_16.png" />
<bt:Image id="PAL.sharepoint_32x32" DefaultValue="~remoteAppUrl/Images/sharepoint_32.png" />
<bt:Image id="PAL.sharepoint_80x80" DefaultValue="~remoteAppUrl/Images/sharepoint_80.png" />-->
</bt:Images>
<bt:Urls>
<bt:Url id="Commands.Url" DefaultValue="https://clportal.pal.it/res/OutlookAddin/Functions/reginv.html" />
<bt:Url id="TaskpaneSEA.Url" DefaultValue="https://paltestapp.azurewebsites.net/res/OutlookAddin/Functions/SEA.html" />
</bt:Urls>
<!-- ShortStrings max characters==125. -->
<bt:ShortStrings>
<bt:String id="PAL.Item2.LabelIta" DefaultValue="Italiano" />
<bt:String id="PAL.Item2.LabelEng" DefaultValue="Inglese" />
<bt:String id="PAL.Menu.Label" DefaultValue="Invito registrazione" />
<bt:String id="PAL.Menu2.Label" DefaultValue="Sharepoint Mail Dragger" />
<bt:String id="PAL.Group1Label" DefaultValue="Strumenti PAL" />
</bt:ShortStrings>
<!-- LongStrings max characters==250. -->
<bt:LongStrings>
<bt:String id="PAL.Item2.TooltipIta" DefaultValue="Inserisci l'invito in italiano" />
<bt:String id="PAL.Item2.TooltipEng" DefaultValue="Inserisci l'invito in inglese" />
<bt:String id="PAL.Menu.Tooltip" DefaultValue="Inserisci l'invito alla registrazione al portale visitatori." />
<bt:String id="PAL.Menu2.Tooltip" DefaultValue="Archivia le mail in sharepoint." />
</bt:LongStrings>
</Resources>
</VersionOverrides>
</OfficeApp>
+53
View File
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<!-- Office JavaScript API -->
<script type="text/javascript" src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js"></script>
<script type="text/javascript" src="SEA.js"></script>
</head>
<body>
<h2>Hello There!</h2>
<p>Click the button below to get the current subject of the email.</p>
<button id="get-subject" onclick="getSubject()">Get Subject</button>
<p id="subject"></p>
<p>Click the button below to get the current body of the email.</p>
<button id="get-body" onclick="getBody()">Get Body</button>
<p id="body"></p>
<p>Click the button below to get the current sender of the email.</p>
<button id="get-sender" onclick="getSender()">Get Sender</button>
<p id="sender"></p>
<p>Click the button below to get the current recipients of the email.</p>
<button id="get-recipients" onclick="getRecipients()">Get Recipients</button>
<p id="recipients"></p>
<p>Click the button below to get the current cc recipients of the email.</p>
<button id="get-cc-recipients" onclick="getCcRecipients()">Get Cc Recipients</button>
<p id="cc-recipients"></p>
<p>Click the button below to get the current bcc recipients of the email.</p>
<button id="get-bcc-recipients" onclick="getBccRecipients()">Get Bcc Recipients</button>
<p id="bcc-recipients"></p>
<p>Click the button below to get the current attachments of the email.</p>
<button id="get-attachments" onclick="getAttachments()">Get Attachments</button>
<p id="attachments"></p>
<p>Click the button below to get the current internet message id of the email.</p>
<button id="get-internet-message-id" onclick="getInternetMessageId()">Get Internet Message Id</button>
<p id="internet-message-id"></p>
<p>Click the button below to get the current conversation id of the email.</p>
<button id="get-conversation-id" onclick="getConversationId()">Get Conversation Id</button>
<p id="conversation-id"></p>
<p>Click the button below to get the current conversation topic of the email.</p>
<button id="get-conversation-topic" onclick="getConversationTopic()">Get Conversation Topic</button>
<p id="conversation-topic"></p>
<p>Click the button below to get the current internet message id of the email.</p>
<button id="get-internet-message-id" onclick="getInternetMessageId()">Get Internet Message Id</button>
<p id="internet-message-id"></p>
<p>Click the button below to get the current internet message id of the email.</p>
<button id="get-internet-message-id" onclick="getInternetMessageId()"/>
</body>
</html>
+70
View File
@@ -0,0 +1,70 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/
/* global global, Office, self, window, Word */
Office.onReady((data) => {
// If needed, Office.js is ready to be called
});
/**
* Shows a notification when the add-in command is executed.
* @param event {Office.AddinCommands.Event}
*/
function showNotification(event) {
const message = {
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
message: "Base command executed",
icon: "Icon.80x80",
persistent: false
};
// Show a notification message
Office.context.mailbox.item.notificationMessages.replaceAsync("action", message);
event.completed();
}
async function writeInviteIta(event) {
Office.context.mailbox.item.body.setSelectedDataAsync(
"<br/><a href=\"https://portal.pal.it/General/VisitorRegistration\">Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.</a><br/>",
{
coercionType: "html",
},
// Callback method to check that setAsync succeeded
function (asyncResult) {
if (asyncResult.status ==
Office.AsyncResultStatus.Failed) {
write(asyncResult.error.message);
}
}
);
event.completed();
}
async function writeInviteEng(event) {
Office.context.mailbox.item.body.setSelectedDataAsync(
"<br/><a href=\"https://portal.pal.it/General/VisitorRegistration\">Register as a visitor to facilitate your entry into PAL s.r.l.</a><br/>",
{
coercionType: "html",
},
// Callback method to check that setAsync succeeded
function (asyncResult) {
if (asyncResult.status ==
Office.AsyncResultStatus.Failed) {
write(asyncResult.error.message);
}
}
);
event.completed();
}
Office.actions.associate("writeInviteIta", writeInviteIta);
Office.actions.associate("writeInviteEng", writeInviteEng);
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

@@ -17,8 +17,8 @@
<UseIISExpress>true</UseIISExpress> <UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress /> <Use64BitIISExpress />
<IISExpressSSLPort>44339</IISExpressSSLPort> <IISExpressSSLPort>44339</IISExpressSSLPort>
<IISExpressAnonymousAuthentication /> <IISExpressAnonymousAuthentication>enabled</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication /> <IISExpressWindowsAuthentication>enabled</IISExpressWindowsAuthentication>
<IISExpressUseClassicPipelineMode /> <IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile /> <UseGlobalApplicationHostFile />
<NuGetPackageImportStamp> <NuGetPackageImportStamp>
@@ -68,7 +68,6 @@
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Functions\Commands.html" />
<Content Include="Content\Button.css" /> <Content Include="Content\Button.css" />
<Content Include="Content\fabric-9.6.0.scoped.css" /> <Content Include="Content\fabric-9.6.0.scoped.css" />
<Content Include="Content\fabric-9.6.0.scoped.min.css" /> <Content Include="Content\fabric-9.6.0.scoped.min.css" />
@@ -108,20 +107,21 @@
<Content Include="Content\sass\Fabric.scss" /> <Content Include="Content\sass\Fabric.scss" />
<Content Include="Content\sass\Fabric.Scoped.scss" /> <Content Include="Content\sass\Fabric.Scoped.scss" />
<None Include="Scripts\jquery-3.6.0.intellisense.js" /> <None Include="Scripts\jquery-3.6.0.intellisense.js" />
<Content Include="Images\Close.png" /> <Content Include="Functions\RegInv.html" />
<Content Include="Images\Flag_En_Icon16.png" /> <Content Include="Functions\RegInv.js" />
<Content Include="Images\Flag_En_Icon32.png" /> <Content Include="Functions\SEA.html" />
<Content Include="Images\Flag_En_Icon64.png" /> <Content Include="Functions\SEA.js" />
<Content Include="Images\Flag_En_Icon80.png" /> <Content Include="Images\App_128.png" />
<Content Include="Images\Flag_It_Icon16.png" /> <Content Include="Images\App_64.png" />
<Content Include="Images\Flag_It_Icon32.png" /> <Content Include="Images\Flag_En_16.png" />
<Content Include="Images\Flag_It_Icon64.png" /> <Content Include="Images\Flag_En_32.png" />
<Content Include="Images\Flag_It_Icon80.png" /> <Content Include="Images\Flag_En_80.png" />
<Content Include="Images\Icon16.png" /> <Content Include="Images\Flag_It_16.png" />
<Content Include="Images\Icon32.png" /> <Content Include="Images\Flag_It_32.png" />
<Content Include="Images\Icon64.png" /> <Content Include="Images\Flag_It_80.png" />
<Content Include="Images\Icon80.png" /> <Content Include="Images\RegInv_16.png" />
<Content Include="Functions\Commands.js" /> <Content Include="Images\RegInv_32.png" />
<Content Include="Images\RegInv_80.png" />
<Content Include="Scripts\jquery-3.6.0.js" /> <Content Include="Scripts\jquery-3.6.0.js" />
<Content Include="Scripts\jquery-3.6.0.min.js" /> <Content Include="Scripts\jquery-3.6.0.min.js" />
<Content Include="Scripts\jquery-3.6.0.slim.js" /> <Content Include="Scripts\jquery-3.6.0.slim.js" />
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.10.34928.147 VisualStudioVersion = 17.10.34928.147
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "outllook_pal_tools", "outllook_pal_tools\outllook_pal_tools.csproj", "{C93517D7-4DA7-4956-8F84-509BD3E461B1}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "outlook_pal_tools", "outllook_pal_tools\outlook_pal_tools.csproj", "{C93517D7-4DA7-4956-8F84-509BD3E461B1}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "outllook_pal_toolsWeb", "outllook_pal_toolsWeb\outllook_pal_toolsWeb.csproj", "{93C73AFD-B62D-4C2C-BBDC-ADF2BC50DAC5}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "outlook_pal_toolsWeb", "outllook_pal_toolsWeb\outlook_pal_toolsWeb.csproj", "{93C73AFD-B62D-4C2C-BBDC-ADF2BC50DAC5}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution