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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

create a custom entity and entity detail

(0) ShareShare
ReportReport
Posted on by 5

Good evening community,

i am quite new to CRM and would truly appreciate your help and input on a matter I am currently trying to work on.

I am required to create a "Delivery Note" entity which basically works like e.g. oppurtunity, salesorder and/or invoice.

Is something like that realizable or at the very least in a similar fashion?

Best Regards,

axji

I have the same question (0)
  • Verified answer
    LuHao Profile Picture
    40,890 on at
    RE: create a custom entity and entity detail

    Hi partner,

    You can follow the next steps to achieve your request.

    1. Open your app and go to Settings > Customization > Customizations > Customize the system

    0245.png

    3771.png

    2. Due to the features of the entities you listed (Opportunity, Sales Order and/or Invoice), you need to create two entities to clarify the entities you need and how their details relate to the product.

    5672.png

    a) Deliver Note

    It can be created with reference to the Order entity.

    6038.png

    b) Deliver Note Product

    It can be created with reference to the Order Product entity.

    54336.png

    3. Establish the relationships

    There are 2 ‘N: 1 Relationship’ for the xxx Product entity. One is xxx Product to xxx and the other is xxx Product to Product.

    2110.png

    So you need to establish to N: 1 Relationship for Deliver Note Product entity.

    * It will also create a lookup field in Deliver Note Product entity according to the Lookup Field set in the Relationship.

    a) Deliver Note Product: Deliver Note

    0383.png

    b) Deliver Note Product: Product

    2275.png

    c) Deliver Note: Order

    8814.png

    4. After completing the above steps, the approximate Entities which you need has been created. You can create more fields to describe other details you need to record.

    For example:

    The Customer info can be created in Deliver Note entity.

    The Quantity of the products, the Price for delivering the products can be created in Deliver Note Product entity.

    It all depends on your specific requirements.

    5. Add the Deliver Note into Sales.

    Open the Site Map as the following picture.

    5543.png

    Add the Deliver Note as you want.

    3162.png

    6. Create some sub grids to show the specific information

    a) Sub Grid for Deliver Note in the form of Order.

    5164.png

    b) Sub Grid for Deliver Note Product in the form of Deliver Note.

    2703.png

    Then you will see the related deliver notes to a specific order and the products in each line of a specific deliver note.

    Hope this helps.

    Nya

  • MusterMax Profile Picture
    75 on at
    RE: create a custom entity and entity detail

    Hi i am also following Nya's suggestions but when trying to create a relationship between delivery product and product I am getting an "unexpected error" :(

  • LuHao Profile Picture
    40,890 on at
    RE: create a custom entity and entity detail

    Hi MusterMax,

    It is likely that the name of the relationship already exists, so this name cannot be used. Please try a different name for the relationship.

    pastedimage1611740616119v1.png

  • MusterMax Profile Picture
    75 on at
    RE: create a custom entity and entity detail

    Hi Hao, thank you for taking your time to help out!

    I have a couple questions still:

    1. Is it possible to have a inline editor like in the other entities?

    2. I'd like to copy over all or selected line items to the Delivery Product subgrid (maybe with a dialog pop up)

    Are these possible somehow?

  • LuHao Profile Picture
    40,890 on at
    RE: create a custom entity and entity detail

    Hi MusterMax,

    Yes, it's possible.

    I would recommend you post a new question for it, and I will help you there.

    In addition, you can share more detail information about the question in the new thread.

  • axji Profile Picture
    5 on at
    RE: create a custom entity and entity detail

    Good evening Hao,

    first of all, thank you a lot for your detailed guide on how to tackle this task!

    now having read along I actually need something similar to what MusterMax needs (although those are only my assumptions)

    What I'd like to implement is:

    Have a button "Create Delivery Note" in the Order form that opens a dialog like it does when searching for records to select either all or specific product line items that are to be populated in the Delivery Note Product subgrid, while somehow keeping track of the products of the order that are not yet used in a delivery note (Perhaps with an option set?).

    My first guess was to go with WEB API but I'd be thrilled to hear about your approach :)

    Best Regards

    axji

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 117 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 115

#3
Erin Lubben Profile Picture

Erin Lubben 66

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans