• Alex Valavanis 10
  • NEWBIE
  • 65 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 18
    Questions
  • 15
    Replies
Hello,
I am looking for a solution to help our users to select reports from the report tab. I was thinking a kind of "search bar" on their homepage where they would type some words and the report names would appear for them to select and open(?) - Any other solutions please do share.

Thanks
Hello,

I created a custom Lightning Component as i wanted to implement a Client Side Search functionality.
However, when i click "Preview" in Developer Console to test it i receive a white blank page. (code is correct and i have also have myDomain deployed.

Any ideas?

User-added image
Hello,

I created a visual force page which the user has the ability to update the Account Owner (Lookup field) by clicking a custom button, however my aim is to minimize the number of clicks.

How is it possible to enable a pop up window where the user can tick a box is order to update the selected records? Could someone assist me?

My visualforce code is below and I am adding a sceenshot of what i would like to accomplish.

<apex:page standardController="Account" recordSetVar="accounts" tabStyle="Account" sidebar="false" lightningStylesheets="true">
<apex:form >
<apex:pageBlock title="Edit Accounts" mode="edit">
<apex:pageMessages />
<apex:pageblockButtons location="top">
<apex:commandButton value="Save" action="{!Save}" />
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:pageBlockTable value="{!selected}" var="A">
<apex:column headerValue="Name">
<apex:outputField value="{!A.name}"/>
</apex:column>
<apex:column headerValue="Owner">
<apex:inputField value="{!A.OwnerId}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>

User-added image
Hello,

I created a visual force page (and a custom button) which updates the account ownership from a list view. I would like to add inline editing to the below. Could you please assist me?

<apex:page standardController="Account" recordSetVar="accounts" tabStyle="Account" sidebar="false" lightningStylesheets="true">
    <apex:form >
        <apex:pageBlock title="Edit Accounts" mode="edit">
            <apex:pageMessages />
            <apex:pageblockButtons location="top">
                <apex:commandButton value="Save" action="{!Save}" />
                <apex:commandButton value="Cancel" action="{!cancel}"/>
            </apex:pageBlockButtons>
        <apex:pageBlockTable value="{!selected}" var="A">
            <apex:column headerValue="Name">
                <apex:outputField value="{!A.name}"/>
            </apex:column> 
            <apex:column headerValue="Owner">
                <apex:inputField value="{!A.OwnerId}"/>
            </apex:column>
       </apex:pageBlockTable>         
    </apex:pageBlock>
  </apex:form>
</apex:page>
Hello,

I recently created a visual force page on the Account object (And a custom button) which basically helps the user to update mass Accounts form a list view. Solution works great, however if I add a formula type field (text or number) to the page this cannot be updated by the user (screenshot provided). Is this because it is a formula field? Is there a way which we can solution this?

User-added image
Visual Force code shoud you require is:

<apex:page standardController="Account" recordSetVar="accounts" tabStyle="Account" sidebar="false" lightningStylesheets="true"> <apex:form > <apex:pageBlock title="Edit Accounts" mode="edit"> <apex:pageMessages /> <apex:pageblockButtons location="top"> <apex:commandButton value="Save" action="{!Save}" /> <apex:commandButton value="Cancel" action="{!cancel}"/> </apex:pageBlockButtons> <apex:pageBlockTable value="{!selected}" var="A"> <apex:column headerValue="Name"> <apex:outputField value="{!A.name}"/> </apex:column> <apex:column headerValue="Owner"> <apex:inputField value="{!A.OwnerId}"/> </apex:column> <apex:column headerValue="Record Type"> <apex:inputField value="{!A.RecordtypeId}"/> </apex:column> <apex:column headerValue="Client Type"> <apex:inputField value="{!A.Client_Type__c}"/> </apex:column> <apex:column headerValue="Country"> <apex:inputField value="{!A.Country__c}"/> </apex:column> <apex:column headerValue="Client Status"> <apex:inputField value="{!A.Client_Status__c}"/> </apex:column> <apex:column headerValue="First Funded"> <apex:inputField value="{!A.First_Funded__c}"/> </apex:column> <apex:column headerValue="Industry"> <apex:inputField value="{!A.Industry}"/> </apex:column> <apex:column headerValue="Last Contact"> <apex:inputField value="{!A.Last_Contact__c}"/> </apex:column> </apex:pageBlockTable> </apex:pageBlock> </apex:form> </apex:page>
Hello,

I am trying to find the name of user ID "00520000004FxxP" and can't find it (i created a user report and exported all users both active and inactive).

I received an Appex Application error saying the below and trying to investigate. Any ideas?

Apex script unhandled trigger exception by user 00520000004FxxP

Opportunity:execution of BeforeUpdate
caused by:System.QueryException:sObject type 'Product_c' is not supported.

Class.OpportunityTriggerHandler.populateFields: Line 59, Column 1
Trigger.Opportunity:line 17, column 1
Hello,
I need to create a custom controller since i my VF page shows only 20 records.

Can you please tell me how to do it?

The VF page created is the following.

<apex:page standardController="TaskTest__c" recordSetVar="records">  
    <apex:form >
        <apex:pageBlock title="Task Summary" mode="inlineEdit">      
            <apex:pageBlockTable value="{! records}" var="rec">   
                <apex:column headerValue="Name" >
                    <apex:outputField value="{! rec.Name}" />
                </apex:column>
                <apex:column headerValue="Discription " >
                    <apex:outputField value="{! rec.Discription__c}" />
                </apex:column>
                <apex:column headerValue="Estimated Date for Task" >
                    <apex:outputField value="{! rec.Estimated_Date_for_Task__c}" />
                </apex:column>
                <apex:column headerValue="Owner" >
                    <apex:outputField value="{! rec.Owner__c}" />
                </apex:column>
                <apex:column headerValue="Status " >
                    <apex:outputField value="{! rec.Status__c}" />
                </apex:column>
                <apex:column headerValue="User Story " >
                    <apex:outputField value="{! rec.User_Story__c}" />
                </apex:column>
                <apex:inlineEditSupport showOnEdit="saveButton, cancelButton" 
                                        hideOnEdit="editButton" event="ondblclick" 
                                        changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
            </apex:pageBlockTable>
            <apex:pageBlockButtons>
                <apex:commandButton action="{!quicksave}" id="saveButton" value="Save" rendered="true"/>
                <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel" rendered="true"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>
 
Hello,

I've been given the following Apex code as i want to mass edit on a custom object "Task".
As i am new to Apex code i don't know wjat the steps are and how to use it. Could you please guide me?

So far i included it in VisualForce pages. What is my next step?


<apex:page standardController="Task__c" recordSetVar="records">  
    <apex:form >
        <apex:pageBlock title="Task Summary" mode="inlineEdit">      
            <apex:pageBlockTable value="{! records}" var="rec">   
                <apex:column headerValue="Name" >
                    <apex:outputField value="{! rec.Name}" />
                </apex:column>
                <apex:column headerValue="Description " >
                    <apex:outputField value="{! rec.Description__c}" />
                </apex:column>
                <apex:column headerValue="Estimated Date for Task" >
                    <apex:outputField value="{! rec.Estimated_Date_for_Task__c}" />
                </apex:column>
                <apex:column headerValue="Owner" >
                    <apex:outputField value="{! rec.Owner__c}" />
                </apex:column>
                <apex:column headerValue="Status " >
                    <apex:outputField value="{! rec.Status__c}" />
                </apex:column>
                <apex:column headerValue="User Story " >
                    <apex:outputField value="{! rec.User_Story__c}" />
                </apex:column>
                <apex:inlineEditSupport showOnEdit="saveButton, cancelButton" 
                                        hideOnEdit="editButton" event="ondblclick" 
                                        changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
            </apex:pageBlockTable>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!quicksave}" id="saveButton" value="Save" rendered="true"/>
                <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel" rendered="true"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>
Hello, 
I want to create a way of mass uploadin fields on custom object "task". I installed mass edit/update but the instructions for custom objects are very old and they have not updated them. Anyway...
Is there a way of doing this (have no visual force / apex experience) - please see my screenshots

User-added image

User-added image
Hello, I'm doing the following exercise but Debug LOg tells me i have a problem.

Traihead says to do the following:

User-added image

I replace my email address and the following comes up:

User-added image
Hi,

I've created a flow (custom clone button) in which whenever the end user clicks on a closed won opportunity a new opportunity is created with stage prospecting. For testing reasons i created a formula which names the opportunity "renewal testing". How can i use a formula which will take the year of the closed date and put it in the opportunity name? (in other words rename the opportunity "Renewal 2017" .

User-added image
Hi, I'm trying to create an approval process in Trailehead but this message appears each time i want to check the challenge.
I dont understand which field needs to be required!

Alex

User-added image
Hello,

Would like to ask one question regarding sandboxes. I've been asked to give salesforce sandbox access to "development and QA environment" so ideally have 2 sandboxes (dev and QA) set up.

What are the steps? He is an external guy
Can anyone recommend any options that they have used regarding payroll and finance along with the view on HR systems? Apps, integration etc etc.
I'M RECEIVEING THIS ERROR,

ANY HELP?!

User-added image
Hi, 

Downloaded the "Account Dashboard" app for my guys which i personally like so far. 
Is there any way of customizing it and if yes how? (i have no experience in coding so far).
I can see that it takes the data from the "Closed Date" and "List Total" field but personally would prefer if it could take it from another "Start Date" and "Net Amount"
Link :https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000596wHEAQ 

It also looks as if the app can be downloaded and customized.

Link: https://github.com/ForceDotComLabs/account-dashboards  
Hello, i want to create the following calculations in my reports. Can you please tell me the formula?
I have summarized the "Subscription Start Year" by Year . Shall i include these formulas as fields so that i can then drag and drop in the reports?


User-added image

As you can see there are both numbers and values. These are the formulas i'm using in excel.

1. IF (Net amount=0,"New",0)
2. IF(Net amount>0, Net amount>0)), "Renewed",0)
3. IF (Net amount=0,"Not Renewed",0)
4. IF (Net amount 2015 =0,Net amount 2016 ,0)
5. IF((AND(Net amount>0,Net amount>0)),Net amount,0)

User-added image
Hi,

I am unable to finish the dashborad.
"The 'LEAD Trend by Source' dashboard component does not have the wedges set to 'Lead Source'."

Wedges are set to "Lead Source"

Any clues?
 
Hello,

I created a custom Lightning Component as i wanted to implement a Client Side Search functionality.
However, when i click "Preview" in Developer Console to test it i receive a white blank page. (code is correct and i have also have myDomain deployed.

Any ideas?

User-added image
Hello,

I am trying to find the name of user ID "00520000004FxxP" and can't find it (i created a user report and exported all users both active and inactive).

I received an Appex Application error saying the below and trying to investigate. Any ideas?

Apex script unhandled trigger exception by user 00520000004FxxP

Opportunity:execution of BeforeUpdate
caused by:System.QueryException:sObject type 'Product_c' is not supported.

Class.OpportunityTriggerHandler.populateFields: Line 59, Column 1
Trigger.Opportunity:line 17, column 1
Hi there,

I got following error on this Maintenance Cert Badge.

Challenge not yet complete... here's what's wrong:
Couldn’t find 'Find Contacts' with the correct information. Please double check the instructions.


Did you pass it?
What's wrong with my flow.
User-added image

Thanks in advance
Regards,
LinThaw
Hello,

I've been given the following Apex code as i want to mass edit on a custom object "Task".
As i am new to Apex code i don't know wjat the steps are and how to use it. Could you please guide me?

So far i included it in VisualForce pages. What is my next step?


<apex:page standardController="Task__c" recordSetVar="records">  
    <apex:form >
        <apex:pageBlock title="Task Summary" mode="inlineEdit">      
            <apex:pageBlockTable value="{! records}" var="rec">   
                <apex:column headerValue="Name" >
                    <apex:outputField value="{! rec.Name}" />
                </apex:column>
                <apex:column headerValue="Description " >
                    <apex:outputField value="{! rec.Description__c}" />
                </apex:column>
                <apex:column headerValue="Estimated Date for Task" >
                    <apex:outputField value="{! rec.Estimated_Date_for_Task__c}" />
                </apex:column>
                <apex:column headerValue="Owner" >
                    <apex:outputField value="{! rec.Owner__c}" />
                </apex:column>
                <apex:column headerValue="Status " >
                    <apex:outputField value="{! rec.Status__c}" />
                </apex:column>
                <apex:column headerValue="User Story " >
                    <apex:outputField value="{! rec.User_Story__c}" />
                </apex:column>
                <apex:inlineEditSupport showOnEdit="saveButton, cancelButton" 
                                        hideOnEdit="editButton" event="ondblclick" 
                                        changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
            </apex:pageBlockTable>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!quicksave}" id="saveButton" value="Save" rendered="true"/>
                <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel" rendered="true"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>
