# How to use ItemIdcompany field in InterCompany functionality

**URL:** https://www.dynamicsuser.net/t/how-to-use-itemidcompany-field-in-intercompany-functionality/20716
**Category:** Developer Forum
**Created:** [January 7, 2009, 11:57am UTC](https://www.dynamicsuser.net/t/how-to-use-itemidcompany-field-in-intercompany-functionality/20716 "2009-01-07T11:57:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![manish\_s](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@manish\_s](https://www.dynamicsuser.net/u/manish_s)
#### Post date: [January 7, 2009, 11:57am UTC](https://www.dynamicsuser.net/t/how-to-use-itemidcompany-field-in-intercompany-functionality/20716/1 "2009-01-07T11:57:00Z")

</div>

Hi everyone,

I am trying to access the itemid from one company(say Company A) to the related Company Item from another company(say Company B).

In company A, for Item A001, I attach, itemIdCompany A1.

In company B, for item B001, I attach, itemIdCompany B1.

So how to relate the item A001 of company A to B001 of company B.

I dont understand the setup for that.

The table InventTableCompany, is storing data per company, so the data in that is company dependent.

So, how Axapta, checks the data for CompanyItem from one company to another.

may be my assumption or setup is wrong, so any idea will be appreciated…

Thanks in advance…

---

<div class="post-metadata">

### Author: ![fedemobr](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@fedemobr](https://www.dynamicsuser.net/u/fedemobr)
#### Post date: [November 30, 2010, 9:47am UTC](https://www.dynamicsuser.net/t/how-to-use-itemidcompany-field-in-intercompany-functionality/20716/2 "2010-11-30T09:47:29Z")

</div>

I’d like to know how to works AX with “Company Item” field, too.

Thanks

Federico

---

<div class="post-metadata">

### Author: ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://www.dynamicsuser.net/u/kranthi)
#### Post date: [November 30, 2010, 10:55am UTC](https://www.dynamicsuser.net/t/how-to-use-itemidcompany-field-in-intercompany-functionality/20716/3 "2010-11-30T10:55:06Z")

</div>

For that you need to setup AIF. (End points, Action Policies , constraints etc.) if you are creating a new company - you can see in CEU company all these setup are being done.(you can see the AIF setup in that company).

After that create an item A001 in company A and create a company item B001 and attach it to the company item field

and now go to functions - click “Create item in company” where you can select the company B by checking include check box.

then it will automatically create B001 item in the company B.
