Last updated: 2024-06-07
GetActColors Method
In this topic:
Overview
The GetActColors method returns a list of the colors used to help identify activity types and subtypes in the SmartOffice calendar. Colors are returned in hexadecimal format.
The GetActColors method is invoked using the method operation.
Parameters
| Parameter Name | Type | Required? | Description |
|---|---|---|---|
Type | String | Yes | Valid values are 1 (activity type) or 2 (activity subtype). |
Example
The following example request retrieves the colors for activity types:
XML
<request version='1.0'>
<header>...</header>
<method>
<GetActColors>
<Type>1</Type>
</GetActColors>
</method>
</request>In the response, note that the ActType IDs correspond to the values found in the ActivityType and ActivitySubtype lookup tables in the API Dictionary:
XML
<?xml version="1.0" encoding="UTF-8" ?>
<response version="1.0">
<header>
<sessionClosed />
</header>
<method>
<GetActColors>
<ActColors>
<ActType id="1">
<Color>#FFC500</Color>
</ActType>
<ActType id="2">
<Color>#0012BB</Color>
</ActType>
<ActType id="3">
<Color>#4AB62E</Color>
</ActType>
<ActType id="4">
<Color>#000000</Color>
</ActType>
<ActType id="5">
<Color>#7D7D7D</Color>
</ActType>
<ActType id="6">
<Color>#BB0004</Color>
</ActType>
<ActType id="7">
<Color>#c6c6c6</Color>
</ActType>
</ActColors>
</GetActColors>
</method>
<_status>OK</_status>
<_systime>2020-10-01T17:32:46</_systime>
<!-- Cost 67 mill seconds. -->
</response>