web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Disable Contact creation from Customer Card

(0) ShareShare
ReportReport
Posted on by 5

Hi,

Is there any possibilities to prevent contact creation while creating a Customer Card?

In our scenario we maintain contact cards for opportunities and CRM related work and Customer Card for financial purpose. We create Leads as opportunities from contact cards and confirmed orders as Sales Orders from Customer Card. So we need to avoid these duplication when creating the Customer Card.

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    Yes you can do that you have to consult with your developer to prevent this,

    There is a function is available In customer table, you can call as per below while inserting new Customer record.

    SetInsertFromContact(false)

  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    Hi,

    For this you have to do customization for that.

    Regards

    Amit Sharma

  • Verified answer
    AD-22040756-1 Profile Picture
    668 on at

    The above replies are wrong. You do not need a customization for this. In the Marketing Setup Page, under Bus. Relations Code ensure the Customer Code is empty. If this code is empty, when you create a Customer the system will not create a Contact.

    The caveat of this is that you will need to manually connect a customer to a contact on the contact card, if required.

    Look at the bottom of this link: stoneridgesoftware.com/.../

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    Nintin and Andy4209 are right here.

    No need to customize this functionality. It is controlled by setup.

  • Verified answer
    YUN ZHU Profile Picture
    103,829 Super User 2026 Season 2 on at

    Hi, I also tested it before, hope the following helps.

    Automatically create contacts when creating customers/vendors/bank accounts:

    https://yzhums.com/21949/

    Thanks.

    ZHU

  • Verified answer
    Shathika Karunaratne Profile Picture
    6 on at

    Hi,

    yes, it is possible. the event for creating a contact while creating a customer is as below (Point 1),

    pastedimage1663660036043v2.png

    In order to skip that event (Point 2), you can create an event subscriber as below,

     [EventSubscriber(ObjectType::Codeunit, 5056, 'OnBeforeInsertNewContact', '', true, true)]
        local procedure OnBeforeInsertNewContactCustomer(var Customer: Record Customer; LocalCall: Boolean; var IsHandled: Boolean)
        begin
            IsHandled := true;
        end;

  • cliffdani16 Profile Picture
    5 on at

    Thanks yzhums andy4029 as you suggested this can be done in Marketing Setup and i was looking for functional solution as well. Tested it on the env.
    Mar-se.jpeg

    Shathika Karunaratne  customization also works for this
    Dev.jpeg

    Thank you for the support everyone!!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 740 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 531 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 310 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans