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
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.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156