Announcements
Hi,
Within my company, we are having problem with internal staff registering for Events or downloading something using our forms. These are creating Leads and Contacts in our system that we constantly need to clean.The biggest issue we have is a security one. Sales staff and managers have the risk of having their Email correspondence open to view for anyone with 365 access if a Lead and Marketing Contact is created.When they fill in a form to download something, we are normally be pretty quick in deleting them. But when the register for an Event, they might stay in the system for some time. Only after the Event has finished can we delete the Event registration and the corresponding Lead & Contact. We have thought of two ways to try and fix this:1. Make sure that all Internal staff always use a private Email address - continue to manually delete these Leads2. Ask them to always use the @hms.com domain email so we might have a chance to somehow block this domain from creating a Lead & Contact.Do you any other approach here to how we can stop Leads & Contacts from internal staff in the system? Is it possible to block a domain from creating Leads?Im sure we are not the only Company here with this problem! Thanks in advanceChris
Hi, Chris
Please create a Flow to achieve your request.
After saving the flow, when a Lead is created with the email of the parent contact containing “xxx.com”, it will be deleted automatically.
For the creation of a contact with the same email domain, it can be deleted in the same way.
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Nya
How would this work with Event registrations? Normally a lead and contact cannot be removed if an event registration exists. We still want to permit internal staff to join webinars if they like.
For the Contact is the required field of a registration, it cannot be deleted with the registration remained. As you said, “We still want to permit internal staff to join webinars if they like.” So it would be better to control the content of the email input at the time of registration.
Provided that your event is registered through the marketing form, you can add a JavaScript to the Event registration form to pop up an alert and clear the input when an invalid email is submitted.
Here is an article about how to extend marketing form with code.
Extend marketing forms using code (Dynamics 365 Marketing Developer Guide) | Microsoft Docs
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Tom_Gioielli 53 Super User 2026 Season 1
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Eugen Podkorytov 49
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Fiona_Tiernan 22 Moderator