|
Hi Stephen,
'Related To' is not a field which is populated from Exchange Side. It is a Rollbase internal field which links Communication Log with some specific data record. This relationship between Email and Rollbase Data Record is captured using 'Related To' field.
Documentation states:
From the Message Details page, you can:
*Select/deselect the star icon to flag/unflag the message.
*Click Communication Log to create a communication log record from this message and attach that record to a selected Rollbase record.
*Click Delete to delete the email message (move it to the Trash folder in your Gmail account).
*Return to the message list.
Complete Article is here: https://documentation.progress.com/output/rb/doc/index.html#page/rb%2Fincoming-gmail.html%23wwID0ED6VT
Manually creating a communication Log and attaching it to one of the record from List populates 'Related To' field.
Hope this helps.
Nitin
Is it possible to retrieve the actual email address (e.g. stephenvr@aigs.co.za) instead of the alias (e.g Stephen van Rooyen) for the from, to and cc fields?
Is it possible to delete an email using the Email API?
Can I create a trigger (not linked to an object) to run at a regular intervals to check the retrieve the emails from this mailbox?
Hi Stephen,
1. Using the Email Integration
To delete an email from Rollbase: Click on 'Delete' button to move it to the Trash folder in your Inbox account.
It is possible to create a trigger to pro-grammatically create the Communication Log record. To create the Communication Log, first create a relationship between desired objectType and CommunicationLog. Then, create trigger of type ObjectScript and use following sample code:
var hostName="mailbg.domain.com"; var port=587; var userName="xyz@domain.com"; var password="*******"; var mailProps={tls : true}; rbv_api.openPOP3(hostName, port, userName, password, mailProps); var msg = rbv_api.getMailMessage(20); var create = new Array(); create.from2 = msg.get("from"); create.to = msg.get("to"); create.cc = msg.get("cc"); create.body = msg.get("body"); create.name = msg.get("subject");
create.commType = "INCOMING"; /* R1959924 is the relationship ID b/w Communication Log and ObjDef on which trigger is defined */ create.R1959924 = {!id}; create.commParent = {!id}; rbv_api.createRecord("COMMLOG",create); rbv_api.closeMailSession();
2. Using the Email API
If the from, to and cc fields has a name displayed in your Inbox, we retrieve just the Name and save it. When there is no name attached with an email address, Rollbase saves the email. Also, we do not have any Rollbase Email API to delete email message from your inbox account?
However, could you please log both of these suggestions as Rollbase Enhancements in our Ideas Section ? Here's a link to Rollbase Ideas Section: community.progress.com/.../rollbase
For your question of : Can I create a trigger (not linked to an object) to run at a regular intervals to check the retrieve the emails from this mailbox?
Please have a look at Rollbase Batch Jobs, maybe they could help server your need. Read about Batch Jobs here :
https://documentation.progress.com/output/rb/doc/index.html#page/rb%2Fbatch-jobs.html
Thanks,
Nitin
I also need this feature
Please let me know how y resolve the issue
Ping me at skype to have quick chat: anuragk29