• vijay Krishnaa 10
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 1
    Replies
Apex heap size too large: 13417754  
when trying to deserialize the response body in a batch from a callout
ContentMap = (Map<String,Object>)JSON.deserializeUntyped(res.getBody());
I want to send a JSON to third party in Salesforce but there is a if condition.
How can I send it ?
Apex code -
objWrap.advancePayment = objOpp.Advance_Value__c;
            objWrap.self = objOpp.Self__c ;
            objWrap.isPKS = isPKS;
I have to only send isPKS if the advance__c is equal to 0.

How to achieve this?
I want to send a JSON to third party in Salesforce but there is a if condition.
How can I send it ?
Apex code -
objWrap.advancePayment = objOpp.Advance_Value__c;
            objWrap.self = objOpp.Self__c ;
            objWrap.isPKS = isPKS;
I have to only send isPKS if the advance__c is equal to 0.

How to achieve this?