我遇到了smartsheet API中attachemnt的問題。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
這正是我想到的。我以爲我可以從工作表中獲取rowId,但是這並沒有保留和行值。 我反而不得不從SheetResources中對工作表進行修改,該工作負載了行信息。 感謝您的幫助! –