function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
saariko.ax241saariko.ax241 

Convert enterprise object to partner

I am trying to convert an enterprise object to partner one, but I am missing something.

 

Can someone tell me if it's possible at all?  please see attached code.

 

What I want basiclly is the name retrieved from the Account. Do I need to change the code?  

limitations:

I need to use the partner binding for the query. - So I need to work on the partner query result.

 

If I can get the account name from the retrieved data while in partner binding, please show me  :-)

 

 

 

try
{
// retrieve the account name to display on the form
SFpartner.sObject[] sObjects = m_partnerBinding.retrieve("Id, Name",
"Account",
new String[] { l_formData.getAccountId() });

SFenterprise.Account retrievedAccount = (SFenterprise.Account)sObjects[0];
//l_formData.setAccountName(retrievedAccount.Name);
// store account name in trxData for later retrievel 13236
l_trxData.m_accountName = retrievedAccount.Name;

}

 

 

 

Message Edited by saariko on 03-19-2009 12:38 PM
Best Answer chosen by Admin (Salesforce Developers) 
saariko.ax241saariko.ax241

Mind me.

 

sObject  !!!