Monday, 15 August 2011

salesforce - Calling .getDescribe() on result of SOQL query -



salesforce - Calling .getDescribe() on result of SOQL query -

if have soql query follows, returns 1 field.

string this_soql = 'select sum(revenue_target__c) revenuetarget dm_account_plan__c id=: the_id grouping id'; sobject r = database.query(this_soql);

can go on 'getdescribe' of field somehow? somthing perhaps? (which doesnt work)

system.debug(r.getdescribe().isaccessible());

any advice or suggestions appreciated!

found answer.

you can phone call describe method via sobject's sobjecttype this:

system.debug(r.getsobjecttype().getdescribe().isaccessible());

salesforce apex-code soql

No comments:

Post a Comment