Skip to content

Instantly share code, notes, and snippets.

View stefan-d-p's full-sized avatar

Stefan Weber stefan-d-p

View GitHub Profile
@stefan-d-p
stefan-d-p / power-deepl.swagger.json
Created June 25, 2022 05:36
OpenAPI 2.0 description file with Power Automate Connector extensions for DeepL
{
"swagger": "2.0",
"info": {
"title": "DeepL Translate API",
"version": "2.0",
"description": "This is a community swagger description of the DeepL API."
},
"host": "api.deepl.com",
"basePath": "/v2",
"schemes": [
Office.onReady();
@stefan-d-p
stefan-d-p / gist:f8fb2aedd08df8850d0fb59573ee3130
Created June 6, 2022 15:55
WebApplicationInfo for OutSystems Office Add-In manifest
<WebApplicationInfo>
<Id>[Application ID]</Id>
<Resource>[Application ID URI]</Resource>
<Scopes>
<Scope>openid</Scope>
<Scope>user.read</Scope>
<Scope>profile</Scope>
</Scopes>
</WebApplicationInfo>
document.getElementById($parameters.WidgetId).innerHTML = $parameters.Html
@stefan-d-p
stefan-d-p / gist:81e8eaaf380600fac9d261b9c0f139ba
Created June 6, 2022 05:17
OutSystems Javascript to get mail content in html
Office.onReady(function () {
Office.context.mailbox.item.body.getAsync('html', function(async) {
$parameters.Body = async.value;
$resolve();
});
});
@stefan-d-p
stefan-d-p / gist:2f08ed31c60222cbf78d2529e4ce926d
Created June 6, 2022 04:35
OutSystems Javascript element to get the body of a mail
Office.onReady(function () {
Office.context.mailbox.item.body.getAsync('text', function(async) {
$parameters.Body = async.value;
$resolve();
});
});
@stefan-d-p
stefan-d-p / manifest.xml
Created June 5, 2022 08:04
Starter Office Add-In manifest for OutSystems tutorial on how to create a Microsoft Outlook taskpane add-in
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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:mailappfor="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="MailApp">
<Id>[ApplicationId]</Id>
<Version>1.0.0.0</Version>
<ProviderName>[Company Name]</ProviderName>
<DefaultLocale>de-DE</DefaultLocale>
<DisplayName DefaultValue="DeepL Translate" />