cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Update service in Windchill Connector for Thingworx

PreetiGupta
14-Alexandrite

Update service in Windchill Connector for Thingworx

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);

2 REPLIES 2

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

PreetiGupta
14-Alexandrite
(To:ibanham)

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

Top Tags