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
RajnisfRajnisf 

Json response with space in Apex..

Json respone is :

"meta_idx": {
"Account Manager": "Test "
}

In salesforce thru calloutm want to take the value of "Account Manager" and map to custom object field...

{
                    ch.Account_Manager__c = m.Account Manager;
                }

Its not taking Space in between "Account Manager"..
Thanks in advance...
 
BenazirBenazir
Hi Rajnisf,

Please try the below code.
ch.Account_Manager__c = m['Account Manager'];

Thanks,
Benazir
RajnisfRajnisf
Thanks Benazir,
it gives error :  Expression must be a list type:
BenazirBenazir
can you please send your entire code?

Thanks,
Benazir