Custom script method only trigger once when using batch requests

Hi, i have a custom scripts method for generating uniqueId and use it like below
image
image

when i sent a batch request(contain two request dto) from blazor wasm application the scripts method only trigger once. how can i get it works on every single request in batch request?

image

Script Expressions values are cached per request by default, for values you don’t want cached you can use NoCache=true to force the expression to be evaluated each time, e.g:

[AutoPopulate(nameof(IDonoAudit.ID), Eval = "uniqueId", NoCache=true)]
[AutoPopulate(nameof(IDonoAudit.ISACTIVE), Value = "1")]
1 Like