How to relate the existing record through the controller file like(record.js,create-action.js) in sugarCRM 7.* ?

Hey Guys,

I need to relate my Account module record to my custom module existing record base on conditions using controller files.

Any advise or guidance would be greatly appreciated..!!

Thanks.

Parents
  • There is an API for that, in your instance, from the browser go to:

    sugarcrm/rest/v10/help

    look for

    POST /<module>/:record/link/:link_name/:remote_id

    createRelatedLink

    Relates an existing record to this module

    or

    POST /<module>/:record/link/:link_name

    createRelatedRecord

    Create a single record and relate it to this module

    depending on whether you want to link an  existing record or create a new record and link it

    HTH

    FrancescaS

Reply
  • There is an API for that, in your instance, from the browser go to:

    sugarcrm/rest/v10/help

    look for

    POST /<module>/:record/link/:link_name/:remote_id

    createRelatedLink

    Relates an existing record to this module

    or

    POST /<module>/:record/link/:link_name

    createRelatedRecord

    Create a single record and relate it to this module

    depending on whether you want to link an  existing record or create a new record and link it

    HTH

    FrancescaS

Children