Skip to main content

Posts

Showing posts with the label Server Event

Email.SetupSmtpMailServerAndSend Method (Aras.Server.Core Namespace)

Email.SetupSmtpMailServerAndSend Method Sends an email message with specified message object. Syntax Email.SetupSmtpMailServerAndSend( msg ) Parameters Name Type Description msg MailMessage Required. A MailMessage object that contains the message to send. See Also Email Class Aras.Server.Core Namespace Aras Innovator Server Framework

Email.SendEmailToIdentityEx Method (Aras.Server.Core Namespace)

Email.SendEmailToIdentityEx Method Sends an email message. Syntax Email.SendEmailToIdentityEx( toIdentity , subject , plainBody , htmlBody , fromUser ) Parameters Name Type Description toIdentity String Required. The Identity name of the recipient. subject String Required. The subject for email message. plainBody String Required. The message body in plain text. This parameter will be useless when "htmlBody" is not empty string. htmlBody String Required. The message body in html text. fromUser String Required. The User login name of the sender. See Also Email Class Aras.Server.Core Namespace Aras Innovator Server Framework

Email.SendEmailToIdentity Method (Aras.Server.Core Namespace)

Email.SendEmailToIdentity Method Sends an email message with plain text. Syntax Email.SendEmailToIdentity( toIdentity , subject , body , fromUser ) Parameters Name Type Description toIdentity String Required. The Identity name of the recipient. subject String Required. The subject for email message. body String Required. The message body. fromUser String Required. The User login name of the sender. See Also Email Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.WriteLog Method (Aras.Server.Core Namespace)

UtilitiesProxy.WriteLog Method Writes a message to log file with timestamp and database name. Syntax UtilitiesProxy.WriteLog( logFile , [text] ) Parameters Name Type Description logFile String Required. The file name. [text] String Required. The message to write. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.WriteDebug Method (Aras.Server.Core Namespace)

UtilitiesProxy.WriteDebug Method Writes a message to log file with timestamp. Syntax UtilitiesProxy.WriteDebug( debugFile , [text] ) Parameters Name Type Description debugFile String Required. The file name. [text] String Required. The message to write. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.SaveTextData Method (Aras.Server.Core Namespace)

UtilitiesProxy.SaveTextData Method Saves text data to a file. Syntax UtilitiesProxy.SaveTextData( fileName , text2Save , append2File ) Parameters Name Type Description fileName String Required. The file path to save. text2Save String Required. The text data to save. append2File Boolean Required. True to append data to the file, false to overwrite the file. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.IsIdValid Method (Aras.Server.Core Namespace)

UtilitiesProxy.IsIdValid Method Determines if the item ID is valid. Syntax UtilitiesProxy.IsIdValid( itemId , doThrowException ) Parameters Name Type Description itemId String Required. The ID to check. doThrowException Boolean Required. True to throw exception when ID is not valid, otherwise false. Return Value A Boolean. Returns true if the ID is valid, otherwise returns false. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.GetIdentityNameByUserId Method (Aras.Server.Core Namespace)

UtilitiesProxy.GetIdentityNameByUserId Method Gets Alias name of specified user. Syntax UtilitiesProxy.GetIdentityNameByUserId( userId ) Parameters Name Type Description userId String Required. User ID. Return Value A String. Returns Alias Identity name if specified user exists, otherwise returns an empty string. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.GetIdentityNameByIdentityId Method (Aras.Server.Core Namespace)

UtilitiesProxy.GetIdentityNameByIdentityId Method Gets Identity name by Identity ID. Syntax UtilitiesProxy.GetIdentityNameByIdentityId( identityId ) Parameters Name Type Description identityId String Required. Identity ID. Return Value A String. Returns Identity name if specified Identity exists, otherwise returns an empty string. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.GetIdentityIdByUserId Method (Aras.Server.Core Namespace)

UtilitiesProxy.GetIdentityIdByUserId Method Gets Alias ID of specified user. Syntax UtilitiesProxy.GetIdentityIdByUserId( userId ) Parameters Name Type Description userId String Required. User ID. Return Value A String. Returns Alias Identity ID if specified user exists, otherwise returns an empty string. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.FolderExists Method (Aras.Server.Core Namespace)

UtilitiesProxy.FolderExists Method Determines if the specified directory exists. Syntax UtilitiesProxy.FolderExists( folderPath ) Parameters Name Type Description folderPath String Required. The directory to check. Return Value A Boolean. Returns true if the directory exists, otherwise returns false. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

UtilitiesProxy.FileExists Method (Aras.Server.Core Namespace)

UtilitiesProxy.FileExists Method Determines if the specified file exists. Syntax UtilitiesProxy.FileExists( filePath ) Parameters Name Type Description filePath String Required. The file to check. Return Value A Boolean. Returns true if the file exists, otherwise returns false. See Also UtilitiesProxy Class Aras.Server.Core Namespace Aras Innovator Server Framework

ErrorLookup.Lookup Method (Aras.Server.Core Namespace)

ErrorLookup.Lookup Method Finds text message by UserMessage name. Syntax (Overloads) ErrorLookup.Lookup( name ) ErrorLookup.Lookup( name , par1 ) ErrorLookup.Lookup( name , par1 , par2 ) ErrorLookup.Lookup( name , par1 , par2 , par3 ) ErrorLookup.Lookup( name , parameters ) Parameters Name Type Description name String Required. UserMessage name. par1 String Required. String interpolation for {0}. par2 String Required. String interpolation for {1}. par3 String Required. String interpolation for {2}. parameters Object() Required. An object array to perform string interpolation. Return Value A String. Returns message text of specified UserMessage. See Also ErrorLookup Class Aras.Server.Core Namespace Aras Innovator Server Framework