Write in a dynamic field

Hello,

Is it possible in a Workflow, to write in a dynamic field, like this :

record.values[field] where field is an expression of a handle of a field module?

Thanks!

1 Like

Welcome to the community
I didn’t try it … but I remember I’ve read it in the docs you can do something like that

You can, but not like how you’ve done it because of the reasons how gval evaluates expressions (what we use to evaluate expressions).

You need to use the set function; so set(record.values, field, value) should do the trick for you.

record.values[field] would treat field as a name not as a variable.

Thanks a lot for your help!

1 Like