dominoGuru.com

Your Development & Design Resource

SSJS Integration of Zephyr to support Mail events in XPage apps

So simple it hurts, this SSJS block will create a new JobDocument in Zephyr containing all of the NotesItems of thisdoc for processing.

var zdb = session.getDatabase(session.getCurrentDatabase().getServer(), "zephyr.nsf");
var zdoc = zdb.createDocument();

thisdoc.copyAllItems(zdoc, true);
zdoc.replaceItemValue("form","jobdocument");
zdoc.save();

I find myself using this again and again where I want to support the traditional LotusScript-based workflow and notification email events in a NotesDatabase that I'm creating an XPages-based UI/UX for... while giving the project champion the ability to modify those same emails via configuration of Zephyr as easily as they would Lotus Notes Stationary.

One of those simple things that can be a huge win!

I just have to get around to creating an XPages-based version of Zephyr... then we'll be all set!


About the author: Chris Toohey

Thought Leadership, Web & Mobile Application Development, Solutions Integration, Technical Writing & Mentoring

A published developer and webmaster of dominoGuru.com, Chris Toohey specializes in platform application development, solutions integration, and evangelism of platform capabilities and best practices.



More from dominoGuru.com


dominoGuru.com is powered by IBM Notes Domino XPages & hosted by Prominic.NET

Contact Us

Use our Contact / Feedback form or one of these email addresses:

Creative Commons License

Except where otherwise noted, dominoGuru.com by Chris Toohey is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.