+ Start a Discussion
shahid alishahid ali 

Parameter passing in future methods. Getting error.

Hi,  I am implementing future method for a requirement . I want to pass parameters to it from a trigger. I know only primitive data types and collections of primitive data types can be passed .

 

So, When I pass Map<Id,Id> it works fine but when I pass MAP<Id,SET<Id>> I get the error

 

'Save error: Unsupported parameter type MAP<Id,SET<Id>>'

 

Does this means I cannot pass any collection containing a collection of Id?

 

I cannot find any documentation on this. If anyone of you has faced this issue. Please confirm.

Best Answer chosen by Admin (Salesforce Developers) 
Jerun JoseJerun Jose
I guess you answered it yourself, you can pass primitive or collection of primitives. collection of collection is not supported.

All Answers

Jerun JoseJerun Jose
I guess you answered it yourself, you can pass primitive or collection of primitives. collection of collection is not supported.
This was selected as the best answer
shahid alishahid ali

Yeah thanks, I just needed confimation from someone who has faced the same issue.