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

Notifications

Announcements

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
    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.

  • GirishS Profile Picture
    27,829 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.

  • BASMA Profile Picture
    932 on at

    I have this  error  : 

  • Suggested answer
    GirishS Profile Picture
    27,829 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

    the property in the entity is empty : 

  • GirishS Profile Picture
    27,829 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

    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

  • Suggested answer
    GirishS Profile Picture
    27,829 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.

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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 338 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans