You need to sign in to do that
Don't have an account?
Royston59
Is it possible to edit the WSDL file?
I would like to send the 'name' field in the Lead Object to an external API. However only the 'FirstName' and 'LastName' are available.
Can I edit the WSDL file that is created with the outbound message and change 'FirstName' to 'name' then save it?
Lead Name is a compound field(first name and last name). so you have to send both firstName and Last Name in the outbound messge.
And ask your consumer of the message to combine it to single field if required.
You can aslo try adding a formula field which combines both first name and last name and send that field.
Thanks balaji - I suspected that it wasnt possible :/
I did consider the idea of creating custom fields at my end, but unfortunately they would render 'custom_field_name__C' Changing the receiving API fields is unfortunately not an option :(
perhaps some Apex coding?
Im one step closer :) I am currently working in a Sandbox. Ive followed your idea above. Can you tell me how I can apply this new Apex Class to my outbound messages? The subsequently to my 'live' version.
You obviously know what you are doing!! - The other issue that I have is the API that I am trying to push to has different field id t o what we have. Is there anyway of fixing this.
For Example
The API field is 'telephone' ours is 'phone' if I create a custom field called 'telephone' it will be followed with '__c'
Any more tips would be greatly received!!
What you would need to do is generate a WSDL based on the endpoint you are sending the data to.
Then instead of a workflow, invoke one of the methods used in the generated Apex WSDL class based on logic written in a trigger.
Integrations are never easy and take alot of time and patience.