Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
How Do I Determine the Record a Task was Created From in Script?
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.