description:'Whether to return all results or only up to a given limit',
},
{
displayName:'Limit',
name:'limit',
type:'number',
displayOptions:{
show:{
resource:[
'attachment',
],
operation:[
'getAll',
],
returnAll:[
false,
],
},
},
typeOptions:{
minValue: 1,
maxValue: 500,
},
default:50,
description:'Max number of results to return',
},
{
displayName:'Download Attachments',
name:'download',
type:'boolean',
default:false,
required: true,
displayOptions:{
show:{
resource:[
'attachment',
],
operation:[
'get',
'getAll',
],
},
},
},
{
displayName:'Output Field',
name:'outputField',
type:'string',
default:'data',
description:'Field name where downloaded data will be placed',
displayOptions:{
show:{
resource:[
'attachment',
],
operation:[
'get',
'getAll',
],
download:[
true,
],
},
},
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Field',
displayOptions:{
show:{
resource:[
'attachment',
],
operation:[
'get','getAll',
],
},
},
default:{},
options:[
{
displayName:'Filter',
name:'queryFilter',
type:'string',
placeholder:'<col_name><operator><value>',
default:'',
description:'An encoded query string used to filter the results',
hint:'All parameters are case-sensitive. Queries can contain more than one entry. <a href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_developer/app_store_learnv2_rest_quebec_more_about_query_parameters">more information</a>.',