We're using Dynamics 365 on-premise (8.2). I'm trying to create a console app that runs an action in CRM, so we can schedule the action using Windows Task Scheduler. (I hate trying to mess around with wait conditions and such in CRM itself - never feels clean/manageable to me.)
I've created a test console app using the guide here (thank you!): http://joegilldotcom.blogspot.ca/2016/09/simple-dynamics-crm-console-application.html
That works fine with the credentials hard coded in. My connection string looks like this: "Url=https://<url>/<orgname>;Domain=<domainname>;UserName=<username>;Password=<password>;AuthType=IFD" />
However, how can I use the credentials of the calling user - which will be the credentials entered when scheduling the task - rather than putting them in the app.config? Note: this app will only be run on-premise in the same domain; however, we do have IFD enabled.
*This post is locked for comments