添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi folks!

Is there any way to call a class in JsForce to get the record count of a specific object (or a list of objects) that would call the endpoint /services/data/vXX.X/limits/recordCount?sObjects= ? (see article below)
Or maybe a way to launch the request directly using JsForce?

see https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_record_count.htm

Thank you in advance, JsForce is awesome !!!!!

Here is the code:

let _request = {
   url: '/services/data/v51.0/limits/recordCount?sObjects=Account',
   method: 'GET'
conn.request(_request, function(err, resp) {
   if (err) console.log(err); else console.log(resp);

Of course i will have to handle errors etc...

Thank you !!