【发布时间】:2017-02-16 18:40:46
【问题描述】:
我在 smartsheet API 中的附件有问题。
一直提示此行不支持文件路径格式
smartSheet.SheetResources.RowResources.AttachmentResources.AttachFile(id, 1, "N:\TEST\M-TST-12346\M-TST-12346-TV.pdf", "application/pdf")
任何帮助都会很棒!
Public Sub GetSheetsInWorkspace(workspaceID As Int64)
Dim workspace As Workspace
workspace = smartSheet.WorkspaceResources.GetWorkspace(workspaceID, Nothing, Nothing)
Dim folder As Folder
folder = smartSheet.FolderResources.GetFolder(5398922303694724, Nothing)
Dim sheets As List(Of Sheet)
sheets = folder.Sheets
For Each sheet In sheets
If sheet.Name = "ALAN S. INPUT" Then
Dim id
id = sheet.Id
smartSheet.SheetResources.RowResources.AttachmentResources.AttachFile(id, 1, "N:\TEST\M-TST-12346\M-TST-12346-TV.pdf", "application/pdf")
End If
Next
End Sub
【问题讨论】:
标签: vb.net smartsheet-api