• NipuW
  • NEWBIE
  • 35 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 6
    Replies
Can someone tell me where to find the correct breakdown of the PD II exam component marks. Following two links are giving two different component breakdown. 
 
https://trailhead.salesforce.com/en/users/strailhead/trailmixes/prepare-for-your-salesforce-platform-developer-ii-credential
 
https://trailhead.salesforce.com/help?article=Salesforce-Certified-Platform-Developer-II-Exam-Guide
  • July 23, 2020
  • Like
  • 0
Can someone explain me the difference inbetween App Manager and Lighting App builder. 

User-added image
  • May 15, 2020
  • Like
  • 0
What happen to a paused flow resumed after a platform event? Will the flow ends or is it go back to pause state?
  • May 04, 2020
  • Like
  • 0
It is vulnerable to put merge filed inside a VF page like this without encoding,

{!sampleMergeField5}

or do we have to put encong like below?

{!HTMLENCODE(sampleMergeField5)}
 
  • May 02, 2020
  • Like
  • 0
We can see the error messages once we add the <apex:pageMessages/> tag in to the page. This shows error messages at component level. From where it takes these individual messages? Is it taking it from the field configurations?
  • May 01, 2020
  • Like
  • 0
In the following code..

cases is a list. Prodcut__C is having a lookup relationship with cases. One case can have many products. When i access the related list of products like case.Product__c; what exactly i get? is it just the list of related product list ids or is it the related product list objects? if it is an object list of products then does those product objects contain all the fields with values or only the id field? Please clarify.

for(Case case: cases){
            Case newCase = new Case();            
            newCase.Product__c = case.Product__c;
            newCase.AccountId = case.AccountId;
            .......
}
  • April 30, 2020
  • Like
  • 0
In SOQL when you do a select on Account and contact it returns a single list with accounts and contacts both. But with SOSL it rerutns nested list. Why?

List<Account> acctsWithContacts = [SELECT Name, (SELECT FirstName,LastName FROM Contacts)
        FROM Account WHERE Name = 'SFDC Computing'];

List<List<SObject>> searchList = [FIND 'SFDC' IN ALL FIELDS 
           RETURNING Account(Name), Contact(FirstName,LastName)];


 
  • April 30, 2020
  • Like
  • 0
What happen to a paused flow resumed after a platform event? Will the flow ends or is it go back to pause state?
  • May 04, 2020
  • Like
  • 0
We can see the error messages once we add the <apex:pageMessages/> tag in to the page. This shows error messages at component level. From where it takes these individual messages? Is it taking it from the field configurations?
  • May 01, 2020
  • Like
  • 0
In SOQL when you do a select on Account and contact it returns a single list with accounts and contacts both. But with SOSL it rerutns nested list. Why?

List<Account> acctsWithContacts = [SELECT Name, (SELECT FirstName,LastName FROM Contacts)
        FROM Account WHERE Name = 'SFDC Computing'];

List<List<SObject>> searchList = [FIND 'SFDC' IN ALL FIELDS 
           RETURNING Account(Name), Contact(FirstName,LastName)];


 
  • April 30, 2020
  • Like
  • 0
Hello,

I am trying to solve the challange of the HTTP and Basic Callout module of Salesforce trailhead and I am having some queries in which you could point to the right direction:

1- The challange asked us to call this URL https://th-apex-http-callout.herokuapp.com/animals/:id in method getAnimalNameById... should that URL be in this form instead of the above https://th-apex-http-callout.herokuapp.com/animals?id ? Where id is a parameter in the URL.

2- When I tried to check the solution of the challange, Salesforce generated that error for me
"Challenge Not yet complete... here's what's wrong: 
Executing the 'getAnimalNameById' method on 'AnimalLocator' failed. Make sure the method exists with the name 'getAnimalNameById', is public and static, accepts an Integer and returns a String."
despite that my class implementation has this method declared as public static String as below in the code snippet:
 
public class AnimalLocator {
	
	public static String getAnimalNameById(Integer id) {
		
		Http http = new Http();
		HttpRequest request = new HttpRequest();
		request.setEndpoint('https://th-apex-http-callout.herokuapp.com/animals?id');
		request.setMethod('GET');
		
		HttpResponse response = http.send(request);
		List<Object> animals = NULL;
		String returnValue = NULL;
		
		// if the request was successful, then parse the JSON response
		if (response.getStatusCode() == 200) {
			Map<String, Object> result = (Map<String, Object>) JSON.deserializeUntyped(response.getBody());
			animals = (List<Object>) result.get('animals');
			System.debug(animals);
		}
		
		if (animals.size() > 0 && animals != NULL && id < animals.size()) {
			returnValue = (String) animals.get(id);
		}
		
		return returnValue;
	} // end getAnimalNameById method
    
} // end AnimalLocator class

I would appreciate your help in this post.

Thank you,

Sinan

I'm trying to test an Apex method that calls an @future method.  I looks like my testing works up until the point where the @future test is called.  The test checks some results from the @future method and it looks like they haven't been executed yet.

 

Does @future execute asyncronously in test mode?

 

If so, how does one test @future methods?