Marty Zigman

Conversations with Marty Zigman

Certified Administrator • ERP • SuiteCloud

Marty Zigman LinkedIn

Marty Zigman

Holding all three official certifications, Marty is regarded as the top NetSuite expert and leads a team of senior professionals at Prolecto Resources, Inc.. He is a former Deloitte & Touche CPA and has held CTO roles. For over 30 years, Marty has produced leadership in ERP, CRM, and eCommerce business systems. Contact Marty to set up a conversation.

BiographyYouTubeLinkedInX (Twitter)

9 thoughts on “NetSuite’s Entity “Other Relationship” Idiosyncrasies

  1. Marty, re: point #2 removing other relationships, I’m pretty sure if you just delete the record type that you want to get rid of, that removes the Other Relationship. E.G., you have a dual customer/vendor record. Navigate to the Vendor record screen for that InternalID, go into edit mode, use standard delete function, and then only the Customer record should survive with the same InternalID but no Other Relationship shown.

  2. You can actually work it server side and its likely the same reason you get an error trying to do the merge.

    When you merge two entities of different types that creates the link and the primary is the surviving ID. So server side solution is create new foreign entity and create a merge task.

  3. To create an “other relationship” in suitescript 2.0 first create the target entity and then call the deduplication task to merge the 2 records

    We have successfully created a linked customer record from a vendor record using this approach

    Here is an example in typescript

    let customerRecord = record.create({type: record.Type.CUSTOMER});
    customerRecord.setValue(‘companyname’, vendorRecord.getValue(‘companyname’));
    customerRecord.setValue(‘subsidiary’, vendorRecord.getValue(‘subsidiary’));
    customerRecord.setValue(‘status’, 13);
    customerID = customerRecord.save();

    log.debug(‘customer creation’, customerID);

    let customerLinkTask = task.create({taskType: task.TaskType.ENTITY_DEDUPLICATION});
    customerLinkTask.entityType = task.DedupeEntityType.CUSTOMER;
    customerLinkTask.dedupeMode = task.DedupeMode.MERGE;
    customerLinkTask.masterSelectionMode = task.MasterSelectionMode.SELECT_BY_ID;
    customerLinkTask.masterRecordId = vendorID;
    customerLinkTask.recordIds = [customerID];
    let customerLinkTaskId = customerLinkTask.submit();

    log.debug(‘created customer link task ‘, customerLinkTaskId);

  4. Marty, have you heard if NS will ever add Emplooyee records to Other Relationships? It’s quite common use case in Retail that Employees buy things with their Employee discount hence need to be Customers, and that all needs to be tracked to prevent abuse of the employee discount and reselling goods on eBay?

  5. Hi Marty,
    Regarding point #4, it looks like NetSuite does allow to Create an Other Relationship record with Multi-Subsidiary Customer feature enabled.

Leave a Reply

Your email address will not be published. Required fields are marked *