• Priya Sharma 37
  • NEWBIE
  • 5 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi All,
Is there any alternative way to pass more than one parameters through visual flow to invocable method?
for(Case caseObj : [SELECT Id,
								   ContactId,
								   AccountId
						    FROM   Case]) {
			if(String.isNotBlank(caseObj.AccountId)){
		    	if(!mapId_Map.containsKey(caseObj.AccountId)) {
					mapId_Map.put(caseObj.AccountId,new Map<Id,List<Case>>());
					mapId_Map.get(caseObj.AccountId).put(caseObj.ContactId,new List<Case>());
					System.debug('Inside If');
		    	}
		    	mapId_Map.get(caseObj.AccountId).get(caseObj.ContactId).add(caseObj);
			}
		}
	System.debug('Map of Map------>>'+mapId_Map);

Getting null pointer exception while adding cases