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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How do i get the Sales rep ID from Commission sales groups

(0) ShareShare
ReportReport
Posted on by 30

I am trying to create a report based on a unique business requirement, a report that shows which assortments are assigned to which account executive and line of business,

I have been able to get the assortments by Line of business, the part i don know how to access is the Sales rep. I found out commission sales group had been set up and each group has a sales rep. This works for my report but i don't know the entity where i can extract the Sales rep person from.

Using the Contoso example, I have a sales group as Sales rep US

pastedimage1664931358946v1.png

Clicking on General

pastedimage1664931400406v2.png

pastedimage1664931417668v3.png

The commision sales group entity doesnt include the Sales Rep Id,

So my question again is how do i access Barbara Zighetti

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi Ayodeji Osanyin,

    Instead of searching for entity you can directly add select statement joining CustomerSalesGroup and CustomerSalesRep table to get the sames rep. Relation would be CustomerSalesGroup .GroupId == CustomerSalesRep.GroupId.

    Thanks,

    Girish S.

  • Ayodeji Osanyin Profile Picture
    30 on at

    Hi,

    I am creating the report on powerBI, so I need access to the entity, I can’t find any table called customersalesrep.

    pls can you show me where to get this,

    thanks

  • GirishS Profile Picture
    27,827 Moderator on at

    Are you using D365 F&O as a database for power bi?

    Thanks,

    Girish S.

  • Ayodeji Osanyin Profile Picture
    30 on at

    Yes, your correct

  • Ayodeji Osanyin Profile Picture
    30 on at

    I am using Odata exposed entities for the report

  • GirishS Profile Picture
    27,827 Moderator on at

    Oh sorry, its not customer its CommissionSalesGroup and CommissionSalesRep table.

    You can get the sales rep from CommisionSalesRep table.

    Relation will be CommissionSalesGroup .GroupId == CommissionSalesRep .GroupId.

    Also there is no Entity which has CommissionSalesRep as a datasource.

    In that case you need to create a new data entity in d365 F&O by adding CommissionSalesGroup and CommissionSalesRep table and use it in power bi.

    Thanks,

    Girish S.

  • Ayodeji Osanyin Profile Picture
    30 on at

    Hi Girish,

    There is no  CommissionSalesRep table that includes the table an din the group it just has the groupID and the group name as shown in the images below

    pastedimage1664980213869v1.png

    pastedimage1664980307404v2.png

  • GirishS Profile Picture
    27,827 Moderator on at

    Hi Ayodeji Osanyin,

    You are correct. "CommissionSalesGroup" entity doesn't have CommissionSalesRep as a datasource in that entity.

    If you need means you need to create a new entity with CommissionSalesGroup and CommissionSalesRep as a datasource and use it in power bi.

    This is what I previously mentioned.

    Thanks,

    Girish S.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans