c# - Import Accounts and Contacts Zip File via the Dynamics CRM SDK -


i need automate dynamics crm import wizard lets zip accounts , contacts files , import them crm @ once per screen shot below.

enter image description here

we have quite few zip files import thought might wise automate using dynamics crm sdk. looking in sdk can find example of importing entity files 1 1 such here no examples of importing them in zip file? possible , if there examples of this? instance sdk code below looks @ "import accounts.csv" file need handle "import accounts , contacts.zip".

// create import file. importfile importfile = new importfile() {     content = bulkimporthelper.readcsvfile("import accounts.csv"), // read contents disk.     name = "account record import",     isfirstrowheader = true,     importmapid = new entityreference(importmap.entitylogicalname, importmapid),     usesystemmap = false,     source = "import accounts.csv",     sourceentityname = "account_1",     targetentityname = account.entitylogicalname,     importid = new entityreference(import.entitylogicalname, importid),     enableduplicatedetection = false,     fielddelimitercode =         new optionsetvalue((int)importfilefielddelimitercode.comma),     datadelimitercode =         new optionsetvalue((int)importfiledatadelimitercode.doublequote),     processcode =         new optionsetvalue((int)importfileprocesscode.process) }; 

according this enum, options available programmatic importing xml , csv. have code open each zip , submit each file individually.

update based on comment: disregard enum. hunting around sdk import related stuff , thought enum relevant. digging little deeper, metadatabrowser shows me importfile entity's filtetypecode optionset has following options: csv, xml spreadsheet 2003, attachment, , xlsx. i'm guessing handling of zip files baked dialog opposed platform. in other words, think you're right, programmatic importing of zips not looking good.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -