describeMObject- metadata for Lead Activity Record

Anonymous
Not applicable

describeMObject- metadata for Lead Activity Record

When we extract the metadata for the Lead Activity record using describeMObject(), Fields display name is either null or empty for the field list . I
Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: describeMObject- metadata for Lead Activity Record

Perhaps the parameter is not matching the WSDL. In principle it is entered as ActivityRecord

 
I have tested in two steps: first listMObjects and then describeMObject

Request


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mkt="http://www.marketo.com/mktows/">
   <soapenv:Header>
      <mkt:AuthenticationHeader>
         <mktowsUserId>xxx</mktowsUserId>
         <requestSignature>xxx</requestSignature>
         <requestTimestamp>xxx</requestTimestamp>
         <audit></audit>
         <mode></mode>
      </mkt:AuthenticationHeader>
   </soapenv:Header>
   <soapenv:Body>
      <mkt:paramsListMObjects/>
   </soapenv:Body>
</soapenv:Envelope>


Response
 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.marketo.com/mktows/">
   <SOAP-ENV:Body>
      <ns1:successListMObjects>
         <result>
            <objects>ActivityRecord</objects>
            <objects>LeadRecord</objects>
            <objects>Opportunity</objects>
            <objects>OpportunityPersonRole</objects>
         </result>
      </ns1:successListMObjects>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


and then 

Request


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mkt="http://www.marketo.com/mktows/">
   <soapenv:Header>
      <mkt:AuthenticationHeader>
         <mktowsUserId>xxx</mktowsUserId>
         <requestSignature>xxx</requestSignature>
         <requestTimestamp>xxx</requestTimestamp>
         <audit></audit>
         <mode></mode>
      </mkt:AuthenticationHeader>
   </soapenv:Header>
   <soapenv:Body>
      <mkt:paramsDescribeMObject>
         <objectName>ActivityRecord</objectName>
      </mkt:paramsDescribeMObject>
   </soapenv:Body>
</soapenv:Envelope>
 

Response

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://www.marketo.com/mktows/">
   <SOAP-ENV:Body>
      <ns1:successDescribeMObject>
         <result>
            <metadata>
               <name>ActivityRecord</name>
               <description>Composite object composed of fields from Event, Campaign, Lead, and Company</description>
               <isCustom>false</isCustom>
               <isVirtual>true</isVirtual>
               <fieldList>
                  <field>
                     <name>id</name>
                     <description>Unique system id of Event</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Event</sourceObject>
                     <dataType>integer</dataType>
                     <size>10</size>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>true</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>activityDateTime</name>
                     <description>Event timestamp</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Event</sourceObject>
                     <dataType>dateTime</dataType>
                     <size xsi:nil="true"/>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>activityType</name>
                     <description>Name of Event</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Event</sourceObject>
                     <dataType>string</dataType>
                     <size>255</size>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>true</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>mktgAssetName</name>
                     <description>Name of email, landing page, or object field</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Event</sourceObject>
                     <dataType>string</dataType>
                     <size>255</size>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>activityAttributes</name>
                     <description>Array of name / value pairs of dynamic event attributes</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Event</sourceObject>
                     <dataType>Array</dataType>
                     <size xsi:nil="true"/>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>campaign</name>
                     <description>Name of Campaign that caused the Event</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Campaign</sourceObject>
                     <dataType>string</dataType>
                     <size>255</size>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>personName</name>
                     <description>Name of Lead that owns the Event</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Lead</sourceObject>
                     <dataType>string</dataType>
                     <size>255</size>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>mktPersonId</name>
                     <description>Unique system id of Lead</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Lead</sourceObject>
                     <dataType>integer</dataType>
                     <size>10</size>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>foreignSysId</name>
                     <description>Unique foreign system id of Lead</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Lead</sourceObject>
                     <dataType>string</dataType>
                     <size>50</size>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>orgName</name>
                     <description>Name of Company associated to the Lead</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Company</sourceObject>
                     <dataType>string</dataType>
                     <size>255</size>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
                  <field>
                     <name>foreignSysOrgId</name>
                     <description>Unique foreign system id of Company</description>
                     <displayName xsi:nil="true"/>
                     <sourceObject>Company</sourceObject>
                     <dataType>string</dataType>
                     <size>50</size>
                     <isReadonly>true</isReadonly>
                     <isUpdateBlocked>true</isUpdateBlocked>
                     <isName>false</isName>
                     <isPrimaryKey>false</isPrimaryKey>
                     <isCustom>false</isCustom>
                     <isDynamic>false</isDynamic>
                     <dynamicFieldRef xsi:nil="true"/>
                     <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
                  </field>
               </fieldList>
               <updatedAt>2010-01-01T00:00:00+00:00</updatedAt>
            </metadata>
         </result>
      </ns1:successDescribeMObject>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>