crm tasks are now visible in zoho crm
This commit is contained in:
parent
4bc0ba77db
commit
6f56c06221
@ -696,7 +696,17 @@ class ZohoMapper {
|
||||
break;
|
||||
|
||||
case 'tasks':
|
||||
// Tasks response has tasklists array and page_info
|
||||
// Handle both CRM and Books tasks - check response structure
|
||||
if (zohoResponse.data && zohoResponse.info) {
|
||||
// Books response structure
|
||||
records = zohoResponse.data || [];
|
||||
pageInfo = {
|
||||
count: zohoResponse.info?.count || records.length,
|
||||
moreRecords: zohoResponse.info?.more_records || false,
|
||||
page: zohoResponse.info?.page || 1
|
||||
};
|
||||
} else {
|
||||
// CRM response structure
|
||||
records = zohoResponse.tasks || [];
|
||||
pageInfo = {
|
||||
count: zohoResponse.page_info?.per_page || records.length,
|
||||
@ -704,6 +714,7 @@ class ZohoMapper {
|
||||
page: zohoResponse.page_info?.page || 1,
|
||||
pageCount: zohoResponse.page_info?.page_count || 1
|
||||
};
|
||||
}
|
||||
break;
|
||||
|
||||
case 'phases':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user