You need to sign in to do that
Don't have an account?
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;
}
Mind me.
sObject !!!