Calling a CFC with multiple arguments using AJAX
<p>I am using AJAX to call a CFC and I am trying to send over two variables from a query that I ran. My ajax looks like this:</p>

<pre><code>    $.ajax({
     type:"POST",
     url:"cfcs/get_equipment_details.cfc?method=getDetails",
     dataType: 'json',
     data: { equipment_name: "#equipment_name#", customer_name: "#customer_name#"},
    cache:false,
    success: function(response) {
        console.log("Customer Name" + customer_name);

        $.each(response.DATA, function(i, row){
            var id = row[0];
            var customer_name = row[1];
            var equipment_name = row[2];
            var date_last_completed = row[3];
            var maintenance_interval = row[4];
            var last_completed_by = row[5];
            var equipment_notes = row[6];
            var warranty_end_date = row[7];
            var service_Tag = row[8];
            var serial_number = row[9];
            var backup_notes = row[10];
            var TT = row[11];
            $("##customer_name#id#").val(customer_name);
            });
     }
});
</code></pre>

<p>Here is my CFC:</p>

<pre><code>&lt;cffunction name="getDetails" access="remote" output="false" returntype="query"&gt;
    &lt;cfargument name="equipment_name" type="any" required="true"&gt;
    &lt;cfargument name="customer_name" type="any" required="true"&gt;

    &lt;!--- Get list of all equipment ---&gt;    
    &lt;cfquery name="get_equipment" datasource="#datasource#"&gt;
    select *
    from equipment_maintenance
    where equipment_name= &lt;cfqueryparam value="#ARGUMENTS.equipment_name#" cfsqltype="cf_sql_varchar"&gt;
    AND customer_name= &lt;cfqueryparam value="#ARGUMENTS.customer_name#" cfsqltype="cf_sql_varchar"&gt;
    &lt;/cfquery&gt;

    &lt;cfreturn get_equipment&gt;
</code></pre>

<p>But my CFC is throwing an error: </p>

<blockquote>
  <p>The parameter customer_name to function getDetails is required but was
  not passed in.</p>
</blockquote>

<p>How can I successfully pass in those two argument and return my query results?</p>