Hi All,
I want create dataAreaId field from c# using AIF Services
Please any one help me
Thanks in advance
Mani
Hi All,
I want create dataAreaId field from c# using AIF Services
Please any one help me
Thanks in advance
Mani
What exactly are you trying to achieve?
If you’re using a document service and you want to create a record in another company, configure and use another local endpoint.
Thanks for your update
example one record have company “A” and another record have company “B”.
I want to create those record at the time and that record have dataAreaId field also
but dataAreaId filed generate in ax based on user default company.
If you don’t want to use separate local endpoints, you’ll have to use changeCompany() inside your document service (I’ve never tried it so I’m not sure if there isn’t anything preventing this approach).
I created local endpoint then what next i will do?
Thanks
Mani
You’ll set a destination endpoint in message’s header. See Switching companies/endpoints when calling AIF services.
Martin,
I used changecompany() method. It is working fine
Thanks for your valuable suggestion.
Thanks,
Mani
public AifEntityKeyList create(Services _service)
{
changeCompany(‘A’) //Default company is now ‘A’.
{
return this.createList(_service);
}
changeCompany(‘B’) //Default company is now ‘B’.
{
return this.createList(_service);
}
changeCompany(‘C’) //Default company is now ‘C’.
{
return this.createList(_service);
}
only Company ‘A’ working changecompany()
Other company not working