Encrypting Attachment from Service Portal(Record Producer)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2017 06:30 AM
I am trying to encrypt attachments on a scoped application table. I was able to use the Encryption Support Update available on Share to set-up and manage encryption rules on the table. I am able to encrypt attachments coming from inbound emails too. I am also able to encrypt attachments from Record Producers in Native UI. But when I use the same record producer in the Service Portal UI and submit the record - the attachment does not get Encrypted. On Further Analysis I found that whenthe Encryption Rule runs(via Business Rule) it does not detect the attachment for the record in the sys_attachment table.
I tried a bunch of test Business Rules to detect the attachment when it gets associated to the final record - but I have not had any success there.
My question here is simple - when we attach a file via the service portal - i see that it gets associated with table_name= sp_portal in the attachment table initially and then on submitting the form - it eventually associates with the target table. But when I add a Business rule to detect this event ( association of the attachment to the target table) The Business Rule does not fire). Is this is a known issue that any one has faced Or am I doing something wrong.
For testing and POC i used the incident table in my personal developer instance. The below business rule does not fire when I submit an incident record via Service Portal only - every other time it fires.
Business Rule Attachment[sys_attachment]
When: After - Insert or Update
No Condition
Script :
if(current.table_name == "incident"){
gs.info("Incident Attachment"); // for test I tried this on the incident table on my developer instance
}
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2020 04:43 PM