Custom API V8 creation in SuiteCRM8

I found an email with instructions on how to test the above code, let’s try it…

Go to this test address:
http://yourSiteURL/docs/graphql

And put this in the first box:

mutation createProcess($input: createProcessInput!) {
  createProcess(input: $input) {
    process {
      _id
      status
      async
      type
      messages
      data
      __typename
    }
    clientMutationId
    __typename
  }
}

and in the variables (at the bottom of screen, make sure it’s not obscured by Symfony debug toolbar), this:

{
  "input": {
    "type": "myproject-site-process",
    "options": {
      "action": "create-lead",
      "first_name": "Test lead",
      "last_name": "From API"
    }
  }
}

Can you get something going from this? Remember you have to login to the UI first in a different tab.

As far as breakpoints are concerned, I am not sure, but maybe you can find something by having a look at my stack when breaking inside MyProjectSiteProcessHandler.run()