activities
latest
false
UiPath logo, featuring letters U and I in white

Integration Service Activities

Last updated Feb 19, 2026

Add File to Record

Project compatibility

Windows | Cross-platform

Overview

DescriptionAPI MethodAPI Path
Attach an uploaded file to a specific record in Salesforce. POST

/Attachment_Link

Input

ParameterDescriptionData Type
File IDPass the file ID from the output of “Upload File” or “Search Records → Content Document” activity string
Record IDPass the ID of the linked object such as Account, Opportunity, Account, etc. The ID can also be retrieved from the event trigger output or “Search Records”. string
Share typeThe permission granted to the user of the shared file in a library enum
VisibilityIndicates whether this file is available for all users, internal users, or shared users. By default, this parameter is set to all users. enum

Output

ParameterDescriptionData Type
ResponseThe output object of file record linkObject
IDID of the filestring
Note:
  • In API workflows, a single response object is returned as the output. Any required fields can be extracted directly from this object.
  • In RPA workflows, some output parameters may differ, but the necessary values can still be retrieved from the response object even if they are not explicitly exposed.
  • Project compatibility
  • Overview
  • Input
  • Output

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.