You need to sign in to do that
Don't have an account?

How to convert one record data to XML and send email
Hi all,
I am using standard controller to show all the fields and fields values of a particular object in VF Page.
Now I have created one button on the VF page. On click of the button the entire record should be send as an email in XML format.
I am not getting any way to convert the data into XML.
Can someone help how can I achieve this requirement.
Thanks,
Manu
I am using standard controller to show all the fields and fields values of a particular object in VF Page.
Now I have created one button on the VF page. On click of the button the entire record should be send as an email in XML format.
I am not getting any way to convert the data into XML.
Can someone help how can I achieve this requirement.
Thanks,
Manu
I have find some links which will be helpful to solve the isssue.
1. http://it.toolbox.com/blogs/anything-worth-doing/a-better-way-to-generate-xml-on-salesforce-using-visualforce-55433
(It is used to convert the data of an object to Xml )
2. http://www.cloudforce4u.com/2013/07/send-email-in-apex-salesforce.html
(It is used to send the Xml through email.)
Note: You should set the Xml in the "setPlainTextBody" function.
Please mark as best answer if it solves your problem.
Regards,
Grazitti Team,
www.grazitti.com
All Answers
I have find some links which will be helpful to solve the isssue.
1. http://it.toolbox.com/blogs/anything-worth-doing/a-better-way-to-generate-xml-on-salesforce-using-visualforce-55433
(It is used to convert the data of an object to Xml )
2. http://www.cloudforce4u.com/2013/07/send-email-in-apex-salesforce.html
(It is used to send the Xml through email.)
Note: You should set the Xml in the "setPlainTextBody" function.
Please mark as best answer if it solves your problem.
Regards,
Grazitti Team,
www.grazitti.com
Your links helped me a lot.
R - Manu