Skip to main content
15-Moonstone
June 22, 2016
Question

Update service in Windchill Connector for Thingworx

  • June 22, 2016
  • 1 reply
  • 1374 views

Has anyone explored Update service in Windchill connector? I am having hard time finding out how to update an object in Windchill. What syntax would work for modification parameter. Any pointers..

var params = {

  modification: undefined /* STRING */,

  dataShape: undefined /* DATASHAPENAME */,

  objects: undefined /* INFOTABLE */

};

// result: INFOTABLE dataShape: "undefined"

var result = me.Update(params);

    1 reply

    1-Visitor
    June 23, 2016

    Hi

    If you use the executeTask service, you can create a Windchill task that takes parameters and updates an object accordingly. Your task should be written to perform the whole update process within a single transaction.

    For passing the parameters in this case, you use the IEProperty datashape and create one row in the InfoTable for each parameter.

    Regards

    Ian

    15-Moonstone
    June 23, 2016

    yes I  got it working finally Ian. Thanks for replying. It was hit and trial to figure out the syntax.

    i am trying to see what all possible with update service.

    var params1 = {

        modification: "REPLACE"  /* STRING */,

      dataShape: 'preeti-epmdoc1-datashape' /* DATASHAPENAME */,

      objects: ufids /* INFOTABLE */

    };

    thx