0

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

2 Answers 2

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
0
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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .