1.0.14 • Published 7 years ago

uma-sp v1.0.14

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Motivation

A set of utilities that revolve around SharePoint.

Installation

npm install uma-sp --save

Usage

import * as uma from 'uma-sp';

Email

Initialize the setup

You need to tell the library what is the SharePoint list name (a list that resides on the Root Web) that contains all your templates.

  uma.emailSetup({
    templatesListName: 'Workflow Email Templates'
  });
  

Get Template and Send Email

The signature is getTemplateAndSend(templateName, templateParams, from, to, subject)

  uma.email.getTemplateAndSend("Initiate", {Title: "TestEmail", Body: "Lorem Ipsum...."}, "system@tenant.onmicrosoft.com", "someone@tenant.onmicrosoft.com", "The subject of your email").then(result => {
      console.log("Email sent successfully: " + result);
  });

Send Email

The signature is send(from, to, body, subject)

  uma.email.send("system@tenant.onmicrosoft.com", "someone@tenant.onmicrosoft.com", "The content of the email...", "The subject of your email").then(result => {
      console.log("Email sent successfully: " + result);
  });

API Reference

This package has dependencies on sp-pnp-js and lodash libraries

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago