Hello,
I have a circumstance where I am trying to create a case and add it to the email. At first, I was trying to do an insert query and this.set via clientside code. I ran into a strange bug doing this where I would set the id into the field and would receive undefined. The pseudo-code looked like this
```
insert.execute(function(res) {self.set("Case", res.Id)}}
```
That is rough code and by no means syntactically correct. Just to give an idea. After this, I moved to a business process to make things easier. I create the case, but then I don't know what object to modify to set this newly created case on the email.
The email object doesn't have a case field.
I looked into it further and see that it's a detail on the email page "EntityConnection" or something similar. The thing about this object is it seems to be extremely dynamic and does not specifically have a case field on itself but programmatically has one.
The problem I'm trying to have resolve is to create a case and pair it to an email.
Any help appreciated.
Like
Dear Tyler,
The “Activity” object has the “CaseId” column that help to connect an email to a specific case. Please feel free to use this column.
Best regards,
Norton