Is there a d2-apis that allow us run a method?

Options

Is there a d2-api that allow us run a method?

Answers

  • It might depend if is a 'regular' DFC method or a D2Method (depends on the implementation of the code itself.

    In any cases, that should be possible since in your plugin, you get your context and from the context, you can get the DFC session, meaning that in your code, you could launch the method as described in the DFC documentation or launch the D2 MEthod, (I believe described in the D2 SDK doc, maybe note in the D2-SM SDK doc….)

    I think one of the options should do the trick…

  • Hi,

    We have a Rest API from underlying layer (DCTM Rest) which allows you to run a method. Currently this resource is not documented in the D2 Rest documentation. The documentation should get added in future release. Please let me know if Rest API will work for you and I will share the spec for the Rest API. In case you would like to write your own code to run the method then please refer to DFC documentation.