Skip to Content
author's profile photo Former Member
Former Member

How to use DataCollectionService API

Hi Experts,

I am trying to do DataCollection using DataCollectionService API. I am using the following code snippet for doing it. However I am not able to do it. I did not find method to set operationRef,SfcRef,ResourceRef.etc. Please suggest me the direction.

CreateParametricMeasure createParametricMeasure = new CreateParametricMeasure();






List<CreateParametricMeasure> createParametricMeasureList = new ArrayList();


CreateParametricRequest createParametricRequest = new CreateParametricRequest();



Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 02, 2012 at 03:12 PM

    Refs are like GUIDs, you can't build them* - you must look them up with finder APIs or use Refs returned from other API calls.

    What error are you getting? Are there errors in the NW logs?


    *if you're a long-time ME/VM user and see the resemblance between a Ref and the UNSUPPORTED Handle class, keep that to yourself. 😉

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Tim,

      Thanks for reply,

      I am doing it in an Activity Hook at POST_START hook point. From dto object I am getting the Ref using unspported handles , like OperationBOHandle etc.

      now my concern is that how can I use the above API. sample code snippet would be helpful.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.