The custom table is being use for saving product sample orders. I am not using the E-commerce module on the site. The sample order is process with a helper class that places the order to an outside system.
This helper class inserts the order in a custom table and can insert into the Forms table also if need be. I was also able to generate and save a custom activity in the EMS link to the current user and update the current user info in the contact management.
I am logging. Two questions.
1: Is there a API way (Maybe a method to the record id) to link the custom activity object to the custom form record or the form record (if this approach is easier)? Looking at how to link the form record in Activity detail to the form record via the API.
2: Under Marketing Automation I notice I can create a trigger for Activity Type: Custom Activity. Is there a Macro I can use in the Additional condition that will pull the Custom Activity name SampleOrder?