0

金威软件中是否存在某些元数据字段返回的错误null?我有一个下载所有帐户字段和元数据的大型项目,除了owneridtype和其他一些之外,它们都可以工作。像这样的字段customertypecodename很好,我已经验证了它owneridtype的映射与所有其他字段相同。我的来源是一个 fetchxml 查询。

我发现这些帐户字段以及实体存在regardingobjecttypecode问题:activitypointer

owneridtype

donotsendmarketingmaterialname

isprivatename

masteraccountidname

owneridtype

这是我的查询,减去自定义字段。如果需要,我可以添加这些。

<fetch mapping='logical'>
    <entity name='account'>
        <attribute name='accountcategorycode'/>
        <attribute name='accountcategorycodename'/>
        <attribute name='accountclassificationcode'/>
        <attribute name='accountclassificationcodename'/>
        <attribute name='accountid'/>
        <attribute name='accountnumber'/>
        <attribute name='accountratingcode'/>
        <attribute name='accountratingcodename'/>
        <attribute name='address1_addressid'/>
        <attribute name='address1_addresstypecode'/>
        <attribute name='address1_addresstypecodename'/>
        <attribute name='address1_city'/>
        <attribute name='address1_composite'/>
        <attribute name='address1_country'/>
        <attribute name='address1_county'/>
        <attribute name='address1_fax'/>
        <attribute name='address1_freighttermscode'/>
        <attribute name='address1_freighttermscodename'/>
        <attribute name='address1_latitude'/>
        <attribute name='address1_line1'/>
        <attribute name='address1_line2'/>
        <attribute name='address1_line3'/>
        <attribute name='address1_longitude'/>
        <attribute name='address1_name'/>
        <attribute name='address1_postalcode'/>
        <attribute name='address1_postofficebox'/>
        <attribute name='address1_primarycontactname'/>
        <attribute name='address1_shippingmethodcode'/>
        <attribute name='address1_shippingmethodcodename'/>
        <attribute name='address1_stateorprovince'/>
        <attribute name='address1_telephone1'/>
        <attribute name='address1_telephone2'/>
        <attribute name='address1_telephone3'/>
        <attribute name='address1_upszone'/>
        <attribute name='address1_utcoffset'/>
        <attribute name='address2_addressid'/>
        <attribute name='address2_addresstypecode'/>
        <attribute name='address2_addresstypecodename'/>
        <attribute name='address2_city'/>
        <attribute name='address2_composite'/>
        <attribute name='address2_country'/>
        <attribute name='address2_county'/>
        <attribute name='address2_fax'/>
        <attribute name='address2_freighttermscode'/>
        <attribute name='address2_freighttermscodename'/>
        <attribute name='address2_latitude'/>
        <attribute name='address2_line1'/>
        <attribute name='address2_line2'/>
        <attribute name='address2_line3'/>
        <attribute name='address2_longitude'/>
        <attribute name='address2_name'/>
        <attribute name='address2_postalcode'/>
        <attribute name='address2_postofficebox'/>
        <attribute name='address2_primarycontactname'/>
        <attribute name='address2_shippingmethodcode'/>
        <attribute name='address2_shippingmethodcodename'/>
        <attribute name='address2_stateorprovince'/>
        <attribute name='address2_telephone1'/>
        <attribute name='address2_telephone2'/>
        <attribute name='address2_telephone3'/>
        <attribute name='address2_upszone'/>
        <attribute name='address2_utcoffset'/>
        <attribute name='adx_createdbyipaddress'/>
        <attribute name='adx_createdbyusername'/>
        <attribute name='adx_modifiedbyipaddress'/>
        <attribute name='adx_modifiedbyusername'/>
        <attribute name='aging30'/>
        <attribute name='aging30_base'/>
        <attribute name='aging60'/>
        <attribute name='aging60_base'/>
        <attribute name='aging90'/>
        <attribute name='aging90_base'/>
        <attribute name='businesstypecode'/>
        <attribute name='businesstypecodename'/>
        <attribute name='cdi_allowtextmessages'/>
        <attribute name='cdi_allowtextmessagesname'/>
        <attribute name='CFBcrmconsulting'/>
        <attribute name='CFBcrmconsultingname'/>
        <attribute name='CFBcrmelementsoutlook'/>
        <attribute name='CFBcrmelementsoutlookname'/>
        <attribute name='CFBcrmelementsrealestate'/>
        <attribute name='CFBcrmelementsrealestatename'/>
        <attribute name='CFBcrmlicenses'/>
        <attribute name='CFBcrmlicensesname'/>
        <attribute name='CFPEmailSoftware'/>
        <attribute name='CFPEmailSoftwarename'/>
        <attribute name='CFPnumberofemployeesrange'/>
        <attribute name='CFPnumberofemployeesrangename'/>
        <attribute name='CFProle'/>
        <attribute name='CFProlename'/>
        <attribute name='CFPSalesForceSoftware'/>
        <attribute name='CFPSalesForceSoftwarename'/>
        <attribute name='createdby'/>
        <attribute name='createdbyexternalparty'/>
        <attribute name='createdbyexternalpartyname'/>
        <attribute name='createdbyexternalpartyyominame'/>
        <attribute name='createdbyname'/>
        <attribute name='createdbyyominame'/>
        <attribute name='createdon'/>
        <attribute name='createdonbehalfby'/>
        <attribute name='createdonbehalfbyname'/>
        <attribute name='createdonbehalfbyyominame'/>
        <attribute name='creditlimit'/>
        <attribute name='creditlimit_base'/>
        <attribute name='creditonhold'/>
        <attribute name='creditonholdname'/>
        <attribute name='customersizecode'/>
        <attribute name='customersizecodename'/>
        <attribute name='customertypecode'/>
        <attribute name='customertypecodename'/>
        <attribute name='defaultpricelevelid'/>
        <attribute name='defaultpricelevelidname'/>
        <attribute name='description'/>
        <attribute name='donotbulkemail'/>
        <attribute name='donotbulkemailname'/>
        <attribute name='donotbulkpostalmail'/>
        <attribute name='donotbulkpostalmailname'/>
        <attribute name='donotemail'/>
        <attribute name='donotemailname'/>
        <attribute name='donotfax'/>
        <attribute name='donotfaxname'/>
        <attribute name='donotphone'/>
        <attribute name='donotphonename'/>
        <attribute name='donotpostalmail'/>
        <attribute name='donotpostalmailname'/>
        <attribute name='donotsendmarketingmaterialname'/>
        <attribute name='donotsendmm'/>
        <attribute name='emailaddress1'/>
        <attribute name='emailaddress2'/>
        <attribute name='emailaddress3'/>
        <attribute name='entityimage'/>
        <attribute name='entityimage_timestamp'/>
        <attribute name='entityimage_url'/>
        <attribute name='entityimageid'/>
        <attribute name='exchangerate'/>
        <attribute name='fax'/>
        <attribute name='ftpsiteurl'/>
        <attribute name='hoovers_companyid'/>
        <attribute name='hoovers_hooversupdatescheduled'/>
        <attribute name='hoovers_hooversupdatescheduledname'/>
        <attribute name='hoovers_linkedtohoovers'/>
        <attribute name='hoovers_linkedtohooversname'/>
        <attribute name='importsequencenumber'/>
        <attribute name='industrycode'/>
        <attribute name='industrycodename'/>
        <attribute name='isprivatename'/>
        <attribute name='lastonholdtime'/>
        <attribute name='lastusedincampaign'/>
        <attribute name='marketcap'/>
        <attribute name='marketcap_base'/>
        <attribute name='masteraccountidname'/>
        <attribute name='masteraccountidyominame'/>
        <attribute name='masterid'/>
        <attribute name='merged'/>
        <attribute name='mergedname'/>
        <attribute name='modifiedby'/>
        <attribute name='modifiedbyexternalparty'/>
        <attribute name='modifiedbyexternalpartyname'/>
        <attribute name='modifiedbyexternalpartyyominame'/>
        <attribute name='modifiedbyname'/>
        <attribute name='modifiedbyyominame'/>
        <attribute name='modifiedon'/>
        <attribute name='modifiedonbehalfby'/>
        <attribute name='modifiedonbehalfbyname'/>
        <attribute name='modifiedonbehalfbyyominame'/>
        <attribute name='msa_managingpartnerid'/>
        <attribute name='msa_managingpartneridname'/>
        <attribute name='msa_managingpartneridyominame'/>
        <attribute name='name'/>
        <attribute name='numberofemployees'/>
        <attribute name='onholdtime'/>
        <attribute name='opendeals'/>
        <attribute name='opendeals_date'/>
        <attribute name='opendeals_state'/>
        <attribute name='openrevenue'/>
        <attribute name='openrevenue_base'/>
        <attribute name='openrevenue_date'/>
        <attribute name='openrevenue_state'/>
        <attribute name='originatingleadid'/>
        <attribute name='originatingleadidname'/>
        <attribute name='originatingleadidyominame'/>
        <attribute name='overriddencreatedon'/>
        <attribute name='ownerid'/>
        <attribute name='owneridname'/>
        <attribute name='owneridtype'/>
        <attribute name='owneridyominame'/>
        <attribute name='ownershipcode'/>
        <attribute name='ownershipcodename'/>
        <attribute name='owningbusinessunit'/>
        <attribute name='owningteam'/>
        <attribute name='owninguser'/>
        <attribute name='parentaccountid'/>
        <attribute name='parentaccountidname'/>
        <attribute name='parentaccountidyominame'/>
        <attribute name='participatesinworkflow'/>
        <attribute name='participatesinworkflowname'/>
        <attribute name='paymenttermscode'/>
        <attribute name='paymenttermscodename'/>
        <attribute name='preferredappointmentdaycode'/>
        <attribute name='preferredappointmentdaycodename'/>
        <attribute name='preferredappointmenttimecode'/>
        <attribute name='preferredappointmenttimecodename'/>
        <attribute name='preferredcontactmethodcode'/>
        <attribute name='preferredcontactmethodcodename'/>
        <attribute name='preferredequipmentid'/>
        <attribute name='preferredequipmentidname'/>
        <attribute name='preferredserviceid'/>
        <attribute name='preferredserviceidname'/>
        <attribute name='preferredsystemuserid'/>
        <attribute name='preferredsystemuseridname'/>
        <attribute name='preferredsystemuseridyominame'/>
        <attribute name='primarycontactid'/>
        <attribute name='primarycontactidname'/>
        <attribute name='primarycontactidyominame'/>
        <attribute name='primarysatoriid'/>
        <attribute name='primarytwitterid'/>
        <attribute name='processid'/>
        <attribute name='revenue'/>
        <attribute name='revenue_base'/>
        <attribute name='sharesoutstanding'/>
        <attribute name='shippingmethodcode'/>
        <attribute name='shippingmethodcodename'/>
        <attribute name='sic'/>
        <attribute name='slaid'/>
        <attribute name='slainvokedid'/>
        <attribute name='slainvokedidname'/>
        <attribute name='slaname'/>
        <attribute name='stageid'/>
        <attribute name='statecode'/>
        <attribute name='statecodename'/>
        <attribute name='statuscode'/>
        <attribute name='statuscodename'/>
        <attribute name='stockexchange'/>
        <attribute name='telephone1'/>
        <attribute name='telephone2'/>
        <attribute name='telephone3'/>
        <attribute name='territorycode'/>
        <attribute name='territorycodename'/>
        <attribute name='territoryid'/>
        <attribute name='territoryidname'/>
        <attribute name='tickersymbol'/>
        <attribute name='timezoneruleversionnumber'/>
        <attribute name='transactioncurrencyid'/>
        <attribute name='transactioncurrencyidname'/>
        <attribute name='traversedpath'/>
        <attribute name='utcconversiontimezonecode'/>
        <attribute name='versionnumber'/>
        <attribute name='websiteurl'/>
        <attribute name='yominame'/>
        <filter>
            <condition attribute='modifiedon' operator='gt' value='@[User::LastRunDate]' />
        </filter>
    </entity>
</fetch>
4

2 回答 2

5

您能否尝试ownerid在查询中包含该字段并检查您是否可以获得该owneridtype字段的值?

请注意,为了从这些虚拟字段(例如查找名称或选项集名称字段)中读取,您必须包括它们的支持/依赖字段(查找字段或选项集字段)。

如果您有任何其他问题,请随时告诉我们。

于 2017-06-27T20:47:20.557 回答
0

我遇到了同样的问题。我能够通过 Entity 作为数据源获取 codeName 和 lookUp。这不适用于 fetchXml。

于 2019-11-22T10:07:16.433 回答