I'm trying to integrate my rails app with SugarCRM. Is it possible to fetch the Contact picture from SugarCRM using REST API? Please let me know.
To get the profile image for a user do the following:
login
method through RESTget_entry_list
method through REST, with the following parameters:
Users
users.user_name = 'xxxx'
picture
get_document_revision
)In such scenario, I faced a problem where the upload folder stores file with name of the record id, i.e the GUID without file extension. So to cop up with this I did write a function to copy the file at same hierarchy but with its extension. Example: A png extension file at upload folder with name say, '32sdft-tg35f-Tuhis-675rtyf-77666-46dgc' will end up as, '32sdft-tg35f-Tuhis-675rtyf-77666-46dgc.png' Now only the path will be require to render the image.
Rest all things as applicable as suggested by our friend, Kare !!