Hello, 
I want to create a way of mass uploadin fields on custom object "task". I installed mass edit/update but the instructions for custom objects are very old and they have not updated them. Anyway...
Is there a way of doing this (have no visual force / apex experience) - please see my screenshots

User-added image

User-added image
Hello, I'm doing the following exercise but Debug LOg tells me i have a problem.

Traihead says to do the following:

User-added image

I replace my email address and the following comes up:

User-added image
Hi,

I am unable to finish the dashborad.
"The 'LEAD Trend by Source' dashboard component does not have the wedges set to 'Lead Source'."

Wedges are set to "Lead Source"

Any clues?
 

Hey community,

I'm struggling with the logic of the task...

To complete this challenge, add a validation rule which will block the insertion of a contact if the contact is related to an account and has a mailing postal code (which has the API Name MailingPostalCode) different from the account's shipping postal code (which has the API Name ShippingPostalCode).Name the validation rule 'Contact must be in Account ZIP Code'.

A contact with a MailingPostalCode that has an account and does not match the associated Account ShippingPostalCode should return with a validation error and not be inserted.

The validation rule should ONLY apply to contact records with an associated account. Contact records with no associated parent account can be added with any MailingPostalCode value. (Hint: you can use the ISBLANK function for this check)

Here is what I got so far:

AND(
 NOT(ISBLANK(MailingPostalCode)),
 MailingPostalCode  <>  Account.ShippingPostalCode )

I THINK I know how to see if the contact mailing zip is not the same as the account shipping zip, and only if the is not blank.

The part I am stuck on is if the "Contact records with no associated parent account can be added with any MaiilingPostalCode value"...

I don't know what to do with that.

Also, I am now getting the error message when I recheck challenge:

Challenge not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Contact_must_be_in_Account_ZIP_Code: [] 


Double help, please.

Hello developer heroes!

I'm working through the Apex modules on Trailhead and can't seem to get past this one: https://developer.salesforce.com/en/trailhead/force_com_programmatic_beginner/apex_triggers/apex_triggers_bulk.

Hopefully this doesn't read like a 'please complete the course for me' kinda post, but I have written a trigger that I believe meets the criteria but it isn't passing the check, so I wanted to seek the guidance of the experts.

The challenge is to do this:

Create an Apex trigger for Opportunity that adds a task to any opportunity set to 'Closed Won'.

To complete this challenge, you need to add a trigger for Opportunity. The trigger will add a task to any opportunity inserted or updated with the stage of 'Closed Won'. The task's subject must be 'Follow Up Test Task'.The Apex trigger must be called 'ClosedOpportunityTrigger'

- With 'ClosedOpportunityTrigger' active, if an opportunity is inserted or updated with a stage of 'Closed Won', it will have a task created with the subject 'Follow Up Test Task'.
- To associate the task with the opportunity, fill the 'WhatId' field with the opportunity ID.
- This challenge specifically tests 200 records in one operation.


And here is the trigger I have come up with, which compiles OK and stands up to a manual (though admittedly unbulkified) test:
trigger ClosedOpportunityTrigger on Opportunity (after insert, after update) {

    List<Task> taskList = new List<Task>();
    
    for (Opportunity opp : [SELECT Id, StageName FROM Opportunity WHERE StageName = 'Closed Won' AND Id IN :Trigger.new]){
                    
            taskList.add(new Task(Subject = 'Follow Up Test Task',
                                  WhatId = opp.Id));
       
    }

    if(taskList.size()>0){
        
        insert taskList;
        
    }
    
}
I have tried replacing the SOQL with a straightforward 'for (Opportunity opp : Trigger.new)' and having the taskList.add inside an IF that checks for Closed Won - no luck. I also thought about checking to see if the stage was being changed to Closed Won, rather than the trigger firing on every edit, but I don't think this is what the module is asking for.

Where do you think I'm going wrong?

Huge thanks in advance!