Office Add-in Developer Community (PnP) – March 2021 update

Published Apr 29 2021 03:10 AM 817 Views
Microsoft

The Office Add-ins developer platform team has new updates to share this month on Office Add-ins Patterns and Practices. PnP is a community effort, so if you are interested in contributing, see our good first issue list.

Use Outlook event-based activation to set the signature (preview)

Screen shot of PnP sample displaying an information bar prompting the user to set up signatures, and sample signature inserted into the email.Screen shot of PnP sample displaying an information bar prompting the user to set up signatures, and sample signature inserted into the email.

This sample uses event-based activation to run an Outlook add-in when the user creates a new message or appointment. The add-in can respond to events, even when the task pane is not open. It also uses the setSignatureAsync API. If no signature is set, the add-in prompts the user to set a signature, and can then open the task pane for the user.

Contributors

Thank you to our contributors who are actively helping each month with the PnP-OfficeAddins community effort.

Want to contribute?

PnP is a community effort by developers like you. Check out our good first issue list as a great place to help with some samples. Feel free to contribute to existing samples or create new ones.

About Office Add-ins Patterns & Practices (PnP)

Office Add-ins PnP is a Microsoft-led, community driven effort that helps developers extend, build, and provision customizations on the Office platform the right way by providing guidance and help through official documentation and open-source initiatives. The source is maintained in GitHub where anyone can participate. You can provide contributions to the samples, reusable components, and documentation. Office Add-ins PnP is owned and coordinated by Office engineering teams, but the work is done by the community for the community.

You can find code samples for Office Add-in development in the Office Add-ins PnP repo. Some samples are also documented in the Office Add-ins docs, such as Open in Excel.

Additional resources

Get started with Office development by joining the Microsoft 365 developer program.

Try out some samples and get coding quickly with Office add-ins by downloading Script Lab.

Learn more by joining the monthly Office Add-ins community call.

