OK, full story time... I'm producing a Google Shop...
# suitescript
j
OK, full story time... I'm producing a Google Shopping feed. Google Shopping has a validation that they apparently run on UPC codes and it produces an error on items where they can't validate the UPC codes. On about 3k items, the client has essentially "made up" a UPC code. Client is in too deep with these established UPCs in their ERP operations and SCIS and unable (or unwilling) to change them for all these items. I'm tasked with clearing out the UPC code when these items get sent to the Google Shopping feed. My solution was to add the array of items as a script parameter and set the UPC code to blank if their internal ID is included in that item array. And that's the story of how we got here. I could treat the 3k items differently, but they would still have to be included in the main feed and establishing a search for those 3k items would be cumbersome and would probably have to rely on a new custom field (which, if I'm creating a new custom field anyway, I might as well just use that to conditionally clear out the UPC anyway)