• bilal malik
  • NEWBIE
  • 40 Points
  • Member since 2016

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 16
    Replies
Hi all, i am using oauth authentication in my chrome extension. When i click my extension button "Login using salesforce", it redirects me to salesforce authentication screen in which i select my salesforce account.After authentication, i want to redirect it to "Html Page" which exists in chrome extension files.

By using salesforce oauth flow, it takes "Redirect Uri", so what should be the redirect uri so that it can redirect me to chrome extension html page?
 
Q1)The Review_c object have a lookup relationship to the job_Application_c object. The job_Application_c object has a master detail relationship up to the position_c object. The relationship is based on the auto populated defaults?

What is the recommended way to display field data from the related Review _C records a Visualforce page for a single Position_c record?

Select one of the following:

A. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data.
B. Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data. (Ans)
C. Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject.
D. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.


Q2)An sObject named Application _c has a lookup relationship to another sObject named Position_c. Both Application _c and Position c have a picklist field named Status_c. When the Status c field on Position __c is updated, the Status_c field on Application _c needs to be populated automatically with the same value, and execute a workflow rule on Application c. Flow can a developer accomplish this?

      A. By changing Application c.Status_c into a roll-up summary field.
      B. By changing Application c.Status_c into a formula field.  (ANS) [Why ? it should be C]
      C. By using an Apex trigger with a DML operation.
       D. By configuring a cross-object field update with a workflow.

Q3)when would a developer use a custom controller instead of a controller extension?[Why it is not option B]

1)When a VF Page needs to replace the functionality of a standard controller.(Ans)
2)When a VF Page doesn't reference a single primary object.
3)When a VF Page shouldn't enforce permissions or field level security.(Ans)
4)When a VF Page needs to add new actions to a standard controller.

Q4)Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct? 

    A. The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object
    B. The Lookup Relationship cannot be marked as required on the page layout for the Custom Object.
    C. The Custom Object will be deleted when the referenced Standard Object is deleted.(Ans)
    D.  The Custom Object inherits security from the referenced Standard Object.

Q5)Valid statement about Apex classes:

A.  a exception classes must end with the world exception
B.  a class can have multiple levels of inner classes
C.  the default modifier for a class is private
Hi, i am using an email template to embed attachment images in it and sending it to gmail client, but in gmail images are not showing , its give proxy issue on clicking it.
Can anyone help me ?

Thanks
I have a default attachment , i want to set it in visual force page using apex:inputfile tag.

 <apex:inputFile value="{!MyFAttachment.bl}" filename="{!MyFAttachment.filename}" id="file"/>

but it shows nothing on vf page.
Thanks!!
I am creating a visual force page in eclipse using sandbox credentials, but it does not allow me to create vf page or apex class. it gives following error "Visual force page is not enabled in this project. Check Permissions and connection settings" 

Thanks
I created a developer sandbox , after creation its showing Pending Status and in Queue.
its been 2 hours, its still in queue.
NEED HELP!!!!!
Thanks!!!
Hi,
i want to view public calender in salesforce lightning? how is it possible?
For this, i also created a visual force page in salesforce classis for public calender, its showing in classis but this visual page gives error in Salesforce Lightning.

Thanks
hi,
I have 1 salesforce license for only 1 user . i want to create multiple calenders for this user. how is it possible ?
Hi,

Is it possible to limit the visibility of the button based on Roles ?

Thanks.
  • May 26, 2017
  • Like
  • 0
I want to make user mandatorily click on a particular button which is displayed on VF page. I want to throw an alert message if the user leaves the page or closes the tab or browser or URl is changed?
Hi all,

Is it possible to customize the Lead Find Duplicates functionality ?

I have a new requirement from my client to add a custom page block and show some results from a REST API on the same landing page. I didn't see any salesforce out of the box feature for this.

As i am a beginner to this technology... please any one suggest some ideas to customize this...

Thanks in advance.
ArunKumar K
Q1)The Review_c object have a lookup relationship to the job_Application_c object. The job_Application_c object has a master detail relationship up to the position_c object. The relationship is based on the auto populated defaults?

What is the recommended way to display field data from the related Review _C records a Visualforce page for a single Position_c record?

Select one of the following:

A. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data.
B. Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data. (Ans)
C. Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject.
D. Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Review_c object to display Review_c data.


Q2)An sObject named Application _c has a lookup relationship to another sObject named Position_c. Both Application _c and Position c have a picklist field named Status_c. When the Status c field on Position __c is updated, the Status_c field on Application _c needs to be populated automatically with the same value, and execute a workflow rule on Application c. Flow can a developer accomplish this?

      A. By changing Application c.Status_c into a roll-up summary field.
      B. By changing Application c.Status_c into a formula field.  (ANS) [Why ? it should be C]
      C. By using an Apex trigger with a DML operation.
       D. By configuring a cross-object field update with a workflow.

Q3)when would a developer use a custom controller instead of a controller extension?[Why it is not option B]

1)When a VF Page needs to replace the functionality of a standard controller.(Ans)
2)When a VF Page doesn't reference a single primary object.
3)When a VF Page shouldn't enforce permissions or field level security.(Ans)
4)When a VF Page needs to add new actions to a standard controller.

Q4)Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct? 

    A. The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object
    B. The Lookup Relationship cannot be marked as required on the page layout for the Custom Object.
    C. The Custom Object will be deleted when the referenced Standard Object is deleted.(Ans)
    D.  The Custom Object inherits security from the referenced Standard Object.

Q5)Valid statement about Apex classes:

