'How to call keyword along with test template

Is it possible to call keyword along with template in robotframework,

*** Keywords ***

PASSWORD UPDATE
    [Arguments]     ${apidata}      ${expctdRspnce}     ${jmxPath}
    ---------
    -------

*** Test Cases ***


CHANGE_PASSWORD
    
    ${apidata} =    Get Excel value     2   3
    ${expctdRspnce} =    Get Excel value     2   5
    [Template]      PASSWORD UPDATE
    ${apidata}      ${expctdRspnce}     ${jmxPath}

In above code i am calling get excel value before calling the template.So here i am getting below error,

Keyword 'PASSWORD UPDATE' expected 3 arguments, got 4.

If i remove both the variables and call only the template then it is working fine.Is there any way to call kewyrods before calling template?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source