0

Is it possible to figure out if activities enabled for particular object via REST?enter image description here

2

As per my knowledge, there is no direct way to get this information by Rest API.

But when Allow Activities option is enabled for a custom object, following gets added to SObject describe:

  1. LastActivityDate field on object.
  2. ActivityHistory and OpenActivity on child relationship.

You could use these to know if the feature is enabled.


Describe SObject URL:

/services/data/v41.0/sobjects/{Object API Name}/describe
1

That information is not exposed in Rest API or Partner API. You need to use Metadata Soap API to read metadata for that object.

In Metadata API this is exposed as field CustomObject.enableActivities field. See CustomObject reference for more info.

  • Nice. I was also looking at metadata API first but didn't find it. Thanks for sharing! – Raul Apr 11 '18 at 20:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.