locked
Calling External WEB API from Plugin in CRM 2013 facing login issue if we use default credentials RRS feed

  • Question

  • In CRM, using the credentials that can access WEP API are used to run the plugin, but we are facing a login error issue from CRM side.

    If we change CRM app pool identity from network services to user account which is having access to WEB API we are able to login to WEB API via plugin

    is there any way to make this work for CRM 2015 online as there will be no app pool for us to modify??

    Can you please guide us on this

    Thank you


    • Edited by preethi1228 Friday, January 22, 2016 11:20 AM
    Friday, January 22, 2016 11:14 AM

All replies

  • Hi,

    What is it you are trying to do? You don't need to use the web api from a plugin since you have an "internal Connection" using the context of the plugin.

    Regards


    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

    Friday, January 22, 2016 3:07 PM
  • If using Crm Online, then a plugin can only make anonymous calls to an external web service - it is not possible to pass credentials. The recommended secure way to make this call would be via a listener in Azure - i.e. the plugin would call the Azure listener, and the Azure listener could call your external web service with appropriate credentials

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, January 25, 2016 5:59 PM
    Moderator