You need to sign in to do that
Don't have an account?
Norm_1
REST Return Type
I have an Apex class that can be invoked from a REST Get :
@HttpGet
global static Set<Id> doGet() {
.......
}
However the compiler is complaining with:
Invalid type for Http* method: SET<Id>
Am I only allowed to return a concrete object type?
Yes this is mentioned in the Apex documenation in the section "Apex REST Methods"
You can't use a Set, but you can use a List instead.