The API I’m trying to use:
Custom API, Entity representing the “Employee” screen (EP203000), an Action mapped to the “GenerateTimeCards” action.
The Request I’m using:
A “POST request using this JSON:
{
"entity": {
"EmployeeID": { "value": "A real employee ID" }
},
"parameters": {}
}The Error:
HTTP 500, with the words “PX.Data.PXInvalidOperationException” in the stack trace.
The Question:
If I try to use this action from the UI, I am indeed presented with a dialog box. I’d love to be able to figure out a way to tell the API to accept the dialog box with no changes, like I just clicked “OK” in the UI. I can’t seem to find any reference to this on the internet. Does anybody know if this is even possible? Thanks if you can help!