0

How to get details of a file uploaded?

hi,

  I have uploaded a file as an attachment of a note.

  I want to get details of the attachment by find method like this:attach = sg.find('Attachment',[['id','is',20]],['id','filename','this_file']),but  it failed.

the fault message is:

XMLRPC Fault 103:

API read() invalid/missing string entity 'type':
{"return_fields"=>["id", "filename"],
 "paging"=>{"entities_per_page"=>500, "current_page"=>1},
 "type"=>"Attachment",
 "filters"=>{"conditions"=>[], "logical_operator"=>"and"},
 "return_only"=>"active"}

Valid entity types:
["ActionMenuItem",
 "ApiUser",
 "Asset",...]

Does the Attachment entity support find method?

Thanks

1 comment

Please sign in to leave a comment.