2012-07-10 45 views
2

我試圖使用OrgDBOrgSettings tool訪問在線CRM 2011組織。我下載它並根據說明修改配置,使用提供的示例在線配置作爲指導。目前還不清楚一些設置應該是什麼,我最終以下面的設置結束了。當我運行該應用程序時,它需要輸入密碼,然後告訴我在OrgDBOrgSettings中發生了錯誤信息並且錯誤詳細信息是錯誤。有人可以解釋OrgDBOrgSettings實用程序的配置設置嗎?

除了上面提供的鏈接之外,似乎沒有任何信息。任何人有任何建議?

<setting name="OrgDBOrgSettingsTool_CrmService_CrmService" serializeAs="String"> 
<!--- Please change CrmServer to your Crm Server Name --> 
<value>https://crm.dynamics.com/MSCrmServices/2007/CrmService.asmx</value> 
</setting> 

<setting name="OrgDBOrgSettingsTool_CrmDiscoveryService_CrmDiscoveryService" serializeAs="String"> 
<!--- Please change CrmServer to your Crm Server Name --> 
<value>https://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc</value> 
</setting> 

<setting name="OrgDBOrgSettingsTool_SKU" serializeAs="String"> 
<!--- Possible values here are Online/SPLA/OnPrem --> 
<value>Online</value> 
</setting> 

<setting name="OrgDBOrgSettingsTool_UserName" serializeAs="String"> 
<!--- Please change the value below to your email Id/User Name for Online/SPLA --> 
<value>my crm login email</value> 
</setting> 

<setting name="OrgDBOrgSettingsTool_Domain" serializeAs="String"> 
<value>DOMAIN</value> 
</setting> 

<setting name="OrgDBOrgSettingsTool_OrgServiceUri" serializeAs="String"> 
<value>https://dev.api.crm.dynamics.com/XrmServices/2011/Organization.svc</value> 
</setting> 

<setting name="OrgDBOrgSettingsTool_RegistrationEndPointUri" serializeAs="String"> 
<value>https://login.live.com/ppsecure/DeviceAddCredential.srf</value> 
</setting> 

<setting name="OrgDBOrgSettingsTool_Partner" serializeAs="String"> 
<!--- This is applicable only for Online --> 
<value>Crm.Dynamics.com</value> 
</setting> 

<setting name="OrgDBOrgSettingsTool_Environment" serializeAs="String"> 
<!--- This is applicable only for Online --> 
<value></value> 

回答

1

我得到這個工作與MS支持的幫助。我會發佈下面的配置,爲我工作。請注意,我正在訪問CRM的在線版本。此外,請確保您刪除LiveDeviceID文件夾中的任何文件,因爲應用程序在存在現有條目時似乎會感到困惑。對我而言,該目錄在users/<me>之下。還請注意,據稱您必須使用CRM管理員帳戶登錄。另外請注意,我只用hotmail電子郵件測試了這一點。

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <configSections> 
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > 
     <section name="OrgDBOrgSettingsTool.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> 
    </sectionGroup> 
    </configSections> 
    <applicationSettings> 
    <OrgDBOrgSettingsTool.Properties.Settings> 
     <setting name="OrgDBOrgSettingsTool_CrmService_CrmService" serializeAs="String"> 
     <!--- Please change CrmServer to your Crm Server Name --> 
     <value>http://CrmServer/MSCrmServices/2007/CrmService.asmx</value> 
     </setting> 
     <setting name="OrgDBOrgSettingsTool_CrmDiscoveryService_CrmDiscoveryService" 
      serializeAs="String"> 
     <!--- Please change CrmServer to your Crm Server Name --> 
     <value>https://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc</value> 
     </setting> 
     <setting name="OrgDBOrgSettingsTool_SKU" serializeAs="String"> 
     <!--- Possible values here are Online/SPLA/OnPrem --> 
     <value>Online</value> 
     </setting> 
     <setting name="OrgDBOrgSettingsTool_UserName" serializeAs="String"> 
     <!--- Please change the value below to your admin email Id/User Name for Online/SPLA --> 
     <value>your_crm_admin_email></value> 
     </setting> 
     <setting name="OrgDBOrgSettingsTool_Domain" serializeAs="String"> 
     <value>crmdom</value> 
     </setting> 
     <setting name="OrgDBOrgSettingsTool_OrgServiceUri" serializeAs="String"> 
     <value>https://your_org_name.crm.dynamics.com/XrmServices/2011/Organization.svc</value> 
     </setting> 
     <setting name="OrgDBOrgSettingsTool_RegistrationEndPointUri" serializeAs="String"> 
     <value>https://login.live.com/ppsecure/DeviceAddCredential.srf</value> 
     </setting> 
     <setting name="OrgDBOrgSettingsTool_Partner" serializeAs="String"> 
     <!--- This is applicable only for Online --> 
     <value>Crm.Dynamics.com</value> 
     </setting> 
     <setting name="OrgDBOrgSettingsTool_Environment" serializeAs="String"> 
     <!--- This is applicable only for Online --> 
     <value>INT</value> 
     </setting> 
    </OrgDBOrgSettingsTool.Properties.Settings> 
    </applicationSettings> 
</configuration> 
0

您的CRM服務器名稱節點在我看來是錯誤的。試試這個:

<setting name="OrgDBOrgSettingsTool_CrmService_CrmService" serializeAs="String"> 
    <value>http://yourorgname.api.crm.dynamics.com/MSCrmServices/2007/CrmService.asmx</value> 
</setting> 
+0

謝謝,但我得到了同樣的結果 – keerz 2012-07-10 13:55:10

0

(我知道這個問題是舊的,但也並不顯得是這方面的任何很好的參考,所以我想我會在這裏補充一些有用的信息)

有些事情要檢查:

如果您在美國以外地區使用CRM Online,則需要將crm4.dynamics.com替換爲crm4.dynamics.com(適用於EMEA)或crm5.dynamics.com(APAC)全部

CRM服務器名稱應由「myorg .crm ....「例如

<setting name="OrgDBOrgSettingsTool_CrmService_CrmService" serializeAs="String"> 
<!--- Please change CrmServer to your Crm Server Name --> 
<value>https://YOURORG.crm.dynamics.com/MSCrmServices/2007/CrmService.asmx</value> 
</setting> 

OrgService URI需要api位,但應該是myorg。 :

<setting name="OrgDBOrgSettingsTool_OrgServiceUri" serializeAs="String"> 
<value>https://YOURORG.api.crm.dynamics.com/XrmServices/2011/Organization.svc</value> 
</setting>