function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CrimboCrimbo 

Update case object with contact and account object records

I have a screen flow to create a Case.  The flow starts with a lookup to lookup an account name as follows:

User-added imageThe above retrieved account name is stored in a variable.  After looking up the account name, contacts related to the account name are then retrieved as follows using three record choice sets as follows:

User-added imageThese are now stored in three variables name "primary contact", "secondary contact" and "tertiary contact".  I want these four records written to the Case Object as records in the appropriate field names namely:
  1. Organization
  2. Primary Contact
  3. Secondary Contact
  4. Tertiary Contact
I tried using the variable to update the Case records but an error regarding record type is thrown in.  The error message is as follows:

Error Occurred: The flow tried to update these records: null. This error occurred: MALFORMED_ID: Applicant Organization: id value of incorrect type: VARICHEM PHARMACEUTICALS (PVT) LTD. 

How can this be accomplished?

Regards,
Crimbo