Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Pulling info from Sugar to another website?

  1. #1
    Dustin09 is offline Senior Member
    Join Date
    Dec 2009
    Posts
    29

    Default Pulling info from Sugar to another website?

    I'm coming into Sugar not knowing a whole lot. I have been trying to find the answer to this question for the past couple of hours. I looked into SOAP and leads, but only left confused.
    Basically what I want to do is pull info. from my custom module in Sugar and view some of the fields on a page hosted outside of Sugar. I need to know what database strings and such to put.
    Sugar Version 5.2.0k (Build 5837)

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Pulling info from Sugar to another website?

    If you look to the examples in your sugar installation (directory examples), you can see how to load data from sugarcrm into your own web application.
    Surely you can access the database directly but the SOAP interface gives you upgrade security and easy access to the objects of sugarcrm.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    Dustin09 is offline Senior Member
    Join Date
    Dec 2009
    Posts
    29

    Default Re: Pulling info from Sugar to another website?

    I know it's been frustrating the crap out of me. I entered my username and password and everytime I try to load the examples I get, "Not A Valid Entry Point". Is there something I'm leaving out?

  4. #4
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Pulling info from Sugar to another website?

    Oh yeah,

    the first line of the SOAP examples is wrong !!!

    Change it from

    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

    to

    if(!defined('sugarEntry'))define('sugarEntry', true);
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  5. #5
    Dustin09 is offline Senior Member
    Join Date
    Dec 2009
    Posts
    29

    Default Re: Pulling info from Sugar to another website?

    That helps a lot, now just got to figure out how to work it. I logged into "SoapTest" and all that popped up was "LOGIN:"

  6. #6
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Pulling info from Sugar to another website?

    Did you unprotect the examples directory?

    Just open the file /.htaccess

    If it looks like this:

    # BEGIN SUGARCRM RESTRICTIONS
    RedirectMatch 403 (?i).*\.log$
    RedirectMatch 403 (?i)/+not_imported_.*\.txt
    RedirectMatch 403 (?i)/+(soap|cache|xtemplate|data|examples|include|log4p hp|metadata|modules)/+.*\.(php|tpl)
    RedirectMatch 403 (?i)/+emailmandelivery\.php
    RedirectMatch 403 (?i)/+cache/+upload
    RedirectMatch 403 (?i)/+files\.md5$
    # END SUGARCRM RESTRICTIONS

    you must remove the examples directory in that kind:

    # BEGIN SUGARCRM RESTRICTIONS
    RedirectMatch 403 (?i).*\.log$
    RedirectMatch 403 (?i)/+not_imported_.*\.txt
    RedirectMatch 403 (?i)/+(soap|cache|xtemplate|data|include|log4php|metada ta|modules)/+.*\.(php|tpl)
    RedirectMatch 403 (?i)/+emailmandelivery\.php
    RedirectMatch 403 (?i)/+cache/+upload
    RedirectMatch 403 (?i)/+files\.md5$
    # END SUGARCRM RESTRICTIONS


    Then you should get the login panel of the SoapTest.php, in which you can type a valid userid and password of a sugar user to start the test.
    Attached Images Attached Images  
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  7. #7
    Dustin09 is offline Senior Member
    Join Date
    Dec 2009
    Posts
    29

    Default Re: Pulling info from Sugar to another website?

    Yes I did that, but when I login I get everything up to LOGIN: to print and it just stops

  8. #8
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Pulling info from Sugar to another website?

    Oh I see,

    did you change the SOAP Server address to your own SOAP address?

    $soapclient = new nusoapclient('http://localhost/sugarcrm/soap.php'); //define the SOAP Client an
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  9. #9
    Dustin09 is offline Senior Member
    Join Date
    Dec 2009
    Posts
    29

    Default Re: Pulling info from Sugar to another website?

    Yes, I've done that

  10. #10
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Pulling info from Sugar to another website?

    Mmmmhhh...

    can you post your file here?
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. add tab to contacts, with the info of a website.
    By guilty in forum Developer Help
    Replies: 1
    Last Post: 2009-09-26, 12:05 AM
  2. Replies: 2
    Last Post: 2009-06-03, 05:05 AM
  3. Automatic Account, Contant Info From Website
    By mslightbowne in forum Help
    Replies: 1
    Last Post: 2009-02-18, 06:16 PM
  4. Pulling changed info from ldap
    By speed in forum Help
    Replies: 1
    Last Post: 2008-10-14, 10:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •