You need to sign in to do that
Don't have an account?
MingChang.Hou
abou QueryResultSet3
I try to use the query function as follow ...
SForceOfficeToolkitLib3.QueryResultSet3 qrs;
qrs = g_sfApi.Query("Select Id from account where Name = 'test'", false);
qrs = g_sfApi.Query("Select Id from account where Name = 'test'", false);
//where g_sfApi is SForceOfficeToolKitLib3.SForceSession3()
SForceOfficeToolkitLib3.SObject3 qr;
qr = qrs; --------> this will be fail .... "It can't transfer SForceOfficeToolkitLib3.QueryResultSet3 type to SForceOfficeToolkitLib3.SObject3"
I dump the qrs value, I got the follow information.
qrs.EntityType = "account";
qrs.Error = NO_SF_ERROR;
qrs.ErrorMessage = null
qrs.Error = NO_SF_ERROR;
qrs.ErrorMessage = null
qrs.Size = 1;
qrs.Tag = null;
Has any method that I could get the query result?
I'm using vs .net 2005 to program.
Message Edited by werewolf on 05-22-2008 06:39 PM
qrs = g_sfApi.Query("Select Id from account", false);
{
}
else
{
foreach (SForceOfficeToolkitLib3.SObject3 qr in qrs)
{
m_fdAccount = null;
m_fdAccount = qr.Item("Id").Value.ToString();
m_fdAccount += "\n";
m_fdAllAccount += m_fdAccount;
}
System.Windows.Forms.MessageBox.Show((m_fdAllAccount);
}
Dim qr As QueryResultSet3
Dim v As Variant
Dim s As SObject3
Set qr = g_sfApi.Query("select * from task", False)
For Each v In qr
'loop through the results
'cast to a sobject3 to see more helpful debug info
Set s = v
'use the object
s("Name") = "Query"
's.Update
Next v
End Function
Professional Edition does not included API access. If you build a certified partner application, you can get a token that enabled API access for PE accounts for your application. None of this requires you to use the office toolkit.