Windchill Trigger
Prerequisites
For security reasons, the Windchill Webhook URL needs to be under allow list. To do so, complete the following steps:
1. From the <ThingWorx Flow Installation Folder>\modules\trigger\deploymentConfig.json file, copy the value of the DOMAIN property.
Edit the URL in the format <protocol>://<ThingWorx FQDN>/Thingworx. This is the base webhook URL.
2. In Windchill, under Site > Utilities > Preference Management, paste the edited value of webhook URL in Webhooks > Outgoing Webhook URL.
Steps
Use Windchill events to set a trigger for workflow execution. For more information on generic Windchill event functionality, refer to this article.
To create an event for Windchill, complete the following steps:
1. Place the pointer on the start icon , and then click or double-click . A list of triggers appears.
2. Select Windchill. In the trigger configuration window, do one of the following:
If a trigger is already created, select an existing trigger, and then click SAVE.
To create a new trigger, click Create a new event for Windchill, and then proceed with the following steps.
3. Edit the Trigger Label, if needed.
4. To add a Windchill connector type, refer to Supported Windchill Connector Types.
If you previously added a connector type, select the appropriate Connector Type, and under Connector Name, select the connector.
5. Click TEST to validate the connector.
6. In the Entity Type list, select or specify an entity type in the PTC.domainName.entity format. For example: PTC.ProdMgmt.Part.
7. In the Event list, select or specify the event ID. A list of events dynamically appears from the Windchill subscription service.
If you set the value of Event to Life Cycle State, select its value in the Life Cycle State list.
8. In the Subscribe To list, select an option, and do the following:
Select Specific Windchill Entity to subscribe to a specific Windchill entity, and do the following:
1. In the Name field, provide the Windchill entity name.
2. In the Number field, provide the Windchill entity number.
You can either provide a name or number or provide both name and number.
3. In the Subscribe to All Versions list, select true to subscribe to all versions; otherwise select false.
Select Container to subscribe to an event on a container, and in the Container list, select or specify the container identifier in the Windchill object identifier (OID) format, OR:Type:ID, where Type is the internal name of the Windchill entity type. An example of a container identifier is OR:wt.pdmlink.PDMLinkProduct:142471.
When you set Subscribe To to Container, an event is triggered when the specified event occurs on any entity of the specified entity type from that particular container.
For example, if you set Entity Type to Part, Event to Checkin or Checkout, and Container to OR:wt.pdmlink.PDMLinkProduct:142471, where OR:wt.pdmlink.PDMLinkProduct:142471 represents the GOLF_CART container. The event is triggered when Checkin or Checkout action occurs on any Part present under the GOLF_CART container.
9. In the Expiration Date field, click to set an expiration date for the event. If you do not set an expiration date, the event subscription never expires.
10. If you have set Event to Life Cycle State, in the Life Cycle State list, select a life cycle state.
11. Under the Custom Filters section, click ADD, and then do the following:
a. Map the appropriate fields from the Trigger Data section to the Input field.
b. Select an appropriate value in the Condition list.
c. Set a value in the Expected field.
Click Add to add multiple custom filters. Click to delete any custom filter that you added.
For more information on custom filters, refer to Adding Custom Filters.
12. In the Version Id field, provide the revision label, such as B or C.
Every object in Windchill has a version. A version consists of a letter followed by a separator such as a period (.), followed by a number. The number represents the iteration of the object and the letter represents the revision of the object. For example: B.2
13. In Get OData Annotations, select true to include OData Annotations in the output. The default value is false.
14. Click SAVE.
* 
If you receive an error message about a column size while creating a Windchill trigger, refer to the workaround for a Windchill known issue documented here.
Was this helpful?