Using functions with entirely optional paramters in AIP logic

Hi,

I have added several typescript-functions as tools in an AIP Logic workspace. Where all fields are required in the function it works really well. But having now crafted a function that takes in several optional arguments, there is an error in console when trying to “Add example” -
"errorName": "LogicBuilder:LogicWorkStateVersionConflict"
and
"actualStateVersion": "Optional.empty".

Has anyone gotten functions with entirely optional parameters working in AIP logic with added examples? Or is this a known bug?

Cheers

Not much use here but replying for visibility. We’ve also run into this issue several times where we have an optional field but called the published AIP Logic function returns that exact error when we do not pass the optional field into our call.

Tried various workarounds and still no fixes available. This just looks to be a bug in AIP Logic

Hey, optional parameters aren’t currently supported for function / action calls in Logic (its something we are working on however).

In some situations you can work around this using the typed “Create null value” block, but this can convert compile time errors into run time errors, so use with caution.