• Saikat Mukherjee 9
  • NEWBIE
  • 4 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
We have created instance of SforceServiceBindingStub object called stub. The we are storing the result of login inside the stub using      stub = LoginUtil.getStub(loginResult).
Then we have written one query like:
Stub.query(select Id, Name, Body from ApexTrigger where Name IN (‘className’));
 
 
Problem:
-------------
When the login end point is  https://login.salesforce.com/services/Soap/u/30.0, https://login.salesforce.com/services/Soap/u/31.0 , https://login.salesforce.com/services/Soap/u/32.0, https://login.salesforce.com/services/Soap/u/33.0, then the corresponding testclasses are getting generated with proper api version which we are passing in login end point parameter. Since the salesforce now allows us to use 37.0 version, I changed the end point as  https://login.salesforce.com/services/Soap/u/37.0. then am getting the following error as:
Invalid element in com.sforce.soap.tooling.SObject – Id.  
But when I test the query in the workbench with API version 37.0, it is working without any issue.
 
I have checked the tooling wsdl and the generated stub class. The Id property is present everywhere for SObject type.
 
Can anybody help on this?
 
 
Hi,
Can you please help me out by answering these questions.
A company wants a recruiting app that models candidates and interviews; displays the total number of interviews on each candidate record; and defines security on interview records that is independent from the security on candidate records.What would a developer do to accomplish this task? 
Choose 2 answers.
A) Create a lookup relationship between the Candidate and Interview objects.
B) Create a trigger on the Interview object that updates a field on the Candidate object
C) Create a roll-up summary field on the Candidate object that counts Interview records.
D) Create a master-detail relationship between the Candidate and Interview objects.
 
Hoping the Ans as :A,B

2) In the Lightning Component framework, which resource can be used to fire events?ans: A,B
Choose 2 answers
Third-party Javascript code.
Javascript controller actions.
Visualforce controller actions.
Third-party web service code.

Hoping as Ans: A,B

3) What is a capability of formula fields? 
 
   Choose 3 answer 
 
A) Generate a link using the HIPERLINK function to a specific record in a legacy system
B) Determine if a datetime field has passed using the NOW function
C) Determine which of three different images to display using IF function
D) Return and display a field value from another object using the VLOOKUP function
E) Display the previous value for a field using the PRIORVALUE funtion

I think Ans: B,C,D

4)A developer wants to display all the available record types for a case Object. The developer also wants to display the picklist values for the Case.Status field. The Case Object and the Case.Status field are on a Custom Visualforce page.
Which action can the developer perform to get the record types and picklist values in the controller?
Choose 2 answers. 
Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues()
Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos()
Use SOQL to query Case records in the org to get all values for the Status picklist field
Use SOQL to query Case records in the org to get all the RecordType values available for Case 

I think Ans:A,B

5) A developer writes a SOQL query to find child records for a specific parent. Ans:5



 



How many levels can be returned in a single query?

A. 1
B. 7
C. 5
D. 3
 
Confused between option A and C.Please clarify these questions.

Thanks in advance for your help.