ZohoDevelopers / embeddedApp-js-sdk

Js SDK for Zoho Embeded app
Apache License 2.0
49 stars 28 forks source link

Zoho getAllRecords() promise not returning the info object #7

Closed satishmehta closed 5 years ago

satishmehta commented 5 years ago

In Zoho-Js-Sdk, Function for getting all record of a module i.e getAllRecords() is only returning the data object in resolved promises. In some cases info object is also required which is containing per_page, page, count, etc.

ZOHO.CRM.API.getAllRecords({Entity:"Leads",sort_order:"asc",per_page:2,page:1}) .then(function(data){ console.log(data) })

In Xhr response we can see both the data, zohoxhr

Not getting info object in promise promises

Please provide both the data in resolved promise.

Naresh28Babu commented 5 years ago

In Zoho-Js-Sdk, Function for getting all record of a module i.e getAllRecords() is only returning the data object in resolved promises. In some cases info object is also required which is containing per_page, page, count, etc.

ZOHO.CRM.API.getAllRecords({Entity:"Leads",sort_order:"asc",per_page:2,page:1}) .then(function(data){ console.log(data) })

In Xhr response we can see both the data, zohoxhr

Not getting info object in promise promises

Please provide both the data in resolved promise.

Kindly update to the latest version of the SDK screen shot 2018-11-26 at 3 20 11 pm

satishmehta commented 5 years ago

@Naresh28Babu Thanks.

mohitkhokale commented 4 years ago

Hye, can you please guide me how to get data to html and set in simple text