function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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