Change how a variable displays when executed within a custom module

Change how a variable displays when executed within a custom module

I have the following code for a custom button within a new custom module I'm building:

record_name = cm_returns.get("record_name");
cf_dealer = cm_returns.get("cf_dealer");
cf_item = cm_returns.get("cf_item");
cf_item_2 = cm_returns.get("cf_item_2");
cf_issue = cm_returns.get("cf_issue");
cf_replaced = cm_returns.get("cf_replaced");

sendmail
[
from :zoho.adminuserid
to :"<email>"
subject :"RA Item Received"
message :"The items for <b>" + record_name + "</b> have been received. <p><b>Details:</b></p><p><b>Dealer:</b> " + cf_dealer + "<br><b>Items: </b>" + cf_item + " " + cf_item_2 + "<br><b>Description:</b> " + cf_issue + "<br><b>Replaced already?</b> " + cf_replaced 
]
resultMap = Map();
resultMap.put("code",0);
// 0 - Success ; Other than 0 will consider as failure
return resultMap;

It produces all the information in the email, but the cf_dealer and cf_item pull from Zoho Inventory Customers and Items, respectively. In the executed information in the email, it displays the ID number Zoho assigns a customer or item when you create it, rather than the name of the customer or name of the item (which is what displays in the record itself). 

I'm very new to this and trying to figure out basics on my own, so my question is there any way in the code to have that variable display the actual customer or item name the way the record does or is it a weird quirk that Deluge pulls the ID number itself only?

Hope this makes sense!

Here is an example output, so you can see the ID numbers, rather than names: 

The items for RA-002 have been received.

Details:

Dealer: 2841805000000274258
Items: 2841805000000145619
Description: Warranty replacement, SO-01391
Replaced already? Yes


    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now