Forum Discussion

skodali's avatar
skodali
New Contributor III
6 years ago
Solved

Account Reference

Hello All, Is there a way to select the account reference dynamically based on the criteria? For example, If I pass “Goods ODBC” as a parameter can snaplogic automatically select the specifi...
  • jovan_j's avatar
    6 years ago

    Hi skodali,

    If you enable the equal toggle sign you can write JavaScript expressions. Please see screenshot bellow:

    I believe in your case, you can specify pipeline parameter (ex. account_reference) in which you can pass the values (ex: “Goods ODBC”). The expression would be:
    _account_reference == “Goods ODBC” ? “…shared/Goods ODBC” : “other account”.
    If the expression evaluates true it will dynamically select the “…shared/Goods ODBC” account.

    Please let me know if this helped you or if you need additional information.

    Regards, Jovan.