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 :
Customer experience | Sales, Customer Insights,...
Answered

How do I separate "Sales contacts" from "Marketing contacts" ?

(0) ShareShare
ReportReport
Posted on by 72

Hi,

I want to know how can I separate Sales Contacts from Marketing Contacts. Is this option is given in out of the box or it needs some configurations.

For example:

I create a contact in Marketing, and I don't want that contact to show in sales contacts.

Please help, Thanks in advance.

Regards,

Hamid Hassan

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    Hi Hamid,

    Currently we couldn't make records created from one app not show in another app. i.e: Contacts created in Sales Hub couldn't be set to only available in Sales Hub.

    There is a two options field "Marketing only" in Contact entity, it will let us know whether the contact is only for marketing, so you could take workaround below as reference. (The field has been added to Contact form > Details tab > Marketing section.)

    1. Run a JS function for all forms of Contact entity in Marketing app, it will set “Marketing Only field to Yes if current app is "Marketing".(Optional, you could also set the field manually.)

    Xrm.Utility.getGlobalContext().getCurrentAppName().then(function(app) {
        if (app === 'Marketing') {
        	formContext.getAttribute("marketingonly").setValue(true);         
        }
    }, function() {
        console.log("err");
    });

    How to get current app name by JS:

    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-utility/getglobalcontext/getcurrentappname

    2. Apply filter "Marketing Only equals to No"  to all existing views in Sales Hub.

    pastedimage1593408921980v1.png

    3. Create a copy of "My Active Contacts" view or "Active Contacts" view, name it as "My Active Contacts(Marketing Only)".

    The only difference between the copied view and the existing view is that the filter will become to "Marketing Only equals Yes".

    pastedimage1593409875538v2.png

    4. Edit Marketing app in make.powerapps.com, only enable "My Active Contacts(Marketing Only)" view to the app.

    (Keep other necessary views based on your requirement.)

    pastedimage1593410584934v4.png

    pastedimage1593411204498v5.png

    Finally, marketing Only contacts will only display in Marketing app.

    Regards,

    Clofly

  • Suggested answer
    ShaileshJain Profile Picture
    Microsoft Employee on at

    hey Hamid, agreed with Clofly that using "marketing only" flag can be leveraged to create view that excludes them on sales view

  • Hamid Hassan Profile Picture
    72 on at

    Hi Shailesh,

    I followed the same steps as enter "Y/N" in marketing only field and create new view to show records with respect this marketing only field in sales and marketing.

    thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 209 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 71

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans