You need to sign in to do that
Don't have an account?
Kevin Kim 9
{faultcode:'soapenv:Client; faultstring:'No such parameter id defined for operation. please check the WSDL for the service.'}
I've created a button with this java script:
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
sforce.apex.execute("buttonHandler","copyOLItoPP",{id:"{!Opportunity.Id}"});
location.reload();
but I keep getting this error whenever I try to click it:
{faultcode:'soapenv:Client; faultstring:'No such parameter id defined for operation. please check the WSDL for the service.'}
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
sforce.apex.execute("buttonHandler","copyOLItoPP",{id:"{!Opportunity.Id}"});
location.reload();
but I keep getting this error whenever I try to click it:
{faultcode:'soapenv:Client; faultstring:'No such parameter id defined for operation. please check the WSDL for the service.'}
Kevin,
Following is the updated button code
In case your issue has been resolved please feel free to mark this as closed.
Thanks
Vivian
All Answers
I hope by creating this button you want to call a Webservice from that javascript. If so, then there should be a Class called buttonHandler with a method like this,
If there are no class (with the Webservice ) in the org like this, you may get this error.
For reference, you can check out this, https://prosenjit-sarkar-sfdc.blogspot.in/2015/01/how-to-call-apex-method-through-custom.html (https://prosenjit-sarkar-sfdc.blogspot.in/2015/01/how-to-call-apex-method-through-custom.html" target="_blank)
Thanks,
Prosenjit
I made a class and it looks something like this:
I am still getting the same error.
Please use this code ,
you have to put the same parameter name to call the webservice. Sorry for late reply. Please let me know if you get any error. Please make this answer as best answer if it solve your problem.
Thanks,
Prosenjit.
Kevin,
Following is the updated button code
In case your issue has been resolved please feel free to mark this as closed.
Thanks
Vivian
Having error "Please check WSDL for this service"!
Here is my OnClick JavaScript Code:
{!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")}
var r = confirm("Do you want to create new Contact?");
var fname = "{!Contact.FirstName}";
var lname = "{!Contact.LastName}";
if(r == true)
{
var a = sforce.apex.execute("ContactPlan","createContactPlan",{fname : "{!Contact.FirstName}",lname : "{!Contact.LastName}"});
alert(a);
}
else
{
alert('Operation aborted');
}
Here is my APEX Code:
global class ContactPlan
{
webservice String area;
webservice String region;
global class Plan
{
webservice String fname;
webservice String lname;
}
webservice Static Plan createContactPlan(Plan vPlan)
{
Contact con = new Contact();
con.FirstName = vPlan.fname;
con.LastName = vPlan.lname;
insert con;
return vPlan;
}
}
Can anyone help it out!???
Please createa new question or thread for this issues as this is a separate issue. you can put here the link of the new thread so that someone/me can follow it.
Thanks
Prosenjit