• jessmin joe
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies
I have a simple vf page without any controller or extensions.
 
code link https://codeshare.io/vwQWmL
Hello, I have a snippet of JSON that looks like this:
"dates": [
{
"name": "Service",
"qualifier": "472",
"date": "2020-09-29"
},
{
"name": "Plan Begin",
"qualifier": "346",
"date": "2020-09-01"
},
{
"name": "Issue",
"qualifier": "102",
"date": "2020-06-01"
}
],

I need to be able to get the values from each "object" individually. 
I am getting the list like this:

Map<String, Object> wholeResponse = (Map<String, Object>) JSON.deserializeUntyped(response2.getBody());
Map<String, Object> result = (Map<String, Object>) wholeResponse.get('result');
List<Object> lstdates = (List<Object>) result.get('dates');

But after that I am getting stuck. How would I be able to get the name, qualifier, and date from each object contained in this list? (This may be a basic question, but I am a newbie to json parsing:))
 
Hi,

For some or our client sandboxes when I am making Identity URL request to get url for SOAP I get a 404 Bad_Id error.
Access token works very well for REST API calls but when I need to get URL for SOAP API info request fails.
Same code works well for 99% of other clients. ORG and instance IDs  in path part of "ID URL" are correct too.

Thank you.
I doubt this is possible but I want to check.  I created an Invocablemethod and I have several Invocablevariables that are required.  I would like one Invocablevariable to be a picklist.  I tried enum but it didn't like it.  I currently define it as a String but it very tedious to make sure I type the proper value correctly.  DayType needs to be a picklist.
 
global class CreateTaskRequest {
    @InvocableVariable(required=true)
    global Id OppId;
  
    @InvocableVariable(required=true)
    global String Subject; 
    
    @InvocableVariable(required=true)
    global Id OwnerId;

    @InvocableVariable(required=true)
    global Date ReferenceDate; 
    
    @InvocableVariable(required=true)
    global Integer Days; 
    
    @InvocableVariable(required=true)
    global String DayType; 
}