java - Get list of custom object in RemedyForce -
i have custom object in remedyforce abc__c
, list of it.
tried code:
searchresult sr = con.search( "find {00008137} in abc__c fields returning abc__c(id, name)");
but returns
[invalidsobjectfault [apiqueryfault [apifault exceptioncode='invalid_type' exceptionmessage='sobject type 'abc__c' not supported. if attempting use custom object, sure append '__c' after entity name. please reference wsdl or describe call appropriate names.'
tried code , returns:
string sql = "select id, name abc__c limit 10"; queryresult result = con.query(sql);
[invalidsobjectfault [apiqueryfault [apifault exceptioncode='invalid_type' exceptionmessage='sobject type 'abc__c' not supported.'] row='-1' column='-1' ]]
anyone can advise how list of custom object?
your code looks good. exception can happen if user making request doesn't have permission specified object.
Comments
Post a Comment