SuiteScript pattern: When transforming an SO to an IF, default NS behaviour is to copy all items from the SO onto the IF, I then have to write a function to remove the items that I don't want fulfilled (depending on the requirements/criteria). There is an option in NS to make a transform copy over zero items but enabling that would be a massive change for users and probably undesirable.
Question: Has anyone found a way to record.transform() an SO with a specific list of items to add to the IF or is removing the unwanted items from the IF the only way to achieve this with default NS settings? If this is the only way, I'm doing the IF item removal THEN saving the transformed IF record if the item removal was successful; what do you think of that pattern?
1. Transform SO to IF
2. Remove excess items from IF
3. Save transformed record (Item Fulfilment).