sugar-notes-attachment

Attach Notes to custom SugarCRM modules using parent_id and parent_type relationships.

6|3|Updated Oct 27, 2025
One-click install
npx skills add https://github.com/sugarcrm-developers/ai-for-sugar-devs --skill sugar-notes-attachment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sugar-notes-attachment
Source: https://github.com/sugarcrm-developers/ai-for-sugar-devs/tree/main/skills/sugar-notes-attachment
Command: npx skills add https://github.com/sugarcrm-developers/ai-for-sugar-devs --skill sugar-notes-attachment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the unique challenge of attaching Notes to a custom SugarCRM module, allowing for a 1:M relationship without a join table, which is an exception to the typical M:M-with-join-table rule.

Core Features & Use Cases

  • Custom Module Note Attachment: Enables the creation of a 1:M relationship between Notes and a custom module.
  • Special Relationship Handling: Implements a unique pattern where parent_id and parent_type are used instead of a join table.
  • Use Case: For instance, you can attach Notes to a "Foos" module, allowing for a one-to-many relationship without the usual join table.

Quick Start

Use the sugar-notes-attachment skill to attach Notes to your custom module "Foos".

Frequently Asked Questions about sugar-notes-attachment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I attach Notes to a custom SugarCRM module without a join table?

To attach Notes to a custom SugarCRM module without a join table, use the special 1:M relationship pattern via parent_id and parent_type fields instead of creating an intermediate join table.

Why does SugarCRM use parent_id and parent_type for Notes relationships?

SugarCRM uses parent_id and parent_type for Notes relationships as an exception to the typical M:M-with-join-table rule, enabling a direct 1:M relationship between Notes and custom modules without requiring a join table.

What is relationship_role_column and relationship_role_column_value in SugarCRM?

relationship_role_column and relationship_role_column_value are manual parameters required in SugarCRM relationship definitions to properly configure the special 1:M Notes attachment pattern using parent_id and parent_type fields.

Can I create a one-to-many Notes relationship for a custom SugarCRM module?

Yes, you can create a one-to-many Notes relationship for a custom SugarCRM module by leveraging the parent_id and parent_type fields, which requires manual setup of relationship_role_column and relationship_role_column_value in the relationship definitions.

Do I need a join table for SugarCRM Notes attachments on custom modules?

No, you do not need a join table for SugarCRM Notes attachments on custom modules. The Notes module is an exception to the join table rule, using parent_id and parent_type to establish a direct 1:M relationship.