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
111111 

Invalid argument type: MAP:String,String

global class ClientWeb11 {

WebService static String sayHelloWorld(Map<String, String>  d) {

 

error : Invalid argument type: MAP:String,String 

map can't be used?

micwamicwa
Because there are no SOAP analogs for certain Apex elements, methods defined with the webService keyword cannot
take the following elements as parameters.While these elements can be used within the method, they also cannot be
marked as return values.
• Maps
• Sets
• Pattern objects
• Matcher objects
• Exception objects