TaskEntityProperties
Retrieves the data stored against an entity. The argument of this method should be the key that was used when the same data was stored.
Table Specific Information
Entity-properties are key-value pairs stored against the Task entities. They can be used for storing details that are needed for API integrations but don't have to be visible in the UI. Key has to be a String and the Value could be a simple string or a json object. You can store multiple key-value pair for a single entity. These entity properties can be stored / retrieved / updated / deleted using the below queries.
Select
- TaskId and PropertyKey are required to retrieve Task Entity Properties.
SELECT * FROM TaskEntityProperties WHERE TaskId = '123456000000034087' AND PropertyKey = 'key1'
Insert
To add a new Task Entity Property specify the TaskId, PropertyKey and PropertyValue fields.
INSERT INTO TaskEntityProperties (TaskId, PropertyKey, PropertyValue) VALUES ('123456000000034087', 'key1', 'This is a test value')
Update
ZohoProjects allows updates for the PropertyValue column.
UPDATE TaskEntityProperties SET PropertyValue = 'This is an updated property value' WHERE TaskId = '123456000000034087' AND PropertyKey = 'key1'
Delete
Task Entity Properties can be deleted by providing Id, TaskId, PropertyKey and issuing a DELETE statement.
DELETE FROM TaskEntityProperties WHERE TaskId = '166135000000034087' AND PropertyKey = 'key1' AND Id = '166135000000035001'
Columns
Name | Type | ReadOnly | Description |
Id [KEY] | String | False |
Task Entity Property Id. |
TaskId [KEY] | String | False |
Task Id. |
PropertyKey [KEY] | String | False |
Task Entity Property Key. |
PropertyValue | String | False |
Task Entity Property Value. |