Skip to content

Instantly share code, notes, and snippets.

@nedarb
Created April 3, 2017 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nedarb/315464ae529ebad4c85280461b6b4fe9 to your computer and use it in GitHub Desktop.
Save nedarb/315464ae529ebad4c85280461b6b4fe9 to your computer and use it in GitHub Desktop.
Custom Salesforce Lightning for Outlook component
<aura:component implements="clients:availableForMailAppAppPage,clients:hasItemContext">
<div>
Subject:{!v.subject}<br/>
<ui:button label="Click" press="{!c.myAction}"/>
Body: {!v.messageBody}
</div>
</aura:component>
({
myAction : function(component, event, helper) {
console.log(component.get("v.messageBody"));
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment