• Diwakar Rajput 1
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Below is the part of my class. these are the wrapper class.
 public class ASMWrapper{
        @auraEnabled public User userObj{get;set;}
        @auraEnabled public String RoleName{get;set;}
        @auraEnabled lookUpWrapper selItem{get;set;}
    }
    public class lookUpWrapper{
        public String objName {get;set;}
        public String text{get;set;}
        public String val{get;set;}
        public Object ObjRecord{get;set;}
    }

Below ti the method which convert the json to string.

 public class ASMWrapper{
        @auraEnabled public User userObj{get;set;}
        @auraEnabled public String RoleName{get;set;}
        @auraEnabled lookUpWrapper selItem{get;set;}
    }
    public class lookUpWrapper{
        public String objName {get;set;}
        public String text{get;set;}
        public String val{get;set;}
        public Object ObjRecord{get;set;}
    }

this method is getting the JSON. please help me parse it.

public static void  newAccRecord(String asmHierarchy){
        system.debug('string JSON '+asmHierarchy);
        System.debug('jason der' + JSON.deserializeUntyped(asmHierarchy));
        /*if(asmHierarchy.size() >0){
            for(object obj : asmHierarchy){
                system.debug('obj '+obj);
                //ASMWrapper asm = (ASMWrapper)obj;
                //system.debug('User ==> '+asm.asmObj.userObj);
            }
            System.debug(' ASMWrapper DONE @@@ '+asmHierarchy);
            System.debug('size of role '+asmHierarchy.size());
        }*/
       
    }
How can we implement below requirment.
if Hold__c == true then send bi weekly email alert untill Hold__c = false