Skip to main content
Newcomer
Aug 6, 2023 12:04 PM UTC
Solved

Triggering Finance BR from teh DM Step

hi,

Am looking to trigger the Finance Business rule from the DM step.Below is my snippet , but the DM step is not triggering the  finance BR . 

 

 

vijay_0-1691323344176.png

 

vijay_1-1691323438976.png

 

 

Thanks

 

    MikeG
    MikeGAnswer
    Contributor
    Aug 7, 2023 2:11 PM UTC

    Hi vijay you have it setup right.  You are attempting to run a function called Test.  You need to include the following statement: 

    If args.CustomCalculateArgs.FunctionName.XFEqualsIgnoreCase("Test") Then

    End if

    Uncomment that line out in your code.

    This methodology is great because you have 1 Finance BR, and have one to many individual functions to call upon in that rule.

    3 replies

    Employee - Advisor
    Aug 6, 2023 6:25 PM UTC

    Try uncommenting your if statement in the finance rule   eg you are calling a function called Test in your DM step. So you need to step into a function called Test in your business rule (the one being called)

    MikeG
    MikeGAnswer
    Contributor
    Aug 7, 2023 2:11 PM UTC

    Hi vijay you have it setup right.  You are attempting to run a function called Test.  You need to include the following statement: 

    If args.CustomCalculateArgs.FunctionName.XFEqualsIgnoreCase("Test") Then

    End if

    Uncomment that line out in your code.

    This methodology is great because you have 1 Finance BR, and have one to many individual functions to call upon in that rule.

    vijayAuthor
    Newcomer
    Aug 7, 2023 2:55 PM UTC

    hi Mike ,

    After updating the POV like below along with uncommenting the function   , the finance BR did got triggered . 

    vijay_0-1691420092799.png

     

    Thanks