Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Execute an external SOAP web service from custom workflow

Posted on by Microsoft Employee

Hi Guys,

I would like to have some help regarding an issue that I am facing. I have a custom workflow that uses an external SOAP web service to push certain information from CRM. This SOAP web service is expecting the default credentials for its authentication. So the "UseDefaultCredentials" is set as true. Unfortunately while executing the workflow I am getting an exception "System.Exception: System.Web.Services.Protocols.SoapException: The user ID and password are invalid. Try again." We are using Dynamics CRM 2011. But this same is working properly when this is set as a dialog process and triggered by a button click.

Is there any solution or work around for this? The workflow has to work and push information to the service in the context of the person who initiated the workflow.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Execute an external SOAP web service from custom workflow

    Hi Alex,

    Thanks for your reply, I have already tried the user impersonation, but unfortunately what I need is the active directory credentials of the user. "UseDefaultCredentials" property in the web service is supposed to take the active directory credentials from the process which is executing the plugin/workflow.

    My assumption for this issue is that, the plugin or workflow is executing in an entirely different user's credentials (like service accounts) than the credentials of the user that triggered it.

    Thanks,

    Richard Lambert.

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Execute an external SOAP web service from custom workflow

    Hi Richard,

     this may help to clarify things, but I don't think there is a workaround(if you keep using a worklfow):

    community.dynamics.com/.../user-impersonation-in-plugins-workflow-and-dialogs

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,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans