Unable to access CC email addresses in Flow Designer (Inbound Email Trigger)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2026 11:50 PM
Hi all,
I am trying to fetch **CC email addresses** from an **Inbound Email trigger in Flow Designer** and populate the **Watch List**.
I created a **Flow Variable (watchlist_sysids)** and used a **Set Flow Variables (script)** step with the below code:
```javascript
var cc = fd_data.trigger.cc;
if (!cc) return "";
var emails = cc.split(",");
var result = [];
for (var i = 0; i < emails.length; i++) {
var email = emails[i].trim();
if (!email) continue;
var gr = new GlideRecord('sys_user');
gr.addQuery('email', email);
gr.query();
if (gr.next()) {
result.push(gr.sys_id.toString());
}
}
return result.join(",");
```
### Error faced:
```
Cannot read property "cc" from null
```
I also tried using `trigger.email.cc` and `copied`, but still facing issues.
How can we correctly retrieve CC email addresses in Flow Designer?