Associating and Disassociating Records using JavaScript and the REST Endpoint for Web Resources
This page requires JavaScript and will update dynamically.
Associate Accounts Sample
Associate Account to Email as ActivityParty Sample
This sample will:
Create a new account record named "Parent Account".
Create a new account record named "Child Account".
Associate the records setting the "Parent Account" as the Parent Account of the "Child Account".
Display links to allow you to verify that the association was done.
Display a button to allow you to disassociate the records.
If you choose this option the sample will display links to allow you to verify that the records are no longer associated.
Display a button to allow you to delete the records.
If you choose this option the sample will display a message when the records are deleted.
Click the Start Associate Account to Email as ActivityParty Sample button to start the sample showing how to associate an account record to an activity using ActivityParty.
This sample will:
Create a new account record named "Email Sender Account".
Create a new email activity record named "Email Activity".
Create a new activity party record that associates the "Email Sender Account" to the From: field of the "Email Activity".
Display links to allow you to verify that the association was done.
Display a button to allow you to delete the records.
If you choose this option the sample will display a message when the records are deleted.