Data mask of email body that creates the case(incoming email registration process)

The case gets created when a mail is send to the setup mail of the system, now that mail is added to the conversation tab (freedom ui) as the follow up for that particular case. Now i want to edit/masked the body content of that mail before saving or displaying in any section or tab, I can mask data using regex in script task, but can't find where to perform this operation, I even checked out the incoming email registration process but couldn't undersatnd the code even i try to take the body and then applied regex but some body not defined/missing error pops.
I also tried activity added trigger and then mask the content it is doing the thing, but not getting reflected on conversation or other places, even I try to put a timer in case creation process, if it could help but nothing work out
How to do that now?

Like 0

Like

1 comments

You should put this logic into the IncidentRegistrationFromEmaillHelper class into the GetRegisterIncidentId method. Why: it's called in the business process you mentioned (see the chain RegisterIncidentFromEmail method called from the script-task -> GetRegisterIncidentId method is called from the process methods) and this is the final step that creates the ticket. After the ticket is created you can manipulate with the email subject and body (but also note that subject and body will be used in the Subject and Description of the registered ticket). The GetRegisterIncidentId method is public and virtual so you can override its logic if needed and it contains the activityId as an argument using which you can get the activity needed to process.

 

If you need to put a mask before the incident is registered - you need to put the logic into the RegisterIncidentFromEmail method in the business process. You also have activityId there as an argument so you can manipulate with the activity subject and body and only then call the GetRegisterIncidentId method.

Show all comments