Variable is already defined of data type
Greetings,
The first four items, have been working fine in getting "currency" field from the CRM. When I added the fifth, BMD, I get variable error. Can you point me to the error of my ways?
"
Variable 'BMD' is already defined of data type 'DECIMAL' but trying to update 'STRING' data type
//Dealer Opportunity
gdr = crmResp.get("Dealer Gross Revenue");
lsv = crmResp.get("Less Service Revenue");
lsfas = crmResp.get("Less Sales from AS");
INDopp = crmResp.get("INDEAL Opportunity");
BMD = crmResp.get("Base Monthly DuesFCK");
if ((((gdr != null) && (lsv != null)) && (lsfas != null)) && (INDopp != null))
{
input.Dealer_Gross_Revenue = gdr.toDecimal();
input.Less_Service_Revenue = lsv.toDecimal();
input.Less_Sales_from_AS = lsfas.toDecimal();
input.INDEAL_Opportunity = INDopp.toDecimal();
input.Base_Monthly_Dues1 = BMD.toDecimal();
}