A.  a exception classes must end with the world exception
B.  a class can have multiple levels of inner classes
C.  the default modifier for a class is private

I am a little bit confused about these questions

1. Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers
According this article https://help.salesforce.com/articleView?id=process_which_tool.htm&language=en_US&type=0
A. Create activities at multiple intervals (Workflow can't create activities, only tasks)
B. Submit a contract for approval (Workflow can't create submit for approval. Only Visual Workflow) 
C. Send an outbound message without Apex code + (Only this answer is correct as for me)
D. Copy an account address to its contacts  (Update fields: The record or its parent. In our situation contact is child, and we can't update contacts' fields) 

2. A developer is creating an application to track engines and their parts. An individual part can be used in different types of engines. What data model should be used to track the data and to prevent orphan records?
 
A. Create a junction object to relate many engines to many parts through a lookup relationship
B. Create a master-detail relationship to represent the one-to-many model of engines to parts.
C. Create a lookup relationship to represent how each part relates to the parent engine object.
D. Create a junction object to relate many engines to many parts through a master-detail relationship

3. 
A developer needs to provide a Visualforce page that lets users enter Product-specific details during a Sales cycle. How can this be accomplished? Choose 2 answers  
A. Download and Unmanaged Package from the AppExchange that provides a Custom Visualforce
B. Copy the standard page and then make a new Visualforce page for product data entry
C. Create a new Visualforce page and an Apex controller to provide Product data entry
D. Download a Managed Package from the AppExchange that provides a custom Visualforce

4. The Review__c object has a lookup relationship up to the Job_Application__c object. The Job_Application__c object has a master-detail relationship up the Position__c object. The relationship field names are based on the auto-populated defaults. What is the recommended way to display field data from the related Review__c records on a Visualforce page for a single Position__c record? 
A. Utilize the Standard Controller for position__c and a Controller Extension to query for Review__c data. 
B. Utilize the Standard Controller for Position__c and cross-object Formula fields on the job_Application__c object to display Review__c data.
C. Utilize the Standard Controller for Position__c and cross-object Formula fields on the Review__c object to display Review__c data.
D. Utilize the Standard Controller for position__c and expression syntax in the page to display related Review__c data through the job_Application__c object

5. A candidate may apply to multiple jobs at the company Universal Containers by submtting a single application per job posting. Once an application is submitted for a job posting, that application cannot be modified to be resubmitted to a different job posting. What can the administrator do to associate an application with each job posting in the schema for the organization? 
A. Create a lookup relationship in the Applications custom object to the Job Postings custom object
B. Create a master-detail relationship in the Application custom object to the Job Postings custom object.
C. Create a lookup relationship on both objects to a junction object called Job Posting Applications.
D. Create a master-detail relationship in the Job Postings custom object to the Applications custom object.

6. An sObject named Application__c has a lookup relationship to another sObject named Position__c. Both Application__c and Position__c have a picklist field named Status__c. When the Status__c field on Position__c is updated, the Status__c field on Application__c needs to be populated automatically with the same value, and execute a workflow rule on Application__c. How can a developer accomplish this?
A. By changing Application__c.Status__c into a roll-up summary field
B. By using an Apex trigger with a DML operation
C. By changing Application__c.Status__c into a formula field
D. By Configuring a cross-object field update with a workflow

7. On a visualforce page with a custom controller, how should a developer retrieve a record by using and ID that is passed on the URL?
 A. Create a new PageReference object with the id
B. Use the <apex:detail> tag in the Visualforce page
C. Use the $Action.View method in the Visualforce page
D. Use the contructor method for the controller.

8. 
The Sales Management team hires a new intern. The intern is not allowed to view Opportunities, but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record. What would a developer do to meet this requirement? 
A. Create a Workflow Rule on the Opportunity object that updates a field on the parent Account.
B. Create a formula field on the Account object that performs a MAX on the Opportunity Close Date field.
C. Create a trigger on the Account object that queries the Close Date of the most recent Opportunities.
D. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field.

I want to know not only answers but clearly explaination, why this answer is correct. Please, help. Thanks in advance.

Hi Everyone,

I have 2 Custom fields as count__c and inte__c in Account Object. I want query for below credentials....

1) select count__c + inte__c from account;

2) select sum(count__c ) + sum(inte__c) from account;


How to achieve those things

Thanks & Best Regards,
Vignesh.B
Hi Dev's,

SOQL query for fetching records from Account not related to Contact object?(Only account records, which are not related to contact)?

Regards
Lakshmi

Thanks in advance..
 
I know that there can be 200 maximum records at a time in trigger context. And if we are processing more than 200 records (either through data loader or through DML operation) trigger breaks those records in to chunk of 200 records and then processes it. What I want to know, if this whole processing of more than 200 records in trigger is counted as SINGLE TRANSACTION or more than one TRANSACTION?
I want to replace integers in "XYZ__3 AND XYZ__4" after size = 3 and expecting result "XYZ__4 AND XYZ__5"
 
String expression = 'XYZ__3 AND XYZ__4';
Integer size = 3;
Pattern p = Pattern.compile('(\\d{1,2})');
Matcher m = p.matcher(expression);

String next = '';
while (m.find()) {
   next = String.valueOf(size + 1);
   expression = expression.replaceAll(m.group(1), next);
   size++;
}

system.debug(expression);
But, I am getting "XYZ__5 AND XYZ__5". How can I achieve this using pattern and Matcher
 
Hello,

I am creating a package with test method and install that package on another account then it will give "Cannot call test methods in non-test context".
How can I resolve it? Without test method I am not able to create package.

Thanks.