Method Parameter Data Types and Conversions
The SDK Toolkit Extension will automatically perform any necessary data type conversions.
For example:
caseIDNum=12345
Will be treated as a string, since case ID numbers are strings.
objid=268435457
Will be converted to an integer, as objids are integers
Date Times
CommitmentDate=5/21/2017 15:00:00
Will be converted to a DateTime
A variety of DateTime formats are accepted, including:
Date Time | Format |
---|---|
3/9/2007 | ShortDate |
3/9/2006 4:05 AM | ShortDate+ShortTime |
5/21/2017 15:00:00 | ShortDate+LongTime |
2005-03-09 16:05:07Z | UniversalSortableDateTime |
March 09 2008 4:05:07 PM | FullDateTime |
Relative Date Times
Dates can also use NOW, or NOW plus or minus an offset.
Examples: DueDate=NOW+2d Converted to a DateTime that is the current date/time + 2 days DueDate=NOW-30m Converted to a DateTime that is the current date/time - 30 minutes
Relative Time | Result |
---|---|
NOW | the current date/time |
NOW+2d | the current date/time + 2 days |
NOW+30m | the current date/time + 30 minutes |
NOW-1d | the current date/time - 1 day |
The Now+ syntax supports days (d), hours (h), and minutes (m).
Time Spans
For parameters that require a timespan (such as the warning time for a commitment), use the hh:mm:dd or d.hh:mm:ss syntax.
Examples: WarningDate=00:30:00 A timespan of 30 minutes WarningDate=2.00:00:00 A timespan of 2 days