You need to sign in to do that
Don't have an account?
Raksha Narayan
Convert object values into map<string,string> from map<string,object>
I have my list<Sobject> and i have converted it to map<string,object> using getPopulatedFieldsAsMap() and the output from the debug logs is as follows:mymap:
{Account=Account:{Name=Test Account, Parent__c=false, Region__c='India', Zone__c=A-CH, Id=0010c00001teI2IQQQ}, AccountId=0010c00001teI2IZXE, Id=01M2f000001CZkaAQW}.
Is it possible to convert mymap.value to another map so that Name is key and Test Account is value, Parent__c is key and false is its value and so on?
{Account=Account:{Name=Test Account, Parent__c=false, Region__c='India', Zone__c=A-CH, Id=0010c00001teI2IQQQ}, AccountId=0010c00001teI2IZXE, Id=01M2f000001CZkaAQW}.
Is it possible to convert mymap.value to another map so that Name is key and Test Account is value, Parent__c is key and false is its value and so on?
https://salesforce.stackexchange.com/questions/116403/how-to-convert-mapstring-object-into-mapstring-string
https://developer.salesforce.com/forums/?id=906F0000000AzVnIAK
I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.
Thanks.