N
Nitin Kumar Singh
Guest
Hi DuBose, 1. Is the flag "isPrivate" set on record level or per-comment level ? If this flag is set on record level. Visibility can be configured in the following way : Say, we have a checkbox by integration name "isCommentPrivate" defined on object "Support Ticket" and 'client'/'internal employees' access the app via two different roles. We can configure field level permissions on per role basis. (Go to Object Definition page of 'support ticket', go to field 'comment', click on 'Permissions' tab and against role 'client'; configure conditional view permissions as "return !{!isCommentPrivate}; " ) This would hide complete comment box for role: 'Clients' when flag : isPrivate is checked. 2. This is a small workaround such that, when any email gets logged in Communication Log (a 1:M relationship with Communication Logs object will have to be created), the contents of the communication log is also created as comment and appended to existing list of comments for that particular object. Go to "Communication Log" object, create a new trigger of type , set timings as . In the formula window enter below js code. Here, R1677611 is the relationship name between Communication Log and or in your case 'Support Ticket'. var rid = {!R1677611#id}; if(rid > 0) { //if this Communication Log is related to var res = "\nComment Log:"+"\nCreated At: "+"{!createdAt}"+"\nCreated By: "+"{!createdBy}"+"\nFrom: "+"{!from2#value}"+"\nTo: "+"{!to}"+"\nSubject :"+"{!name#text}"+"\nContent: "+"{!body}"; rbv_api.setFieldValue("State", {!R1677611.id}, "comment", res); } Does this help your cause? Thanks, Nitin
Continue reading...
Continue reading...