Results 1 to 6 of 6

Thread: Notes - Can't add values to Notes module through Soap

  1. #1
    DigiCRM is offline Senior Member
    Join Date
    Sep 2008
    Posts
    84

    Default Notes - Can't add values to Notes module through Soap

    $module_name="Notes";
    $note=array(
    array('name'=>'name','value'=>$notes_subject),
    array('name'=>'description','value'=>$notes_descri ption),
    array('name'=>'parent_type','value'=>'Accounts'),
    array('name'=>'parent_id','value'=>$_SESSION['accountid'])
    );


    $create_note=$client->call('set_entry',array($session_id,$module_name,$ note));


    print_r($create_note);

    i tested using this code.but its shows error msg
    Array ( [id] => -1 [error] => Array ( [number] => 40 [name] => Access Denied [description] => You do not have access ) )
    any idea why?

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Notes - Can't add values to Notes module through Soap

    The SOAP API works for public modules.
    Public modules are those which are visible at the module tabs.
    So you need to add the Notes into $modList array using an extended include:

    custom/Extension/application/Ext/Include/include.php:

    <?php
    $moduleList[] = 'Notes';
    ?>

    Go to Admin -> Repair -> Rebuild Extension and try again the SOAP.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    DigiCRM is offline Senior Member
    Join Date
    Sep 2008
    Posts
    84

    Default Re: Notes - Can't add values to Notes module through Soap

    hi
    thanks for your reply.
    custom/Extension/application/Ext/Include/include.php: i create this page with code $moduleList[] = 'Notes';
    and went to Admin -> Repair -> Rebuild Extension .
    But its not displaying at the module tabs.i try soap again but can't creating notes and shows the same error
    Array ( [id] => -1 [error] => Array ( [number] => 40 [name] => Access Denied [description] => You do not have access ) ) .
    help me plz.

  4. #4
    DigiCRM is offline Senior Member
    Join Date
    Sep 2008
    Posts
    84

    Default Re: Notes - Can't add values to Notes module through Soap

    Now notes working...
    modules visible at the module tabs..

  5. #5
    jkohlbach's Avatar
    jkohlbach is offline Senior Member
    Join Date
    Apr 2010
    Location
    Brisbane, Australia
    Posts
    103

    Default Re: Notes - Can't add values to Notes module through Soap

    Hey DigiCRM,

    I notice you got this working, care to share how you fixed it in the end? I'm having the same issue and andope's suggestion has not worked.
    Cheers,
    Josh Kohlbach

    --
    Check out my Free SugarCRM Quick Start Guides.
    Neatly presented, easy to follow, instructional guides.
    --

  6. #6
    zaheer is offline Junior Member
    Join Date
    Jan 2011
    Posts
    2

    Default Re: Notes - Can't add values to Notes module through Soap

    Hi,
    I am unable to create note attachement and I am also not getting any error
    $attachment=array(
    array('name'=>'id','value'=>$create_note['id']),
    array('name'=>'filename','value'=>'readme.txt'),
    array('name'=>'file','value'=>$file)
    );

    $result = $client->call('set_note_attachment',array($session_id,$a tt achment));
    var_dump($result2); die();

    array(2) { ["id"]=> string(2) "-1" ["error"]=> array(3) { ["number"]=> string(1) "0" ["name"]=> string(8) "No Error" ["description"]=> string(8) "No Error" } }
    getting this result.

    neither there is any error nor I have received ID for note attachment.


    Please help me out, Although I have created note easily. and getting its ID.


    is there any option in configuration of SugarmCRM for enabling this. I am facing this issue in both community edition Version 6.1.0 (Build 5389) and professional edition Version 6.0.3 (Build 4339)

    Second while getting account related to one ID I am getting false result in $result2.

    $result2 = $client->call('get_entry_list',array('session'=>$session _i d,'module_name'=>'Accounts','query'=>"id = '1b7c5fd1-ca4a-b383-c506-4d353fde889b'",'order_by'=>'','off//set'=>$offset, 'select_fields'=> array(), 'max_results'=>'1'));
    var_dump($result2);die();

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Emailing Notes from Notes Window?
    By surfish in forum Help
    Replies: 3
    Last Post: 2011-01-18, 07:27 AM
  2. Notes and attachment display using soap
    By crmqwerty in forum Help
    Replies: 0
    Last Post: 2008-06-20, 07:13 AM
  3. A little but useful fix for Notes module
    By Skipidar in forum Developer Help
    Replies: 1
    Last Post: 2006-11-27, 04:05 AM
  4. Create Notes easily with Notes Templates
    By malcolmh in forum Feature Requests
    Replies: 3
    Last Post: 2006-09-26, 02:42 PM
  5. Replies: 3
    Last Post: 2005-10-31, 08:31 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
  •