cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting main table Boolean field value

Former Member
0 Kudos

Hi,

I want to delete Boolean field (make value as blank) in a MDM record via MDM java api, but getting error can not assign String to Boolean field (as I am passing blank String to make it blank).

Can you please suggest, how to make Boolean field as blank ?

Thanks,
Swapneel

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Swapneel,

I think you should assign a NullValue to the Boolean Field. Stringvalues will indeed not work.

Kind regards,

Gerwin

Former Member
0 Kudos

Hi Gerwin,

Thanks for your response, I have already tried with NullValue, but it does not change the field value (if value is true it will remain true only and same for false as well).

Thanks,

Swapneel Kolhe

Former Member
0 Kudos

Hi Swapneel,

Actually, I meant assigning a NullValue.NULL, like this:

record.setFieldValue(schema.getFieldId(tableName, booleanfield), NullValue.NULL);

And of course, please do not forget to run the ModifyRecordCommand, otherwise there will indeed be no change. Please let me know if this works for you.

Good luck!

Gerwin