hey guys, i used this below script for searching custom record.. but its not working.. please give me suggestion.
var itemSearch = search.create({
type: search.customrecordpay_element,
filters: [{
name: 'custrecord_peseq',
operator: 'is',
values: [testValue]
}]
});
b
battk
02/27/2020, 1:27 PM
type should be 'customrecordpay_element'
battk
02/27/2020, 1:27 PM
right now its undefined
m
mathan
02/27/2020, 1:29 PM
type:search.Type.customrecordpay_element,
mathan
02/27/2020, 1:29 PM
is this right?
b
battk
02/27/2020, 1:29 PM
still undefined
battk
02/27/2020, 1:30 PM
search.Type is an enumeration of native search types