Results 1 to 4 of 4

Thread: Module Builder Loading Data

  1. #1
    kwhelchel is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    12

    Default Module Builder Loading Data

    ok so now I have a module built that I like and seems to function well, and a releation to the accounts module.
    The module I bulit is based on the accounts module anyway. Now what I need to do is load a csv file to the new module I built. The file I have has the same account name fild as the accounts name field that is already thier.
    Now what I need it to do if I can is when I load the new module with the csv file is to have it link to the accounts module to the proper accounts with the new module and its info??


    Keith

  2. #2
    ashokinsugar is offline Sugar Community Member
    Join Date
    Apr 2011
    Location
    INDIA
    Posts
    67

    Default Re: Module Builder Loading Data

    Hi,

    Can you please be more specific and also please mention the version you are using.

    Regards,
    Ashok

  3. #3
    kwhelchel is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    12

    Default Re: Module Builder Loading Data

    Version SugarCE-6.1.6
    I have a new module I built that does work. With a relationship to the accounts module.
    I have my account populated with my data with all of that info.
    I need to import the data into the new module.
    Non of this is an issuse at this time.
    Now when I import the data to the new module, I would like it to be linked to the the account it is associated with in the accounts module. Durning the import, instead of haveing to go back and manually link each one in the individule accounts.

    It is like as if i added a case or something to the account.

    Keith

  4. #4
    arpita rana is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    13

    Thumbs up Re: insert value instead of update in email_addresses table

    I want to do update email in email_addresses that time instead of update in email_addresses get new entry with updated email in email_address.
    so there is two email live old one and new one also in sugarCRM DB.

    So what to do direct update instead of make new entry?


    // create a new leads record and grab the leads ID
    $param_entry_list=array(
    'session'=>$session_id,
    'module_name'=>'Users',
    'name_value_list'=> array(
    array('name' => 'new_with_id','value' => 1),
    array('name'=>'id','value'=>123),
    array('name'=>'email1', 'value'=>test@gmail.com),
    )
    );
    Help me ASAP.
    $json = json_encode($param_entry_list);
    $postArgs = 'method=set_entry&input_type=JSON&response_type=JS ON&rest_data=' . $json;
    curl_setopt($curl, CURLOPT_POSTFIELDS, $postArgs);
    $response = curl_exec($curl);
    $result = json_decode($response);
    if (!$result->id) {
    DEBUG("Fatal Error", "UserGeneration Failed");
    die();
    }
    $lead_id = $result->id;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 2011-08-19, 09:22 AM
  2. Error loading page of Module Builder
    By rpothin in forum Help
    Replies: 1
    Last Post: 2011-06-08, 07:17 AM
  3. Adding a new Data Type fields in module builder.
    By amol.gangurde in forum Help
    Replies: 0
    Last Post: 2010-07-19, 09:27 AM
  4. Module Builder Failed to retrieve data
    By Chris.M in forum Developer Help
    Replies: 1
    Last Post: 2009-11-16, 10:48 AM
  5. Description of Module Builder Data types???
    By alexcheng in forum Developer Help
    Replies: 2
    Last Post: 2008-11-10, 04:06 AM

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
  •