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 :
Microsoft Dynamics AX (Archived)

Get company from AIF service message header

(0) ShareShare
ReportReport
Posted on by

I have a webservice created with the AIF service wizard (create, read, update, delete methods are created).

When I receive request/xml over the generated service, there I have a company field inside the header tag. Does anybody know how to get the value from there?

Thanks and best regards

Markus Haslinger

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ajit Profile Picture
    8,788 on at

    Hi Markus, When you check the data policies, you must have the 'SenderId'. You can enable that.

  • Verified answer
    Martin Dráb Profile Picture
    239,364 Most Valuable Professional on at

    Why do you want it? As far as I know, it's handled by AX kernel and your code is already executed in the context of the given company, so your code can simply check curExt().

    Or do you mean adapter-based integration (despite the remark about web services)? Then you can take it from AifGatewayQueue.Company, if you *really* need it before actually running your document service.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans