Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Creating Sales Order, posting and invoicing it using AIF

Posted on by 10

Good morning,

I have a problem after publishing an AIF service and using its method in a Wep.API.

I published that service as a RESTful Api and consumes it using postman.

On C# Wep.Api side i gave the user credentials as follow: 

client.ClientCredentials.Windows.ClientCredential.Domain = "Company_domain";
client.ClientCredentials.Windows.ClientCredential.UserName = "user";
client.ClientCredentials.Windows.ClientCredential.Password = "password";

On AX side I gave the service method to a created privilege and gave it to Role that role i passed it to my user account

On Postman side when i try to send a request i get that error:
"System.ServiceModel.FaultException`1[NewTestApi.TestServices.AifFault]: Access denied: SalesFormLetter_PackingSlip (Fault Detail is equal to NewTestApi.TestServices.AifFault).

so how to give that class "SalesFormLetter_PackingSlip" to my privilege to perform that request. 

Thanks in advance.

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,104 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans