GetApplicantInterviewList


Description

Retrieves a list of applicant interview summary objects that match the specified criteria.

Parameters

Parameter

Type

Description

criteria

ApplicantInterviewCriteria

The applicant interview criteria object that specifies which applicant interview summary objects are returned.

context

Context

Specifies information about how the method will be called.


Return Value:

Value

Type

Description

GetApplicantInterviewListResult

ArrayOfApplicantInterviewSummary

The list of applicant interview summary objects that match the specified criteria.


Interfaces

 

Examples

The following C# example retrieves the list of applicant interview summary objects where the interview type is “test”. The total number of applicant interviews is displayed in a message box.

 Legacy endpoint

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using DynamicsGPWebServiceSample.DynamicsGPService;

namespace DynamicsGPWebServiceSample
{
	class Program
	{
		static void Main(string[] args)
		{
			CompanyKey companyKey;
			Context context;
			ApplicantInterviewSummary[] applicantInterviews;
			ApplicantInterviewCriteria applicantInterviewCriteria;
			LikeRestrictionOfString interviewTypeRestriction;

			// Create an instance of the service
			DynamicsGP wsDynamicsGP = new DynamicsGP();

			// Be sure that default credentials are being used
			wsDynamicsGP.UseDefaultCredentials = true;

			// Create a context with which to call the service
			context = new Context();

			// Specify which company to use (sample company)
			companyKey = new CompanyKey();
			companyKey.Id = (-1);

			// Specify the criteria of the applicant summaries to retrieve
			interviewTypeRestriction = new LikeRestrictionOfString();
			interviewTypeRestriction.Like = "test";
			applicantInterviewCriteria = new ApplicantInterviewCriteria();
			applicantInterviewCriteria.InterviewTypeKeyId = interviewTypeRestriction;

			// Retrieve the list of applicant interview summaries
			applicantInterviews = wsDynamicsGP.GetApplicantInterviewList(applicantInterviewCriteria, context);

			// Display the number of applicant interviews matching the criteria
			MessageBox.Show("Total applicant interviews of type Test:" 
				+ applicantInterviews.Length.ToString());
	}
}
}

 Native endpoint

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DynamicsGPWebServiceSample.DynamicsGPService;

namespace DynamicsGPWebServiceSample
{
	class Program
	{
		static void Main(string[] args)
		{
			CompanyKey companyKey;
			Context context;
			ApplicantInterviewSummary[] applicantInterviews;
			ApplicantInterviewCriteria applicantInterviewCriteria;
			LikeRestrictionOfstring interviewTypeRestriction;

			// Create an instance of the service
			DynamicsGPClient wsDynamicsGP = new DynamicsGPClient();

			// Create a context with which to call the service
			context = new Context();

			// Specify which company to use (sample company)
			companyKey = new CompanyKey();
			companyKey.Id = (-1);

			// Specify the criteria of the applicant summaries to retrieve
			interviewTypeRestriction = new LikeRestrictionOfstring();
			interviewTypeRestriction.Like = "test";
			applicantInterviewCriteria = new ApplicantInterviewCriteria();
			applicantInterviewCriteria.InterviewTypeKeyId = interviewTypeRestriction;

			// Retrieve the list of applicant interview summaries
			applicantInterviews = wsDynamicsGP.GetApplicantInterviewList(applicantInterviewCriteria, context);

			// Display the number of applicant interviews matching the criteria
			MessageBox.Show("Total applicant interviews of type Test:" 
				+ applicantInterviews.Length.ToString());

			// Close the service
			if(wsDynamicsGP.State != CommunicationState.Faulted)
			{
				wsDynamicsGP.Close();
		}
	}
}
}


Documentation Feedback