Hi,
I am using on-premise. I have tried everything to fix this error message. I have changed permission. I am not using sandbox. How can I fix this.
I have a file on my local machine that I am using to access.
I am using Microsoft Dynamics CRM 2016(8.1.0.359) (DB 8.1.0.359)
Here's the plugin C# code
protected override void ExecuteCrmPlugin(LocalPluginContext localContext) { if (localContext == null) { throw new InvalidPluginExecutionException("localContext"); } // TODO: Implement your custom Plug-in business logic. // TODO: Implement your custom Plug-in business logic. IPluginExecutionContext context = localContext.PluginExecutionContext; IOrganizationService service = localContext.OrganizationService; //Get the CVS file var getCvsFile = @"C:\temp\test1.csv"; StreamReader reader = new StreamReader(File.OpenRead(getCvsFile)); int lineCnt = 0; while (!reader.EndOfStream) { if (lineCnt == 0) continue; var line = reader.ReadLine(); var values = line.Split(',');
I have create an action that is being executed from javascript
Action process
Javascript
function CallActionPlugin(execObj, iOption){ $.ajax({ url: Xrm.Page.context.getClientUrl() + "/api/data/v8.0/new_LoadCalibrationData", type: 'POST', success: function(responseText){ //var jsonData = JSON.stringify(responseText); //myArr = JSON.parse(jsonData ); // parsing JSON alert(" -- Action Called - 23"); // updateMap(myArr); } });
Here's my plugin register