Results 1 to 3 of 3

Thread: SugarCRM add new contact

  1. #1
    duliprb2005@yahoo.com Guest

    Exclamation SugarCRM add new contact

    Hi All,

    I am new for SugarCRM and PHP development. But I have very basic question. I want to create a new contact using address bar injection. php get command.

    Someone type url such as http://sugarurl/newcontact.php?name=dulip at this time I want to open new contact page including filled with name cage as dulip. How I am able to get this done.


    Thanks,
    Ravi.

  2. #2
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    296

    Default Re: SugarCRM add new contact

    EDIT:

    Have a look at the HTML source code that Sugar generates when it makes a Web-to-Lead form for you.

    Just take that code, look for the .php code that it calls, make a copy of it, and modify it to create a contact , instead of a lead.
    Last edited by Chris_C; 2013-04-11 at 12:50 AM. Reason: better solution.
    -Chris Coleman. IBM Certified Websphere Developer, UML Certified, Oracle Certified in Java
    Fix Permissions for SugarCRM installed on Linux shared web hosting - http://www.espacenetworks.com/downloads.html

  3. #3
    nrsdnitin's Avatar
    nrsdnitin is offline Sugar Community Member
    Join Date
    Apr 2011
    Location
    Daman India
    Posts
    122

    Default Re: SugarCRM add new contact

    Quote Originally Posted by duliprb2005@yahoo.com View Post
    Hi All,

    I am new for SugarCRM and PHP development. But I have very basic question. I want to create a new contact using address bar injection. php get command.

    Someone type url such as http://sugarurl/newcontact.php?name=dulip at this time I want to open new contact page including filled with name cage as dulip. How I am able to get this done.


    Thanks,
    Ravi.

    Dear

    Make your php code as below,

    get name = dulip

    first write one mysql query for find contact name with dulip

    get id of this contact

    make one temporary URL like CRM Software & Online Customer Relationship Management | SugarCRM English (Americas)3777cfd7-c11b-3c93-a765-5142c288b0d2

    r
    ecord = contact id that u have got from query

    now you can use window.open for open this contact in new window

    Best of luck ​

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SugarCRM, Contact Categories and Search
    By meesix in forum Developer Help
    Replies: 2
    Last Post: 2012-12-13, 10:12 PM
  2. SugarCRM - contact integration with web services
    By cegparamesh in forum Developer Help
    Replies: 0
    Last Post: 2012-11-27, 10:13 PM
  3. Error about export contact in sugarcrm
    By blackdragon084 in forum Help
    Replies: 0
    Last Post: 2010-04-07, 08:24 AM
  4. any help in SugarCRM , contact us
    By interfinet in forum Classifieds
    Replies: 0
    Last Post: 2009-02-26, 05:23 AM
  5. SugarCRM and Cisco Contact Center
    By Ramal in forum General Discussion
    Replies: 0
    Last Post: 2008-03-25, 05:09 PM

Tags for this Thread

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
  •