AnsweredAssumed Answered

Get Notes related to an Email via API

Question asked by Francesca Shiekh on Dec 13, 2016

I am trying to get all Notes related to an Email inside a controller.

I would think this should work

sugarcrm/rest/v10/Emails/<email_id>/link/emails_notes_rel

 

but it gives an error: 

"Could not find a relationship named: emails_notes_rel"

 

        'notes' => array(
            'name' => 'notes',
            'vname' => 'LBL_EMAILS_NOTES_REL',
            'type' => 'link',
            'relationship' => 'emails_notes_rel',
            'module' => 'Notes',
            'bean_name' => 'Note',
            'source' => 'non-db',
        ),

 

What am I missing?

 

thanks,
FrancescaS

Outcomes