in Scheduler/Forms/ExportJobV3.cs [289:340]
private bool ValidateJobSettings()
{
if (cronTriggerRadioButton.Checked)
{
var date = FormsHelper.GetScheduleForCron(cronExpressionTextBox.Text, DateTimeOffset.Now);
if (date == DateTimeOffset.MinValue)
return false;
}
var message = new StringBuilder();
if (string.IsNullOrEmpty(jobName.Text))
message.AppendLine(Resources.Job_name_is_missing);
if (string.IsNullOrEmpty(jobGroupComboBox.Text))
message.AppendLine(Resources.Job_group_is_not_selected);
if (string.IsNullOrEmpty(downloadFolder.Text))
message.AppendLine(Resources.Download_folder_is_not_selected);
if (string.IsNullOrEmpty(errorsFolder.Text))
message.AppendLine(Resources.Download_errors_folder_is_not_selected);
if ((instanceComboBox.SelectedItem == null) || string.IsNullOrEmpty(instanceComboBox.Text))
message.AppendLine(Resources.Dynamics_instance_is_not_selected);
if (userAuthRadioButton.Checked &&
((userComboBox.SelectedItem == null) || string.IsNullOrEmpty(userComboBox.Text)))
message.AppendLine(Resources.User_is_not_selected);
if ((appRegistrationComboBox.SelectedItem == null) || string.IsNullOrEmpty(appRegistrationComboBox.Text))
message.AppendLine(Resources.AAD_client_application_is_not_selected);
if (string.IsNullOrEmpty(dataProject.Text))
message.AppendLine(Resources.Data_project_is_missing);
if (string.IsNullOrEmpty(legalEntity.Text))
message.AppendLine(Resources.Legal_entity_is_missing);
if (string.IsNullOrEmpty(exportToPackageTextBox.Text))
message.AppendLine(Resources.URL_for_ExportToPackage_action_is_missing);
if (string.IsNullOrEmpty(getExecutionSummaryStatusTextBox.Text))
message.AppendLine(Resources.URL_for_GetExecutionSummaryStatus_action_is_missing);
if (string.IsNullOrEmpty(getExportedPackageUrlTextBox.Text))
message.AppendLine(Resources.URL_for_GetExportedPackageUrl_action_is_missing);
if (message.Length > 0)
MessageBox.Show(message.ToString(), Resources.Job_configuration_is_not_valid);
return message.Length == 0;
}