Open Madeofmokoi opened 4 years ago
I find it very quick, below is an example of my solution: if 'Print Layout' = 4 then
'Print Layout Name' := "Large Quote"
else
if 'Print Layout' = 5 then
'Print Layout Name' := "Monthly"
else
if 'Print Layout' = 6 then
'Print Layout Name' := "Small"
else
if 'Print Layout' = 7 then
'Print Layout Name' := "India"
end
end
end;
if Subscription < (= 1) then
let myEmail := userEmail(user());
let myPdf := printAndSaveRecord(this, 'Print Layout Name');
let myName := "QUOTE-" + 'Quotes No' + ".pdf";
importFile(this, myPdf, myName);
let myHtml := replace(raw('Rich text'), "##Customer##", Customer.Name + "
" + Subscription);
sendEmail({
from: myEmail,
to: "MYNAME@MYDOMAIN.com",
subject: "New Quote",
text: text(myHtml),
html: myHtml,
attachments: files(this)
});
'Invoice Image' := myName
end
end
Solved!!
let thisRecord := this; alert("HI,
This is the customer screen. The vehicles belonging to this " + thisRecord.'FIRST NAME' + " " + thisRecord.'LAST NAME' + " are listed here.
Click on the vehicle regiration to open the service records for that vehicle. if you need to add a new vehicle click the [+ Create Record] tag.
You can click the ADDRESS to open a map and if you are on mobile or your PC can make calls you can dial direct using the phone number icon. You can also email the customer from this screen.
Thanks!")