AnsweredAssumed Answered

Need assistance with an API Script outside SugarCRM but on the same server.

Question asked by cda cda on Apr 17, 2014
Latest reply on Apr 22, 2014 by cda cda
Hello,

I am new to programming with Sugar's APIs and need help with a problem. 

I need to interface with Sugar but the trigger to initiate the scripts actions won't be done through Sugar. I don't believe Logic Hooks will be used as the script will only execute when a visitor hits a certain page on my main website.

I have tried REST but it seems to be intended for applications not on the same server. Ideally I would include some SugarCRM files in my PHP script and go from there.

Here is what I'm working with:
SugarCRM CE 6.5.4
Domain: www.example.com
Sugar Install: www.example.com/SugarCRMInstall
Directory structure for Domain: /home/example/public_html/page.php
Directory structure for SugarCRM: /home/example/public_html/SugarCRMInstall/

  • I understand beans are the way to go for interfacing with Sugar?
  • Is there an example of how to make a PHP script to access SugarCRM directly? A script that shows (require("thesugarfile.php")), some sample bean calls, etc)?
  • Where I can look for documentation for accessing each module through beans. A big help would be a list of available modules and the names they are referred to in PHP in the default SugarCRM CE installation ("Accounts, Contacts, Leads").
  • Documentation for how each module is related. (Ex: How Email Adresses are related to Prospects)
Any help would be great as I'm stuck on moving forward.


Outcomes