... + p_QuoteID
type :GET
parameters:m_ApprovedConverted
connection:"zcrm"
];
// should be checking here that data contains any rows but I'm going on the basis that this quote exists in CRM an ...
... get the quote details given a record ID
r_QuoteDetails = zoho.crm.getRecordById("Quotes",p_QuoteID);
//
// check target email is not null/blank
if(!isnull(r_QuoteDetails.get("Email")))
{
v_Url ...
... e = "My Test Document";
r_DownloadResponse.setFileName(v_Filename + ".pdf");
r_AttachResponse = zoho.crm.attachFile("Quotes",p_QuoteID,r_DownloadResponse);
Use a subform (eg. Product Line Items) ...
... specify your Creator record ID holding the image
v_CreatorQuoteID = 9876543210987654321;
//
// get the full details of the Creator record
r_GetFullRecord = zoho.creator.getRecordById(v_AppOwner,v_AppName,v_ReportName,v_CreatorQuoteID,"joels_creator");
if(!isnull(r_GetFullRecord.get("data")))
{
r_CreatorRecord ...
... = "myForm_View"; // put your own report name
v_CreatorRecordID = v_CreatorQuoteID; // this is the creator record id that has the attachment
v_SubFormName = "mySubform"; // put here ...
... p_QuoteID is the ID of the quote):
// init Map
m_UpdateQuote = Map();
//
r_QuoteDetails = zoho.crm.getRecordById("Quotes", p_QuoteID);
v_SubTotal = r_QuoteDetails.get("Sub_Total").toDecimal() * ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.