UpdateContext function - Power Platform | Microsoft Learn
UpdateContext( { Counter: 1 } )Creates or modifies the context variableCounter, setting its value to1.Counterhas the value1. You can reference that variable by using the nameCounterin a formula. UpdateContext( {