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

Update service in Windchill Connector for Thingworx

PreetiGupta
Aquamarine

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

Re: Update service in Windchill Connector for Thingworx

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

Re: Update service in Windchill Connector for Thingworx

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

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.