How to pass list object with ajax request on Mvc

Sample controller and action

 public ActionResult UpdateEmployeePerformance(List<ObjectivesList> ObjectivesList, EmployeePerformance Performance)
     return Json("Ok", JsonRequestBehavior.AllowGet);

Sample Ajax request

	url: "/Custom/UpdateEmployeePerformanceReview",
	type: "POST",
	data: JSON.stringify({ ObjectivesList: updateObjectivesList, EmployeePerformance  : Performance}),
	dataType: "json",
	async: false,
	contentType: "application/json; charset=utf-8",
	beforeSend: function (XMLHttpRequest) {
		XMLHttpRequest.setRequestHeader("Accept", "application/json");
	success: function (data) {
	error: function (XMLHttpRequest, textStatus, errorThrown) {

#ajax-list-parameters-request, #ajax-request, #asp-net-mvc, #jquery

How to add lookup filter on custom javascripts

This function bind to form onload “OnLoad”, after calling the “preFilterLookup” function. This method access to form control and add to “addPreSearch” events. In events calling the custom fetchxml functions.


function OnLoad() {

function preFilterLookup() {
Xrm.Page.getControl("formcontrolelementid").addPreSearch(function () {

function addLookupFilter() {
fetchXml = "<filter type='and'>"
fetchXml += "<condition attribute='logicalname' operator='eq' value='value' ></condition>";
fetchXml += "</filter>";

#custom-js, #lookup, #lookup-filter, #web-resource