+ Start a Discussion
ManojKumar MuthuManojKumar Muthu 

How to pass more than one value to a parameter

Hi there,

I have field name "Priority" with values 1,2,3,4.

if(String.isNotBlank(priority))
    {    
       str+=' AND Priority = \''+ priority+'\'';
    }
As of now I can able to pass only one value at a time is there a way to pass like this "Priority":"1,2"
Raj VakatiRaj Vakati
Try this
if(String.isNotBlank(priority))
    {    
	List<String> ps =priority.split(',');
	
       str+=' AND Priority  IN := \''+ ps+'\'';
    }

 
ManojKumar MuthuManojKumar Muthu
@Raj,

Unexpected parameter encountered during deserialization: ps at 
User-added image