• 102 views | 2 messages Discussion: LEAP
    Topic: Modifying Key Assumptions Expressions With API/ScriptSubscribe | Previous | Next
  • Ethne Laude 6/28/2022

    Hi all

    Has anyone been able to access and change the value for different key assumption branches using the API / script editor? If so, would it be possible to share the script you wrote to do so so that I could go through it and learn?

    Thanks in advance
    Ethne
  • Charlie Heaps 7/5/2022
      Best Response

    Hi Ethne,

    Here's an example, that should work with Freedonia. You can enter this in the Advanced: Edit Scripts screen..

    SET BranchVar = LEAP.BranchVariable("Key\Population:Activity Level")
    LEAP.ActiveScenario = "Current Accounts"
    BranchVar.Expression = "99"
    LEAP.ActiveScenario = "Baseline"
    BranchVar.Expression = "Growth(3%)"