Can someone porivde me sample suitescript to remov...
# general
v
Can someone porivde me sample suitescript to remove a specific item and replace with itemtype itemgroup on the saleorder, I am trying to do it with a userevent script event type edit but getting error and unable to set the itemgroup type item?
c
Hey! I think that you can't directly replace line items with item groups in a user event - use
removeLine()
then
insertLine()
with the new item type. Item groups need special handling though - set the item first, then populate the group members on separate lines.