Creates an ACT! activity for the current contact. It can be created silently or opened for editing.
Syntax
bool created = Script.CreateActivity(App, "Call");
bool created = Script.CreateActivity(App, "Call", true);
bool created = Script.CreateActivity(App, "Call", "Follow up");
bool created = Script.CreateActivity(App, "Meeting", "Project review", DateTime.Now.AddDays(1), 60, true);
bool created = Script.CreateActivity(App, "Meeting", "Project review", startDate, 60, "Conference Room", "High", true, 15, true);
Parameters
| Parameter |
How to use it |
| App |
The ACT! application object supplied by the scripting engine. |
| type |
The ACT! activity type. |
| regarding |
The activity Regarding text. |
| startDate |
The start date and time. |
| length |
The duration in minutes. |
| Location |
The activity location. |
| Priority |
The activity priority. |
| Alarmed |
True enables an alarm. |
| AlarmLeadMinutes |
Minutes before the activity when the alarm appears. |
| edit / open |
True opens the activity for review; False creates it without opening the editor. |
Returns
A Boolean result. Some older overloads may return the default Boolean value after performing the action.
Example
return Script.CreateActivity(App, "Call", "Follow Up - Support Request", DateTime.Now.AddDays(1), 15, true);