Skip to content

Commit 9cf7989

Browse files
committed
added additional properties
1 parent 81fa3a2 commit 9cf7989

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hubspot-list-activity.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
# - name: type
3131
# type: string
3232
# description: The type of the engagement
33+
# - name: activity_type
34+
# type: string
35+
# description: The activity type associated with the engagement
3336
# - name: status
3437
# type: string
3538
# description: The status of a particular activity for the engagement
@@ -42,6 +45,9 @@
4245
# - name: active
4346
# type: string
4447
# 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
4551
# - name: created_at
4652
# type: string
4753
# description: The creation date of the engagement
@@ -137,10 +143,12 @@ def getTablePage(auth_token, cursor_id):
137143
row['company_id'] = str(ids[0])
138144

139145
row['type'] = item.get('engagement',{}).get('type','').lower()
146+
row['activity_type'] = item.get('engagement',{}).get('activityType','')
140147
row['status'] = item.get('metadata',{}).get('status','')
141148
row['title'] = item.get('metadata',{}).get('title','')
142149
row['subject'] = item.get('metadata',{}).get('subject','')
143150
row['active'] = item.get('engagement',{}).get('active','')
151+
row['created_by'] = to_date(item.get('engagement',{}).get('createdBy',None))
144152
row['created_at'] = to_date(item.get('engagement',{}).get('createdAt',None))
145153
row['last_updated'] = to_date(item.get('engagement',{}).get('lastUpdated',None))
146154
data.append(row)

0 commit comments

Comments
 (0)