Table 29. Inbound Email Manager Methods
|
|
AddAttachments |
Creates attachment records for the attachments in EventFields. |
AddCategories |
Associates categories with an activity record. |
DeleteTempFiles |
Deletes temporary files specified in EventFields. |
GetCategories |
Gets the list of categories and scores that are associated with an activity. |
GetEventCategories |
Enumerates the categories in EventFields and returns them in a hierarchy. |
GetPreference |
Gets the value of a user preference. |
GetResponseText |
Gets the auto-suggest response text for a set of categories by using the scores and thresholds for the categories. |
GetSearchSpec |
Creates a search specification by using the fields included as input arguments. For example, if Abstract and Area are input arguments, then the search specification named [Area]="Installation" AND [Abstract]="Production" is called the SRSearchSpec output argument. |
GetTokens |
Gets a specified number of tokens from a string. The tokens are returned in output properties such as Token 1, Token 2, and so on. |
ParseText |
Extracts response properties from the email. The input arguments of this method include a fixed argument named Text, which contains the text to parse, and one additional argument of the Literal type for each response property to extract. The values indicate the patterns to match and are in the following format: expression=exp | "Last("{prefix} %s[{suffix} ]")"
For example: expression=exp | "Last("Billing Account Number%s\n")"
where:
"Last(" and ")" are optional and indicate that the last occurrence of the pattern is used if multiple occurrences exist. If you do not specify these values, then the first occurrence is used.
{prefix} is any literal that marks the beginning of the pattern and is required. In the example, Billing Account Number is the literal prefix.
%s marks the value to extract and is required.
{suffix} is any literal that marks the end of the pattern. If you do not specify this value, then all the text between the prefix and the end of line is extracted. In the example, \n is a suffix that indicates that the text is parsed to the end of the line.
You must implement the \n suffix to parse the text between the prefix and the end of line. If you do not implement this suffix, then all text in the message that follows the prefix is parsed.
Therefore, in the example, the last occurrence of the Billing Account Number text is extracted, along with the text to the end of the line in which this value is present.
The workflow process uses the extracted response properties. |
ReturnPropSet |
Returns a hierarchy that contains the input properties and properties from the input hierarchy. |
SetResponseFields |
Constructs To, CC, and BCC lines for outbound email by using corresponding lines from inbound email. |