Newbie question, apologies in advance if it doesn'...
# general
c
Newbie question, apologies in advance if it doesn't make too much sense, any help/guidance/pointers would be much appreciated :) * I have a saved search for line items that need to be drop shipped. * I put together a UserEvent suiteScript that goes through those line items and creates a PO for each line item * Right now, my script is triggered when viewing any Sales Order * I know that's not the way it's supposed to work, I just used that while developing and testing my script * What I'm trying to figure out is what do I need to do so that the script is automatically triggered on a schedule * Once the schedule is setup, if I can manually run it on demand, that would be a bonus * I tried reading through the NS documentation for scheduled scripts but I must be missing something very obvious. * Again, real newbie, so apologies in advance and any help, guidance or pointers would be much appreciated.
r
Is there a reason you're not using the native Drop Ship functionality? If you flag an item as a Drop Ship item, the system will automagically do what it appears you're trying to script when the record originally saves. And it creates nice tight transactional links in the process.
c
@RJMNS Thanks. our use case is for orders that come in via an integration, the item is an item that we carry in our warehouse, however if the shipping address is to certain states, we want to dropship it.
r
Ah got it. yeah that will be trickier