|
Method Detailboolean addChart(Chart chart) Adds chart to email. Note - only server charts supported (created using ChartTool) otherwise exception occurs
Parameters:
Returns: boolean Since: 10-22-2010 addData(Data data) Adds the specified Data to this response.
Parameters:
Since: 05-28-2010 boolean addDataList(DataList list) Adds the specified list to a page
Parameters:
Returns: boolean Since: 07-11-2008 boolean addDataMap(String id, Data data) Registers the data in the response with the specified id.
Parameters:
Returns: boolean Since: 05-28-2010 boolean addDataMaps(String keyColumn, DataList list) Extracts the records from the list and registers them in the response using the values in the key column. Limited to 500 records per response.
Parameters:
Returns: boolean Since: 05-28-2010 boolean addDataRecord(String id, DataRecord dataRecord) Registers the DataRecord in the response with the specified id. Limited to 500 records per response.
Parameters:
Returns: boolean Since: 11-09-2010 boolean addFile(File file) Attaches the file to the email as an attachment.
Parameters:
Returns: boolean Since: 10-22-2010 addPayload(Payload payload) Adds the payload to this response.
Parameters:
Since: 07-20-2010 allowHTML(String key) Permits any rendering target with the specified key to be rendered as HTML.
Parameters:
Since: 08-02-2017 boolean attachAttachment(Attachment attachment) Attaches the specified Attachment to the email. Attachment limit is maximum transaction packet size.
Parameters:
Returns: boolean Since: 06-22-2009 boolean attachDocument(Document doc) Attaches the specified document as an attachment to the email. The document will be converted to pdf if it is not already a pdf. This method returns false if the document is not a PDF or cannot be converted to a PDF. Attachment limit is maximum transaction packet size.
Parameters:
Returns: boolean Since: 11-07-2007 enableDeliveryStatus() Enables delivery status for this email. This method requires inbound email configured if SMTP settings are configured for current enterprise or a DSN Cloud Subscription Service. When delivery status received, this email job will be marked as "delivered" or "failed" Since: 10-22-2010 enableReply(String workflow) Allows recipient to reply to this email. This method requires inbound email configuration for current enterprise or a DSN Cloud Subscription Service. When recipient replies to the email, specified system workflow name will be provided to the listener.
Parameters:
Since: 04-09-2014 enableWorkflowDeliveryStatus(String workflow) Enables delivery status for this email. This method requires inbound email configuration for current enterprise or a DSN Cloud Subscription Service. When a delivery status event occurs, this email job have its DSN status updated and specified workflow will be provided to the listener.
Parameters:
Since: 04-09-2014 String get(String key) Returns the value associated with key if it exists, null otherwise.
Parameters:
Returns: String Since: 08-28-2018 int getAttachmentCount() Returns the number of attachments to this email. Returns: int Since: 10-22-2010 int getAttachmentSize() Returns the size of the attachment payload in KB. Returns: int Since: 10-22-2010 Boolean getBoolean(String field) Returns the given field as a boolean. The value must be true or false. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns: Boolean Since: 07-11-2008 Boolean getCommonBoolean(String field) Returns the given field as a boolean. The value must be any of the following combinations: [true/false], [1/0], [yes,no], [on,off]. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns: Boolean Since: 08-22-2008 Data getData() Returns the Data object for this response. Returns: Data Since: 05-31-2007 Date getDate(String field) Returns the given field as a Date. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns: Date Since: 07-11-2008 Boolean getDefaultBoolean(String field, Boolean defaultBoolean) Returns the given field as a boolean. If the field does not exist or refers to a non-boolean field, it returns the default value
Parameters:
Returns: Boolean Since: 09-05-2008 Date getDefaultDate(String field, Date defaultDate) Returns the given field as a date. If the field does not exist or refers to a non-date field, it returns the default value
Parameters:
Returns: Date Since: 09-05-2008 Double getDefaultDouble(String field, Number defaultDouble) Returns the given field as a double. If the field does not exist or refers to a non-double field, it returns the default value
Parameters:
Returns: Double Since: 09-05-2008 Integer getDefaultInt(String field, Number defaultInt) Returns the given field as an int. If the field does not exist or refers to a non-int field, it returns the default value
Parameters:
Returns: Integer Since: 09-05-2008 String getDefaultValue(String field, String defaultValue, boolean emptyIsNull) Returns the given field. If the field does not exist, it returns the default value. If the field exists but is value is empty, this method returns defaultValue only if emptyIsNull=true.
Parameters:
Returns: String Since: 09-05-2008 Double getDouble(String key) Returns the given value of the given key as a double. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns: Double Since: 07-11-2008 Integer getInt(String key) Returns the given value of the given key as an Java Int which is smaller than a Javascript Int. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns: Integer Since: 07-11-2008 Long getLong(String key) Returns the given value of the given key as Java Long which is larger. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns: Long Since: 05-28-2022 String getValue(String key) Returns the value associated with key if it exists, null otherwise.
Parameters:
Returns: String Since: 07-11-2008 removeAttachments() Removes the attachments, if any. Since: 10-22-2010 removeDataList(String name) Removes the datalist from the payload
Parameters:
Since: 06-29-2021 removeDataMap(String id) Removes the data in the response with the specified id.
Parameters:
Since: 12-21-2017 removeValue(String key) Removes the associated key from the response.
Parameters:
Since: 05-28-2010 schedule(Date date) Schedules the email to be sent after the specified date.
Parameters:
Since: 10-22-2010 String sendToAddress(String email) Sends the email to the specified email address and returns the email job id. This will return the word 'BLOCKED' if the email is on the system block list.
Parameters:
Returns: String Since: 10-22-2010 sendToAddresses(String[] addresses) Sends the email to the specified addresses.
Parameters:
Since: 10-22-2010 int sendToGroup(String group) Sends this email to all users of the specified group who have the Access Transaction permission on this Transaction. Returns the number of emails sent.
Parameters:
Returns: int Since: 12-17-2008 sendToRole(String role) Sends the email to all individuals who have the specified role.
Parameters:
Since: 05-31-2007 boolean set(String name, Object value) Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc). The object must be capable of being serialized as a String.
Parameters:
Returns: boolean Since: 08-28-2018 boolean setAccessConsoleLink(String action, String profileId, String palId) Creates a link that can be clicked from within the email that will provide access to a Console Pal associated with the specified ID.The user must belong to the enterprise and have the appropriate Console Pal permissions OR must have been granted access to the Console Pal. This method will error if the specified Pal is not a Console Pal.
Parameters:
Returns: boolean Since: 01-13-2012 boolean setAnonymousAccessConsoleLink(String action, String palId) Creates a link that can be clicked from within the email that will provide access to a Console Pal associated with the specified ID.The user will be granted access to the Console Pal with the personal profile upon successful authentication. This method will error if the specified Pal is not a Console Pal. By default, single use is set to true for security reasons. Additionally, new user email validation is set to true and we require the user account authenticating from the email to match the email address this was sent to. This means a profile or secondary email address of the user must match the email address this is sent to.
Parameters:
Returns: boolean Since: 01-13-2012 setAnonymousLink(String action, boolean verifyEmail, boolean singleUse) Creates a link that can be clicked from within the email that will allow an authenticated user to access the transaction without having a role. Use this with care since you have no control over the ultimate destination of the email and anyone using the link will have access to the Transaction. If singleUse is true, the link expires when it is used. If verifyEmail is used, the user must have a profile with an email address that matches the email address you've entered when you send the email. Once the link has been used to access the transaction, it is no longer anonymous but bound to the user who used it.
Parameters:
Since: 02-08-2008 boolean setBoolean(String name, Boolean value) Sets the boolean value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns: boolean Since: 08-28-2018 setCreateOrAccessTransactionLink(String action, String palId, boolean chain, Data data) Creates a link that can be clicked from within the email that will either access last transaction user has role in or create a new transaction using the Pal associated with the specified ID.If chain is true, the new transaction will be logically associated with this transaction.If data is non null, the data will be available as part of the creation/access of the target transaction-- as if it was passed on the request.
Parameters:
Since: 03-11-2010 setCreateTransactionLink(String action, String palId, boolean chain, Data data) Creates a link that can be clicked from within the email that will create a new transaction using the Pal associated with the specified ID.If chain is true, the new transaction will be logically associated with this transaction.If data is non null, the data will be available as part of the creation of the new transaction-- as if it was passed on the request.
Parameters:
Since: 12-31-2007 boolean setData(String id, Data data) Registers the data in the response with the specified id.
Parameters:
Returns: boolean Since: 02-11-2019 boolean setDate(String name, Date value) Sets the date value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns: boolean Since: 08-28-2018 boolean setDouble(String name, Number double) Sets the decimal value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns: boolean Since: 08-28-2018 setExpiration(Date date) Sets the expiration date on links in the email. After this date, they will no longer work. Note- this method is a potential security hole. You should use good judgement in setting an expiration date.
Parameters:
Since: 09-12-2008 boolean setFrom(String name, String address) Sets the 'From' information for the email, over-writing the default provided by the system. This functionality requires the email SMTP server to be configued for support and the email setting being used must allow alias sending. Pass null to remove these settings.
Parameters:
Returns: boolean Since: 02-20-2021 setGroupUse(boolean groupUse) Identifies this email as destined for a group email address (as opposed to a specific user email address). Access to Navigator from this link requires (a) the person accessing the transaction must already have an account and (b) the person must have an enterprise profile on the enterprise associated with the transaction. Best practices: either set the email to single use or specify an appropriate expiration date.
Parameters:
Since: 06-02-2009 setHTML(String key, String xhtml) Adds the given XHTML to the page (the XHTML should ideally be well-formed). You must use the c:html tag for displaying the content. Throws exception if the content contains illegal tags or attributes. You should avoid inline scripts or script blocks.
Parameters:
Since: 07-11-2008 boolean setInt(String name, Number value) Sets the integer value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns: boolean Since: 08-28-2018 boolean setLoginPage(String loginPage) Sets the login page for the returning email. Returns false if the login page does not exist or if the Pal does not support custom login screens. Use null to set the default login page.
Parameters:
Returns: boolean Since: 11-03-2010 setNewUserEmailValidation(boolean validate) This method applies only to new users who will create an account as a result of accessing the transaction from an email link. This is false by default. If set to true, the user will be forced to validate the email as part of the account creation process.
Parameters:
Since: 05-26-2009 setReplyTo(String email) Sets the replyTo email address. Pass null to remove the replyTo.
Parameters:
Since: 10-22-2010 setSingleUse(boolean singleUse) Marks the email as single use (or not). Single use means once it has been used it will no longer be able to access the transaction.
Parameters:
Since: 09-12-2008 boolean setString(String name, String value) Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns: boolean Since: 08-28-2018 setSubject(String subject) Sets the subject of the email (over-rides the subject set during Pal development).
Parameters:
Since: 10-22-2010 setUtilityReference(String reference) Sets the utility billing reference for this email. This is a development feature.
Parameters:
Since: 04-22-2011 setValidationCode(String macroTarget) Creates a validation code and replaces the specified target in the message body with the code.
Parameters:
Since: 04-27-2009 setValue(String key, Object value) Sets the string value referenced by name. The object must be capable of being serialized as a String.
Parameters:
Since: 07-11-2008 String toString() Returns a description of this object. Returns: String Since: 10-22-2010 |
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. | API Date: Dec 03, 2024 10:24 AM |