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

how to set datasource in entity not shared between companies?

(0) ShareShare
ReportReport
Posted on by 932

Hello,

 I create extension of standard entity"EcoResProductLifecycleStateEntity" 

the table "EcoResProductLifecycleState" is shared between companies 

I add 2 datasources which has relations with this table "EcoResProductLifecycleState" : 

so I want that these datasources  are not shared between companies 

have you any idea !!

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

    Hi Basma,

    I don't think you can set the shared between companies' behavior in data entities.

    It will be set up at table level with the property named "Save Data Per Company" - If the Save data per company is set to No then data will be shared across all the companies. If it is yes, it will store data against each company.

    Thanks,

    Girish S.

  • BASMA Profile Picture
    932 on at

    thanks for reply ,

    yes the tables has the property"save data per company'=yes 

    but when I try to export the entity I get the data of all companies

  • GirishS Profile Picture
    27,833 Moderator on at

    Check the below link and see if the Primary company context property is set with value instead of empty.

    https://anithasantosh.wordpress.com/2021/06/11/export-data-from-all-legal-entities-using-dixf-d365-fo/

    Thanks,

    Girish S.

  • BASMA Profile Picture
    932 on at

    the property in the entity is empty : 

  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    Type in DataAreadId in the Primary company context and check if it exports data against the current company where the export is triggered.

    Thanks,

    Girish S.

  • BASMA Profile Picture
    932 on at

    I have this  error  : 

  • GirishS Profile Picture
    27,833 Moderator on at

    Sorry I never came across this error. EcoResProductLifeCycleState is global table (Save data per company - Set to No). Thats the reason why its throwing the error.

    But I am not sure on this.

    Wait for some other community members to have better look on this.

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, Can you try adding DataAreaId field in the Data Entity Fields. Your primary datasource will not have it but add it from other datasource then set DataAreaId in Primary Company Context field. If you change the field name say from DataAreaId to CorollaryTableDataAreaId then set CorollaryTableDataAreaId in Primary Company Context.

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 510 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 399

#3
Adis Profile Picture

Adis 251 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans