MailTriggerInput: Get Input From a Mail Trigger Message

Description Usage Arguments Value Examples

Description

Parses inputs from a message saved when the e-mail client run its rules. Parser is looking for UseModel, UseScript, or UseReport follow by a number (ID) associated with Model, Script, or Report. For reports and scripts there is also the option to supply comma separated data.

Usage

1
MailTriggerInput(InputPath)

Arguments

InputPath

string, path to a saved e-mail message from your e-mail client Likely filenames in the [TriggerPath] are modelInput.txt, ScriptInput.txt, or ReportInput.txt

Value

list, ID, integer ID of the model, script, or report selected. data, data.frame of any supplied inputs.

Examples

1
2
3
4
5
6
7
8
#################################
# Get E-mail Trigger Input      #
#################################

## The file is a saved e-mail message from your e-mail client
  MDL_Input <- MailTriggerInput(InputPath="c:/triggers/modelInput.txt")
  SCRPT_Input <- MailTriggerInput(InputPath="c:/triggers/ScriptInput.txt")
  RPT_Input <- MailTriggerInput(InputPath="c:/triggers/ReportInput.txt")

MobileTrigger documentation built on May 16, 2019, 5:08 p.m.