Reply to a message owned by another grant

Just making sure I understand this right.

We have 2 grants for an organization: grant.a@email.com and grant.b@email.com

grant.a reached out to customer@email.com and cc’d grant.b@email.com. customer replied.

We currently have grant.a’s thread in db with 2 messages: the reach out email and the customer’s reply. We want to allow grant.b@email.com to reply to the customer but we got a Nylas::NylasApiError: reply_to_message_id contains an ID that was not found on the provider, double check that it exists.

This is because grant.b can not reply to a message grant.a owns even though he is cc’d, right? If we want grant.b to reply, it must be to his own copy of the email that has its own different ID (which we’re not tracking right now).

I feel like I already got this right but just making sure.

@ko-lem Thanks for posting, I think you are on the right path. Let me try to clarify:

  • grant.a has two messages: 1) outreach and 2) customers reply (reply_to_message_id)

  • grant.b does not have any messages

So only grant.a can respond using reply_to_message_id since its only in their inbox. So grant.b cannot use the same reply_to_message_id since its not in their inbox.

So what you are saying makes sense.

Thanks for confirming.

In the situation I’m testing, customer did a “Reply to all” so grant.b also did receive a copy of the message, with its own ID. They also have a copy of the original outreach because they were CC’d.

So grant.b would have a reply_to_message_id, so is grant.b - reply_to_message_id using this causing the error?

This was a bit confusing. But when I got the error I was using grant.b to reply to the message id owned by grant.a. I only later realized grant.b has their own copy of the messages.

It actually does makes much sense to me now. I was just so confused when I posted this question.

All good, keep us posted if you have more questions :slight_smile:

1 Like