Hi everyone! Recently I encountered a weird issue when implementing contact-creating logic in Acumatica 23R2. I have added several custom fields in Acumatica’s contact table. During creating the new contacts, after assigning values to those custom fields, the values were assigned to the wrong contact record. Here are some screenshots of the detailed issue:


So, after the logic in the first screenshot is executed, the two added contacts are the ones that have email and phone numbers. But while assigning the custom b2b fields, the value has been assigned to the 1st and 2nd contacts (The first contact is not created by the logic above) instead of the 2nd and 3rd contacts. I have tried many things but cannot get the custom fields assigned to the correct contacts. Any help is appreciated!