Calling invocable method from "Custom Apex Action" does not recognize invocable variable/parameter

Trying to use the action framework to directly call Apex, but the skuid page doesn’t seem to recognize my invocable variable when it is actually executed. Is there any better documentation out there on this? It would be a great feature to utilize.

Here’s what I have set up in the Skuid configuration:
!( Account_ Salesforce_-_Enterprise_Edition_inline.png “Image https//d2r1vs3d9006apcloudfrontnet/s3_images/1520184/RackMultipart20161207-75380-1144zc2-Edit_Page__Account___Salesforce_-_Enterprise_Edition_inlinepng1481150573”)

And here’s my apex code:

@InvocableMethod(label='Recalculate Region Assignment')
global static List<assignmentresponse> setOwner(List<assignmentrequest> assignmentRequests) { List<assignmentresponse> responses = new List<assignmentresponse>(); AssignmentResponse res = new AssignmentResponse(); responses.add(res); System.debug('uh... hello?'); Id accountId = assignmentRequests[0].accountId; Account account = [SELECT Id, GroupsRegion__c FROM Account WHERE Id = :accountId]; Repository.RegionAssignment regionAssignment = new Repository.RegionAssignment(); new AssignmentService(regionAssignment).setOwner(account); update account; return responses; } global class AssignmentRequest { @InvocableVariable(required=true description='The account Id needed' label='Account Id') global Id accountId; } global class AssignmentResponse { @InvocableVariable global String message = 'OHHH yeaaaaaa!'; }

Calling this action results in the following error:

Seems strange that the invocable variable is not found, considering the skuid configuration was able to populate it in my first screenshot. Any idea what I could be doing wrong?

I think you make the variable public, instead of global.  So the response could look like this:

&nbsp; &nbsp;global class AssignmentRequest {<br />&nbsp; &nbsp; &nbsp; &nbsp; @InvocableVariable(required=true description='The account Id needed' label='Account Id')<br />&nbsp; &nbsp; &nbsp; &nbsp; public Id accountId;<br />&nbsp; &nbsp; }

Changing it to “public” didn’t seem to do anything, but when I changed it to “accountIds” it is giving me a new error:

 ![]( "Image https//d2r1vs3d9006apcloudfrontnet/s3\_images/1520479/RackMultipart20161208-92314-nnkc1b-Screenshot\_120816\_111620\_AM\_inlinejpg1481213783")

Ended up fixing this by deleting my remote action and recreating it… I guess it got corrupted somehow. Might have been from changing some of the variable naming in Apex (since they are likely dynamically generated by skuid)