Which parameter type will not be accepted in future method?

Which parameter type will not be accepted in future method?

According to Salesforce doc, you can’t pass sObject to @future methods. Methods with the future annotation must be static methods, and can only return a void type. The specified parameters must be primitive data types, arrays of primitive data types, or collections of primitive data types.

Can we write future method in trigger?

Interviewer: Can I write a future call in Trigger? Interviewee: Yes, you can. Interviewer: So, consider a case, I have Written a future call in the Account’s trigger update operation.

Are there any unsupported parameters for the future method?

@Future parameters must be primitive data types, arrays of primitive data types, or collections of primitive data types. Methods with the future annotation cannot take sObjects or objects as arguments. There is the workaround using JSON serialization/deserialization so that you can pass the serialized string of your objects to the future method.

Are there any unsupported parameter types in apex?

Error: Compile Error: Unsupported parameter type LIST at line 3 column 30 Methods with the future annotation must be static methods, and can only return a void type. The specified parameters must be primitive data types, arrays of primitive data types, or collections of primitive data types.

Can a @ future method take a sobject?

So I would suggest passing a Set & requerying for the sObject records in your @future method. @Future parameters must be primitive data types, arrays of primitive data types, or collections of primitive data types. Methods with the future annotation cannot take sObjects or objects as arguments.

Can a method with the future annotation return a void?

Methods with the future annotation must be static methods, and can only return a void type. The specified parameters must be primitive data types, arrays of primitive data types, or collections of primitive data types. Methods with the future annotation cannot take sObjects or objects as arguments.