I am Using Creatio 8.2.2 and am currently confused on how to send an email and taking fields from a page and inserting it into the script task, here is my script task
i am trying to take a field called Alamat Penilai as the Send email to
also inserting Nama Penilai, Nama Debitur, Produk, Tujuan Penilaian, Jenis Agunan into the body of the email, one of the fields is a dropdown aswell(extra info if needed). I am also going to use SMTP as a way to send the email from
so how do i go about this? how do i configure the script task to run as i wish?
Like
An easy way is to just read the data in the process using Read Data elements, then use formulas to place any values in process parameters. Then, in the script task you can just retrieve them using:
var recipient = Get<string>("MyRecipientParameter");
Basically, retrieve any process parameter using:
var val = Get<type>("TheParameterName");
Also, it's possible to just add a mailbox in the system with the send SMTP values only and uncheck the downloading email option so it's a send only account. See (sorry, very old screenshot, but concept is the same) https://community.creatio.com/questions/office365-oauth-mailbox-synchronisation
Then, with the mailbox added, you can simply use the process Email element and do it all with no code.
Ryan