web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Execute an external SOAP web service from custom workflow

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • ashlega Profile Picture
    34,477 on at

    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

  • Community Member Profile Picture
    on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans