My process runs 3 minutes after lead creation. It sends an email to the lead and logs the message in Email Message.

Here's the error...

Error Occurred: This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Related To ID: id value of incorrect type: 00Q0P00000xqeEwUAI.

Here's the process action... enter image description here

When I look it up, the Lead is valid and not deleted. Any ideas?

1 Answer 1


I updated the object to Allow Activities and it worked. This happened because on EmailMessage's RelatedTo field, the object in question was not listed. By Allowing Activities, that object gets placed as a valid value for RelatedTo.

  • How did you update the Lead object to allow activities. Could you please let me know?
    – Alex Jones
    Jan 24, 2023 at 11:52
  • Hi Alex, yes, just navigate to the SObject and in Details, click Edit. When you scroll to the bottom, you will see a section called Optional Features, and then a checkbox called Allow Activities. Hope that helps. Oct 18, 2023 at 1:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .