function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raksha NarayanRaksha 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?
AbhishekAbhishek (Salesforce Developers) 
Try te suggestion as mentioned in the below blog,

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.