I’m trying to add the ability of adding a note to a project from Outlook by adapting the method used to add activities (http://github.com/lrbalt/outlookemailtotracks).
It’s not working, and it may be a permission error, but I have no idea…
Please take a look at the log below, and let me know if I’m doing something wrong. Up until the “Mysql::Error: Column ‘project_id’ cannot be null” error, the log resembles the logging of a successful addition of an activity using the method linked above.
When adding an activity, first there is a 401 Unauthorized response, and then it executes again and returns 201 Created. When adding a note, first there is a 401 Unauthorized response, and then it executes again, fails with “Mysql::Error: Column ‘project_id’ cannot be null”, and returns 500 Internal Server Error. But from looking at the log, how can ‘project_id’ be null when the log clearly states “Parameters: {“note”=>{“project_id”=>” 1”, “body”=>“Just a reminder…”?
I realize there is a space before the 1, which I found to be an odd result of the original VBA method using Str(ProjectID) instead of CStr(ProjectID). I changed it to CStr, and there was no longer a space, but I got the exact same error.
Any ideas?
Thanks!
