LimeObjectCommand is used for actions that target a specific record,
such as sending an email to a contact, generating a PDF for a deal, or
archiving a specific company. The context property identifies which object
the command should operate on.
// The platform instantiates a command without arguments and then assigns the // properties, so a command class declares no constructor. @Command({ id:'send-email' }) classSendEmailCommandimplementsLimeObjectCommand { publiccontext: LimeObjectContext; publicsubject: string; publicbody: string; }
constcommand = newSendEmailCommand(); command.context = { limetype:'person', id:42 }; command.subject = 'Meeting Invitation'; command.body = 'Please join us for a meeting...';
Context describing the LimeObject the command will operate on.
Must include both limetype (the type of object) and id (the specific
object's identifier). This ensures the command knows exactly which record
to target.
A command that operates on a single LimeObject.
LimeObjectCommand is used for actions that target a specific record, such as sending an email to a contact, generating a PDF for a deal, or archiving a specific company. The context property identifies which object the command should operate on.
Example: Declare a single-object command
Example: Execute a single-object command