Discussions
Problem with searching for all not-scheduled deployments for a script.
I am trying to find all deployments for a script that aren't scheduled and then use one of them to run the script immediately. In SS1.0 it seems like you could call nlapiScheduleScript and it would automatically pick an available deployment. If there were none available, nlpapiScheduleScript returned the status of the script, and if it wasn't QUEUED then you could create a new deployment or do whatever is needed. In SS2.0 it seems like you have to try submitting the task and then catch the error for when no deployments are available. To me, that seems hackish and not