How to get attachment id.


I am using c# to try get the attachment id of an attachment in a certain row in order to download the attachment.  How can I achieve this?


  • KevinFansler

    Hi Lorenzo, Smartsheet has an endpoint for that. The documentation is in the Attachments section, under List Row Attachments. In C#, here's what that would look like:

    // Omit pagination parameters<br /> PaginatedResult<Attachment> attachments = smartsheet.SheetResources.RowResources.AttachmentResources.ListAttachments( 2252168947361668, // long sheetId 4293147074291588, // long rowId null // PaginationParameters );

  • Ok so my next question is how do I make it a url/link in the c# screen?