Workflow is passing wrong id
I have a workflow that is triggered when a new object is created in a custom module. That workflow fires of a custom function where I'm passing what is supposed to be the id of that object. Instead I'm getting the object of the module itself.
2020-02-19T23:14:35.760893+00:00 app[web.1]:
{"Id":4276335000001560000}]}
Is what my api is getting for every single object I create. But for example the instance id of the object is: 4276335000001283009