Table of Contents

Summary

This context Command sets a value for the property specified by name on the specific Other 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 other account and the value to be set. For example if the skill needed to change the Description of the Other Account that would use the property name description along with the new value you want to include plus the identifier which can be the other account id or the name of the product.


// Can be the id of the other account or the product name.
const idOrName: string = "Wealth Management";
const propertyName: string = "description";
const propertyValue: number: "Real Estate Investments";
    
const command: contextCommand = {
    name: "setPropertyOnDepositAccount",
    args: [idOrName, propertyName, propertyValue]
};

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

Command properties names can also reference child objects and properties using dot notation when available as well array items. The array functions supported are the same as those for Context queries which include index number like otherAccountActivityBasedFees.0.unitPrice this references the first other account activity based fees unit price. By replacing the 0 to another positive integer it is possible to reference other fees if application. In addition to the index option the last option is also support. Using the previous example the 0 is replaced with last, otherAccountActivityBasedFees.last.unitPrice.

For Advance usage with findby check out this tutorial.

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: actualOneTimeRevenueTerm
Attribute Description
Type Number (Integer)
Max Length N/A
Readonly Restriction N/A

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

Field Name: averageBalance
Attribute Description
Type Number (or Locale Formatted Currency String)
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: description
Attribute Description
Type Text
Max Length N/A
Readonly Restriction N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Back to the top