Globals.Emailsource
Globals.Emailsource returns the default file to get email addresses. This is a default and matches the email source on the [to Print] window in Deacom.
Note: Globals are not available to Grid and External scripts until 17.02. Please check the scripting tree in the script window in Deacom to make sure Globals are available.
Applies To
Properties and Methods
None
Available
The .Emailsource property is available in:
- 15.03.016
- All newer builds
Note: The .Emailsource property and all sub-classes, properties, and methods are only available in Form Layout scripts.
Type
String
Syntax
Globals.Emailsource;
Parameters
None
Example
//--This will work on any event on any form layout.
Event.Form.YesNo(`Globals.Emailsource: ${Globals.Emailsource}`);
/*
Expected Prompt response:
Globals.Emailsource: Contact
This could also be Bill-to Company, Manual, or Ship-To Company
*/