cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Taxonomy Attribute Values in MDM through JAVA API 2

namrata_d
Active Participant
0 Kudos

Hi All,

I am trying to update the Taxonomy Attribute Values in MDM

using JAVA API 2.

Using ModifyRecordCommand and using setAttributeValue

method of Record interface , if a user changes value

of any attribute the changed value is reflected in MDM

properly.

But if the user does not select any value for an attribute

i am not able to update the same in MDM.

Any Help will be appreciated!!

Thanks

Namrata

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please check your code. Here is the sample:

If there is a value to update for the attribute it updates with the provided mdmvalue else it will update null.

if (atts<i>.getMdmValue() != null){

record.setAttributeValue(CATEGORY_ID, attsProps.getId(), atts<i>.getMdmValue());

else

record.setAttributeValue(CATEGORY_ID, attsProps.getId(), new NullValue());

}

Hope that helps!

namrata_d
Active Participant
0 Kudos

Hi anup,

The solution given by you worked perfectly!!

Thanks

Namrata

Answers (0)