Find the answer to your question
Advanced Search
My item's subtitle is not removed after a ReviseItem call. This following codes is used for removing the subtitle :
ModifiedFieldType[] list = new ModifiedFieldType[1];
list[0] = new ModifiedFieldType();
list[0].setField("item.SubTitle");
Unfortunately,it failed without any exception.
Detailed Description
In general, you should use DeleteField to remove from an item's property. Below is the sample code for deleting an item's SubTitle:
ReliseItemCall rtc = new ReliseItemCall(apiContext);
ItemIDType id = new ItemIDType(itemId);
ItemType item = new ItemType();
item.setItemID(id);
rtc.setItemToBeRevised(item);
String[] deleteFields = {"Item.SubTitle"};
rtc.setDeletedField(deleteFields);
FeesType fee = rtc.reviseItem();
Additional Resource
How well did this answer your question?
Answers others found helpful
- 12598 -<GalleryURL> can not be removed.
- Dropping the SubTitle when relisting an item
- Removing InternationalShippingServiceOptions in SDK JAVA
- "Why was my Subtitle (sic) ignored in my AddItem call?" OR "What does the message 'Unrecognized element <Item.Subtitle> in request message' mean?"
- Best practices for relisting items