Table of Contents

Summary

This context Command sets a value for the property specified by name on the specific Deposit Account which can be used with the click event for Summary and Field Tags as well as in Andi Chat.

All that is required to use the command is the property name to change, an id to identify the account and the value to be set. For example if the skill needed to change the rate of the Deposit Account that would use the property name rate along with the new rate you want to include plus the identifier which can be the deposit account id or the name of the product.


// Can be the id of the deposit account or the product name.
const idOrName: string = "07cc8823-ecbd-4040-b167-8a7722873d28";
const propertyName: string = "rate";
const propertyValue: number: 0.5;
    
const command: contextCommand = {
    name: "setPropertyOnDepositAccount",
    args: [idOrName, propertyName, propertyValue]
};

const tag: SummaryTag = {
    key: "sample-tag",
    text: "Sample Tag",
    tagType: FieldTagTypes.Info,
    onClick: [command]
};        

Commands have more restrictions then context queries which include that the values being passed in or of correct type, format and length in cases of Strings. Formatting around properties like dates will be based on the locale of the application user and needs to be considered. Also in certain circumstances a property may not be settable 100% of the time. While selecting properties from the list below consult the table for further details.

Back to the top

Field List

Field Name: averageBalance
Attribute Description
Type Number (or Locale Formatted Currency String)
Max Length N/A
Readonly Restriction N/A

Field Name: cdOriginationDate
Attribute Description
Type Date String (Locale formatted)
Max Length N/A
Readonly Restriction N/A

Field Name: cdTerm
Attribute Description
Type Number (Integer)
Max Length N/A
Readonly Restriction N/A

Field Name: currency
Attribute Description
Type Text
Max Length N/A
Readonly Restriction N/A

Field Name: rate
Attribute Description
Type Number (decimal value Locale Formatted)
Max Length N/A
Readonly Restriction N/A

Field Name: revenue
Attribute Description
Type Number (or Locale Formatted Currency String)
Max Length N/A
Readonly Restriction N/A

Back to the top