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 :
Finance | Project Operations, Human Resources, ...
Answered

Error in consume custom service from PHP

(0) ShareShare
ReportReport
Posted on by 40

Hi!

I have a custom service in Dynamics, register my app in Azure AD  and test with C# with a console application, like refer from Github documentation. But, when I try to consume form PHP , get an error, befor 2020 July I connect without problem, but now I cannot consume,  get error :array(3) { ["Message"]=> string(22) "Error de autenticación". ["StackTrace"]=> NULL ["ExceptionType"]=> string(32) "System.InvalidOperationException" }

I reviewed app register, custom service, code from PHP but not found the issue. 

I have the same question (0)
  • Alex VN Profile Picture
    1,994 on at

    Hi,

    I would suggest you to check again from C# console and also postman to see if the custom service is working or not. If issue is from D365Fo then you can try to debug it.

    If it is from HTTP call, I would suggest to use fiddler to capture the request and see other properties.

    Hope it helps.

  • huijij Profile Picture
    19,811 on at

    Hi Evelin,

    Procdump is a tool to collect a dump and check its failing call stack and related parameters/variables.You can refer to Ada's suggestion:

    community.dynamics.com/.../fault-finding-custom-services-issues

  • Verified answer
    Evelin Gallegos Profile Picture
    40 on at

    I found the issue, missing permission  into register app in Azure, the custom service works fine! Thank you for teh answer and tip!

  • huijij Profile Picture
    19,811 on at

    Hi Evelin,

    Thanks for your sharing. I will mark this as a Verified Answer, which may in turn help others.

  • Suggested answer
    Evelin Gallegos Profile Picture
    40 on at

    Muy buena herramienta

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 659

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 465 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 304 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans