Good afternoon,
I am trying to make an updatecdt of a cdt that contains a text field that is a list, for the rest of the fields it maps well but for the list field as I am trying to enter more than one value it returns the following error:
This is the cdt and the particular field
the code:
updatecdt( cdt: ri!entrada, fieldsAndValues: ( { timeStampConsulta: now(),
prueba: { local!prueba }}
)
The value of local!prueba is:
the test value at the input is empty
Can you help me please
Thank you
Discussion posts and replies are publicly visible
if you're passing in a single value for timeStampConsulta and an array for prueba, then updateCdt() would not be expected to work.
sorry, I put a capture with only those values but the cdt has many more has the list that gives problems and more than 50 simple values
if the one of the element is list type and trying to update is failing. what should be workaround or solution for the same. we too have this kind of requirement.
What will be solution for the same.
Good morning,
As we could not make it work with the update cdt and we did not have any more time, what we did was do the complete mapping of the cdt, in a rule, we input the cdt that we wanted to modify and in the values that did not change we map the values of the input and those that had to be modified with the new values, this worked for us.Sorry I can not help you anymore.
a greeting