Salesforce Questions:
1. What is the relationship between Account and Opportunity OR Account and Contact?
Answer: Account has lookup relation relationship with Opportunity and same as Account and Contact. But if we delete Accout then Contact as well Opportunity both related records gets deleted. So ,we can say that it is Master Detail relation between Account and Contact OR Account and Opportunity.
2. Can we make Account and Opportunity/Contact many to many relationship?
Answer:A. Salesforce has already given stadard functionality of AccountRole/ContactRole/etc. which is noting but many to many relationship between Account and Contact/Opportunity.
B.If we need to create manually many to many relation then create juction object of between Account and Contact/Opportunity.
3. IF we have more than 50K records then how we can get those records into SOQL?
Asnwer: A. We can achive this by using Batch apex. Get thousands of records into start method of batch and process into by 200 chunks.
B. If we have visualforce page and we need to fetch more than 50K records then used @ReadOnly annotation. It will allows you fetch 100K records.
C. Dynamic SOQL with passing setId criteria.
D. Restrict to fetch more than 50K records and write SOQL below conditions:
a. Add not null
b. Indexing on respected fields
c. Id IN: setId
4. Can we enable partner portal using apex?
Answer: Yes, we have IsPartner field on Contact object. For enabling contact as a partner the we need to set IsPartner=true.
5. How implement intgretion with Informatica?
Answer: Either Consume or expose WSDL and integrate with Informatica. We need to set source and destination in Informatica.
1. What is the relationship between Account and Opportunity OR Account and Contact?
Answer: Account has lookup relation relationship with Opportunity and same as Account and Contact. But if we delete Accout then Contact as well Opportunity both related records gets deleted. So ,we can say that it is Master Detail relation between Account and Contact OR Account and Opportunity.
2. Can we make Account and Opportunity/Contact many to many relationship?
Answer:A. Salesforce has already given stadard functionality of AccountRole/ContactRole/etc. which is noting but many to many relationship between Account and Contact/Opportunity.
B.If we need to create manually many to many relation then create juction object of between Account and Contact/Opportunity.
3. IF we have more than 50K records then how we can get those records into SOQL?
Asnwer: A. We can achive this by using Batch apex. Get thousands of records into start method of batch and process into by 200 chunks.
B. If we have visualforce page and we need to fetch more than 50K records then used @ReadOnly annotation. It will allows you fetch 100K records.
C. Dynamic SOQL with passing setId criteria.
D. Restrict to fetch more than 50K records and write SOQL below conditions:
a. Add not null
b. Indexing on respected fields
c. Id IN: setId
4. Can we enable partner portal using apex?
Answer: Yes, we have IsPartner field on Contact object. For enabling contact as a partner the we need to set IsPartner=true.
5. How implement intgretion with Informatica?
Answer: Either Consume or expose WSDL and integrate with Informatica. We need to set source and destination in Informatica.
No comments:
Post a Comment