I am not familiar with the data collections and want the solution. requirement is like:
I want to have object name in the where statement for query like:
select id , Name from Documents__c where ObjectId = '000002233377'
I am getting the object name from
ObjectName = objectInstance.getDescribe().getName();
now if the ObjectName is 'Account' the ObjectId in query should be 'Account__c', if the ObjectName is 'Contact' the ObjectId in query should be 'Contact__c'
So how can I Get the ObjectId directly the key name if I use map like:
Map<String, String> MyStrings = new Map<String, String>{
'Account' => 'Account_id__c',
'Contact' => 'Contact__c',
'Insurance Quote' => 'Insurance_Quote__c',
'Payment Transaction' => 'Transaction__c'};