|
30 | 30 | # - name: type |
31 | 31 | # type: string |
32 | 32 | # description: The type of the engagement |
| 33 | +# - name: activity_type |
| 34 | +# type: string |
| 35 | +# description: The activity type associated with the engagement |
33 | 36 | # - name: status |
34 | 37 | # type: string |
35 | 38 | # description: The status of a particular activity for the engagement |
|
42 | 45 | # - name: active |
43 | 46 | # type: string |
44 | 47 | # description: The status of the engagement; true if the engagement is active and false otherwise |
| 48 | +# - name: created_by |
| 49 | +# type: string |
| 50 | +# description: The id of the creator of the engagement |
45 | 51 | # - name: created_at |
46 | 52 | # type: string |
47 | 53 | # description: The creation date of the engagement |
@@ -137,10 +143,12 @@ def getTablePage(auth_token, cursor_id): |
137 | 143 | row['company_id'] = str(ids[0]) |
138 | 144 |
|
139 | 145 | row['type'] = item.get('engagement',{}).get('type','').lower() |
| 146 | + row['activity_type'] = item.get('engagement',{}).get('activityType','') |
140 | 147 | row['status'] = item.get('metadata',{}).get('status','') |
141 | 148 | row['title'] = item.get('metadata',{}).get('title','') |
142 | 149 | row['subject'] = item.get('metadata',{}).get('subject','') |
143 | 150 | row['active'] = item.get('engagement',{}).get('active','') |
| 151 | + row['created_by'] = to_date(item.get('engagement',{}).get('createdBy',None)) |
144 | 152 | row['created_at'] = to_date(item.get('engagement',{}).get('createdAt',None)) |
145 | 153 | row['last_updated'] = to_date(item.get('engagement',{}).get('lastUpdated',None)) |
146 | 154 | data.append(row) |
|
0 commit comments