Get file URL from CRM card
The Get file URL from CRM card robot reads a file field of a deal, contact, company or lead in Bitrix24 (Alaio) and returns a direct download URL, the file name and its size in bytes. It picks the right file from the field by index (0 = first, -1 = last) and also returns a Y/N flag indicating whether a file was found.
The robot extracts a file from a CRM entity file field and hands it to the business process as a ready download link. It takes the entity type (deal, contact, company, lead), its ID, the file field code and the file index within the field (0 = first, -1 = last, default 0). It returns the download URL, file name, size in bytes and a found flag (Y/N). Use it when you need to forward an attachment from a card to an external service, insert a document link into an email or notification, pass the file to an HTTP request, or simply check whether a document is attached. If the entity is not found, the field is empty or there are no files, the robot returns found=N and empty values — use that flag in the condition of the next step.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Entity type: deal / contact / company / lead | string | yes | |
| Entity ID | int | yes | |
| File field code | string | yes | |
| File index (0 = first, -1 = last; default 0) | int | — |
What does the robot return?
| Parameter | Type |
|---|---|
| Download URL | string |
| File name | string |
| Size in bytes | int |
| File found (Y/N) | string |
Scenario: sending a contract from a deal
- A deal enters the Documents ready stage
- The robot reads the deal file field and returns the link, name and file size
- The next step inserts the link into an email to the client