%3CLINGO-SUB%20id%3D%22lingo-sub-2304950%22%20slang%3D%22en-US%22%3EOffice%20Add-in%20Developer%20Community%20(PnP)%20%E2%80%93%20March%202021%20update%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2304950%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20Office%20Add-ins%20developer%20platform%20team%20has%20new%20updates%20to%20share%20this%20month%20on%20Office%20Add-ins%20Patterns%20and%20Practices.%20PnP%20is%20a%20community%20effort%2C%20so%20if%20you%20are%20interested%20in%20contributing%2C%20see%20our%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP-OfficeAddins%2Fissues%3Fq%3Dis%253Aissue%2Bis%253Aopen%2Blabel%253A%2522good%2Bfirst%2Bissue%2522%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Egood%20first%20issue%20list%3C%2FA%3E.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--471525492%22%20id%3D%22toc-hId--471522614%22%3EUse%20Outlook%20event-based%20activation%20to%20set%20the%20signature%20(preview)%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pnp-set-signature.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276858i3669BD4A5E36FD5D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pnp-set-signature.png%22%20alt%3D%22Screen%20shot%20of%20PnP%20sample%20displaying%20an%20information%20bar%20prompting%20the%20user%20to%20set%20up%20signatures%2C%20and%20sample%20signature%20inserted%20into%20the%20email.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EScreen%20shot%20of%20PnP%20sample%20displaying%20an%20information%20bar%20prompting%20the%20user%20to%20set%20up%20signatures%2C%20and%20sample%20signature%20inserted%20into%20the%20email.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThis%20sample%20uses%20event-based%20activation%20to%20run%20an%20Outlook%20add-in%20when%20the%20user%20creates%20a%20new%20message%20or%20appointment.%20The%20add-in%20can%20respond%20to%20events%2C%20even%20when%20the%20task%20pane%20is%20not%20open.%20It%20also%20uses%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fjavascript%2Fapi%2Foutlook%2Foffice.body%3Fview%3Doutlook-js-preview%23setSignatureAsync_data__options__callback_%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EsetSignatureAsync%20API%3C%2FA%3E.%20If%20no%20signature%20is%20set%2C%20the%20add-in%20prompts%20the%20user%20to%20set%20a%20signature%2C%20and%20can%20then%20open%20the%20task%20pane%20for%20the%20user.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECheck%20out%20the%20code%20sample%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP-OfficeAddins%2Ftree%2Fmaster%2FSamples%2Foutlook-set-signature%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EUse%20Outlook%20event-based%20activation%20to%20set%20the%20signature%20(preview)%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ECheck%20out%20the%20docs%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Foffice%2Fdev%2Fadd-ins%2Foutlook%2Fautolaunch%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EConfigure%20your%20Outlook%20add-in%20for%20event-based%20activation%20(preview)%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-2015987341%22%20id%3D%22toc-hId-2015990219%22%3EContributors%3C%2FH2%3E%0A%3CP%3EThank%20you%20to%20our%20contributors%20who%20are%20actively%20helping%20each%20month%20with%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP-OfficeAddins%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EPnP-OfficeAddins%3C%2FA%3E%20community%20effort.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fmvp.microsoft.com%2Fen-us%2FPublicProfile%2F33535%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EMaarten%20van%20Stam%3C%2FA%3E%20-%20helping%20review%20PRs%20and%20issues%20on%20PnP-OfficeAddins%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-208532878%22%20id%3D%22toc-hId-208535756%22%3EWant%20to%20contribute%3F%3C%2FH2%3E%0A%3CP%3EPnP%20is%20a%20community%20effort%20by%20developers%20like%20you.%20Check%20out%20our%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP-OfficeAddins%2Fissues%3Fq%3Dis%253Aissue%2Bis%253Aopen%2Blabel%253A%2522good%2Bfirst%2Bissue%2522%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Egood%20first%20issue%20list%3C%2FA%3E%20as%20a%20great%20place%20to%20help%20with%20some%20samples.%20Feel%20free%20to%20contribute%20to%20existing%20samples%20or%20create%20new%20ones.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1598921585%22%20id%3D%22toc-hId--1598918707%22%3EAbout%20Office%20Add-ins%20Patterns%20%26amp%3B%20Practices%20(PnP)%3C%2FH2%3E%0A%3CP%3EOffice%20Add-ins%20PnP%20is%20a%20Microsoft-led%2C%20community%20driven%20effort%20that%20helps%20developers%20extend%2C%20build%2C%20and%20provision%20customizations%20on%20the%20Office%20platform%20the%20right%20way%20by%20providing%20guidance%20and%20help%20through%20official%20documentation%20and%20open-source%20initiatives.%20The%20source%20is%20maintained%20in%20GitHub%20where%20anyone%20can%20participate.%20You%20can%20provide%20contributions%20to%20the%20samples%2C%20reusable%20components%2C%20and%20documentation.%20Office%20Add-ins%20PnP%20is%20owned%20and%20coordinated%20by%20Office%20engineering%20teams%2C%20but%20the%20work%20is%20done%20by%20the%20community%20for%20the%20community.%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20code%20samples%20for%20Office%20Add-in%20development%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP-OfficeAddins%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EOffice%20Add-ins%20PnP%20repo%3C%2FA%3E.%20Some%20samples%20are%20also%20documented%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Foffice%2Fdev%2Fadd-ins%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EOffice%20Add-ins%20docs%3C%2FA%3E%2C%20such%20as%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Foffice%2Fdev%2Fadd-ins%2Fexcel%2Fpnp-open-in-excel%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EOpen%20in%20Excel%3C%2FA%3E.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-888591248%22%20id%3D%22toc-hId-888594126%22%3EAdditional%20resources%3C%2FH2%3E%0A%3CP%3EGet%20started%20with%20Office%20development%20by%20joining%20the%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Foffice%2Fdev-program%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft%20365%20developer%20program%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3ETry%20out%20some%20samples%20and%20get%20coding%20quickly%20with%20Office%20add-ins%20by%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fgarage%2Fprofiles%2Fscript-lab%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edownloading%20Script%20Lab%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3ELearn%20more%20by%20joining%20the%20monthly%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fofficeaddinscommunitycall%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EOffice%20Add-ins%20community%20call%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2304950%22%20slang%3D%22en-US%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EThe%20Office%20Add-ins%20developer%20platform%20team%20has%20new%20updates%20to%20share%20this%20month%20on%20Office%20Add-ins%20Patterns%20and%20Practices.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2304950%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Apr 29 2021 09:20 AM
Updated by: