Carl Hicks

Results 76 comments of Carl Hicks

Yeah, I think I updated the README before ever finishing that code :( So, to upload files use set_note_attachment... something like this: https://github.com/chicks/sugarcrm/blob/master/lib/sugarcrm/connection/api/set_note_attachment.rb You can access this method like: ```...

PS, Congrats on being the 100th issue submitter!

Logic hooks are done in php, yes. If your instance is On-Demand, you can build a module loadable package for them... Something like this: http://support.sugarcrm.com/04_Find_Answers/03_Developers/Module_Loader/Examples/Creating_an_Installable_Package_for_a_Logic_Hook Which version of Sugar are...

Gem works fine for query and updates! It's really just a wrapper around the v2 web services library, which is still quite functional and supported.

Since the gem just wraps the REST API, this issue is most likely on the Sugar server. If you turn on debug, you can peek at what we are sending....

I honestly don't think it's possible to do this via set_entry because the base64 encoded contents of "uploadfile" get converted to UTF-8 automatically. Here is a workaround: ``` # Read...

Additionally, the "uploadfile" property is a bit ambiguous. I'm currently investigating how to utilize this property via REST.

So if : uploadfile = Base64.encode64(file) you get something like this in the log: Sun Apr 10 15:58:04 2011 [5219][1][DEBUG] Localization: translating [ UEsDBBQABgAIAAAAIQCsmJF53gEAAA0OAAATAAgCW0NvbnRlbnRfVHlwZXNd Whereas if: :uploadfile => "Sugarcon Presentation.pptx"...

BTW, I've ruled out the parameter ordering problem (this is still an issue, but only with the REST API method arguments, not the actual values being passed.).

Yeah, documents are pretty bad. It might make more sense to just add some methods via the extension framework to fix this. Also, this doesn't work... I'm investigating why: SugarCRM::Document.last.revisions