Upload Content
Use the Upload Content action to upload content to the authenticated Windchill server. You can upload content in one of the following formats:
• File
• Stream
• String
Complete the following steps to use the Upload Content action in your workflow:
1. Drag the
Upload Content action under
Windchill to the canvas, place the pointer on the action, and then click
or double-click the action. The Upload Content window opens.
2. Edit the Label, if needed. By default, the label name is the same as the action name.
If you previously added a connector type, select the appropriate Connector Type, and under Connector Name, select the connector.
4. Click TEST to validate the connector.
5. Click
MAP CONNECTOR to execute the action using a connector that is different from the one that you are using to populate the input fields. In the
Runtime Connector field, provide a valid Windchill connector name. For more information about
MAP CONNECTOR, see
Using Map Connector.
6. Under the Source group, in the Type list, select one of the following options, and do the following:
◦ Select File, and do the following:
1. In the File Path field, map the output of a previous action to provide the path to a file.
2. In the Format list, select the correct file format.
◦ Select Stream, and do the following:
a. In the Stream field, map a data stream output of a previous action.
b. In the Encoding list, select the file encoding type.
◦ Select String, and in the Data field, enter data or map a string output of a previous action that you want to write to the file that you want to upload.
7. Under the Destination group, do the following:
a. In the Select Media Entity list, select the appropriate media entity from the authenticated Windchill server.
This list specifies all entities or navigation properties that support media entities. Entities that support media have the HasStream property set to true. The navigation property on an entity is represented as EntityTypeName/NavigationPropertyName.
b. In the File Name field, provide the name of the file that you want to upload. This name can be different from the file that you mapped from a previous action.
c. In the Entity ID field, provide the ID of the entity for which you want to upload the media entity.
8. Click Done.
Output schema
After a successful file upload, the output schema for the Upload Content action returns a message string stating that the file is uploaded successfully.