Using SuiteScript, I need to determine which record a Task was created from, and then pull certain data from the Created From record based on its record type.
Tasks can be created from Customers, Vendors, Transactions just to mention a few. In addition to the build-in relationships, I have added custom CRM fields to the Task record to link the Task to many different Custom Records.
I could probably do what I need using custom fields if they supported joins. But they do not -- so I have to use a script.
So on the Task form I would like to calculated and set certain fields on the Task After Submit based on the Created From record.
I've searched through the online documentation and don't see any obvious way to get a reference to the Created From record.
Any ideas how to do this?