AddFile
Upload a file and associate it with Deal, Person, Organization, Activity or Product.
Stored Procedure-Specific Information
Pipedrive allows only a small subset of columns to be used in the EXEC query. These columns can typically be used with only = comparison. The required columns in AddFile are FileLocation. If FileLocation is not provided, both the Content which is an input stream of the file and FileName with extension should be provided.
To execute this procedure, enter:
EXEC AddFile DealId = '12', FileLocation = 'C:\Users\Downloads\file_example_MP3_1MG.mp3'
Input
| Name | Type | Description |
| DealId | Integer | ID of the deal to associate file(s) with. |
| PersonId | Integer | ID of the person to associate file(s) with. |
| OrgId | Integer | ID of the organization to associate file(s) with. |
| ProductId | Integer | ID of the product to associate file(s) with. |
| ActivityId | Integer | ID of the activity to associate file(s) with. |
| FileLocation | String | File to upload. |
| FileName | String | File name that is uploaded. |
Result Set Columns
| Name | Type | Description |
| Status | String | Execution status of the stored procedure. |