Upload File
Use the Upload File action to upload a specific file in the file, stream, or string formats to the OData service.
Complete the following steps to use the Upload File action in your workflow:
1. Drag the Upload File action under OData to the canvas, place the pointer on the action, and then click or double-click the action. The Upload File window opens.
2. Edit the Label, if needed. By default, the label name is the same as the action name.
3. To add an OData connector type, refer to Supported OData Connector Types.
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 OData 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:
1. In the Stream field, map a data stream output of a previous action.
2. In the Encoding list, select the file encoding type.
Select String and in the Data field, enter the data 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 OData service.
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, enter 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, enter the ID of the entity for which you want to upload the media entity.
8. Click Show additional fields.
9. Under the Headers group, click Add to add a custom header to the request. Provide a Key and Value pair.
Click Add to add multiple key-value pairs. Click to delete any custom header that you added.
10. Click Done.
Output schema
The Upload File action returns a message string stating that the file is uploaded successfully.
Was this helpful?