Hi,
I am trying to import data from a csv file programmatically.
For that, I am using crmserviceclient to connect to my application and creating 'Import' entity like this:
CrmServiceClient crmSvc = new CrmServiceClient(ConfigurationManager.ConnectionStrings["MyDynamicsWebJobCon"].ConnectionString);
IOrganizationService service;
service = (IOrganizationService)crmSvc.OrganizationWebProxyClient != null ? (IOrganizationService)crmSvc.OrganizationWebProxyClient : (IOrganizationService)crmSvc.OrganizationServiceProxy;
OrganizationServiceContext orgContext = new OrganizationServiceContext(service);
// Create the Import
Entity import = new Entity("import");
import.Attributes.Add("modecode", new OptionSetValue(0));
import.Attributes.Add("name", "CustomEntityDataImport");
import.Attributes.Add("sendnotification", false);
import.Id = service.Create(import);
Console.WriteLine(import.Id);
Console.ReadLine();
Not sure why am I not seeing this created import record in my application. When I debug, I do see the guid of the created import record but I can't find it in the application.
I am working on Dynamics 365 Online. Can somebody please guide me in finding this missing record? I can't 'advanced find' it either.
Thanks for any help!