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

Notifications

Announcements

No record found.

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.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 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,037 on at

    Hi,

    For this you have to do customization for that.

    Regards

    Amit Sharma

  • Verified answer
    AD-22040756-1 Profile Picture
    642 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
    Inge M. Bruvik Profile Picture
    1,111 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
    95,597 Super User 2025 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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans