1
0
-1

When using a Collaboration Job together with Job Action, we can get the submission in Job Action referencing to the Collab Job Service, but what if we use a Dynamic Data Service, how can we get the submission?

Thanks 

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      In the form Get the Tracking code via a Data Field mapped to XML Location: System Data, XML Name: TrackingCode.

      If you pass the Tracking code as a parameter of the DDS call, then you can use the following to get the Submission object and data:


      def trackingCode = request.getParameter("trackingCode");

      def clientSubmission = DaoFactory.getSubmissionDao().getSubmissionByTrackingNumber(trackingCode);
      def clientXml = DaoFactory.getSubmissionDataDao().getSubmissionXmlString(clientSubmission);
      def root = new XmlSlurper().parseText(clientXml);


      1. Lady Sharmane Udtuhan

        Thanks Trevor (smile) I will try this 

      CommentAdd your comment...
    2.  
      1
      0
      -1

      Fluent Dynamic Data Service will have Txn provided to you as an input parameter of the invoke method you'd need to implement.

      Core SDK Dynamic Data service should have submission object injected in by default.

      It all probably depends also on what TM version you are using as the early pre 5.x versions might not give you the above options?

        CommentAdd your comment...