• Prashant sharma 218
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi

I have created a flow and it should work only for particular record type in case. So i have given like below screenshot. But its not working only for that recordtype(working for all recordtype in case). can anyone tell what mistake i did here User-added image

 
Hi all,

I'm trying to convert an incoming response from api callout which comes in the form of a json string.

Response: 

[{"OriginalAccountNumber":"559643597","OriginalSortCode":"9043253","IsCorrect":true,"IsDirectDebitCapable":true,"StatusInformation":"OK","CorrectedSortCode":"9043253","CorrectedAccountNumber":"559643597","IBAN":"GB27NWBK9043253559643597","Bank":"TESTNATIONALBANK PLC","BankBIC":"LDBRTGR56","Branch":"Lincoln Smiths Bank","BranchBIC":"65Y","ContactAddressLine1":"Smiths Road Customer Service Centre","ContactAddressLine2":"Marina, Waterside Court","ContactPostTown":"York","ContactPostcode":"Y01 6FA","ContactPhone":"0870 2403355","ContactFax":""}]

so far I've tried 
            Map<String, Object> Results = (Map<String, Object>) JSON.deserializeUntyped(response);

But I get an error of illegal conversion from string to map. 

I've tried a few other methods including JSON.createParser but so far nothings has worked for me to access the values in an easy and efficient manner.

Can someone recommend a solution please?