• Yashh
  • NEWBIE
  • 115 Points
  • Member since 2021
  • salesforce developer


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 27
    Replies
User-added imagewant help on formula field
Here is Scenario Formual field data type will be Text as I given
1> if Record type is Personal Loans And parent ID is Blank and Product Currency(PicklistField) is USD so in the formula field I want this value get populated(03-Credit Karma Offers ,Inc. ).
 2> if Record type is Personal Loans  And parent ID is Blank and Product Currency PicklistField is CAD so in the formula field I want this value get populated(01-Credit KarmaLLC  ). 
 2> if Record type is Personal Loans  And parent ID is Blank and Product Currency PicklistField is GBP so in the formula field I want this value get populated(72 -Credit Karma UK Ltd ). 
here is be help me on this #Trailhead #TrailblazerCommunity #AwesomeAdmins #Salesforce Admin
I am getting a Full name as one of Record Salutation in the contact but In salutation, I have not put this name as on the picklist
it will automatically generate so how can I solve this problem? User-added image
Hello Friends
In this picture here is the Merge button in Account-Related List in classic
But I want this button on Lightning on the basis of Account-Related
contact how can I do this I have tried the edit the page but it's not showing can you please
​​​​​​​help me to solve these Functionalities.
User-added image
1>So the scenario is that when I created new product name As Chase Auto loans and saved and created another has the same name so  its give an error that name already exists.
here is my code based on 1st point
trigger DuplicateProductName on Product2 (before insert,before update) {
       List<Product2> accList=new List<Product2>([select Name from Product2]);
    map<String,Product2> accmap=new map<String,Product2>();
    for(Product2 acc:accList){
        accmap.put(acc.Name,acc);
    }
 
    if(Trigger.isbefore&&(Trigger.isinsert|| Trigger.isupdate)){
        for(Product2 acc:Trigger.new){
            if(accmap.get(acc.Name)!=null){
                acc.adderror('This Product name already exists');
            }
        }
    }

}

2>but now i want to modify this code that if I create the same name but that duplicate name  record checkbox is disabled then your record will be  saved but the checkbox is active you cant save.User-added image
The Scenerio is i want populate record there is  User account manager data so i want populate into   Account manager  .And user account manager is lookup and account manager is lookup field.
And when i edit the account manager so it will Change to user account manager.User-added image
i want to create visualforce page to show all accounts name and their related contacts name  through tabular format
Error: Compile Error: Found punctuation symbol or operator '%' that isn't valid in Apex. at line 6 column 87

Apex Code
public class searchBox {
    public list <Account> acc {get;set;}
    public String searchKey {get;set;}
    public searchBox( ) {} 
    public void search(){
        string searchquery='select Name,id from account where name like \ +searchKey+'%\'';
        acc= Database.query(searchquery);
    }
}


This My VF CODE
<apex:page Controller="searchBox">
    <apex:form >
        <apex:inputText value="{!searchKey}" label="Input"/><br/>
        <apex:commandButton value="Enter" action="{!search}"/>
        <apex:pageBlock title="Searched Accounts are:-">
            <apex:pageBlockTable value="{!acc}" var="a">
                <apex:column value="{!a.name}"/>
                <apex:column value="{!a.id}"/>
            </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>
</apex:page>
I am creating a process builder that I want to have updated a date/time opendate_c field with the time when any of the leads fields in a section are modified. except for leadstatus_c (its a picklist)
I am trying to define the action so that the new Date/Time field is updated to be when the process fires.I want to work on edited and created. i create in the workflow but it's not working. now I want to do that in process builder so please help me.
I want to help with the process builder 
here is scenario
if the product name is changed then the status field (picklist) should show  pending
and active (checkbox )should be false.
 
I have created one custom field in the product as an Account through lookup so what I want that if anyone clicks on that Account and puts any name. its shows under that Name. So I have created one formula field where his name I want to show  Through FORMULA 

Hi,

 

  I want to display the account and related contacts in the same visual force page. Actually i am achieved this like,

i am displayed the account names in first page block and am kept the command link for that account names if we click on that command link that will displayed the contacts related to that particular account in another pageblock. But, Now i want to display the account name first and all related contacts line by line. like that  i want to displat the contacts for all accounts. please any one help me how to solve this...

 

 

example

Maple Lawn Office III
8161 Maple Lawn Blvd
Fulton, MD 20759

Contact: Lydia Chandlee
G & R Management
840 First Street, NE
Washington, DC 20002

Phone: 301-807-0271
Fax: 202-898-0053
Email: 

Contract: No
Inspection Date: 4/6/2010
Inspection Type: Annual
5 Year Test: 2012
Reg/Serial #: HO1863
Service Company: Kone
Equipment Type: Passenger Hydraulic
Annual Price (per unit): $180
Semi-Annual Prince (per unit): $80

Maple Lawn Office III
8161 Maple Lawn Blvd
Fulton, MD 20759

Contact: Lydia Chandlee
G & R Management
840 First Street, NE
Washington, DC 20002

Phone: 301-807-0271
Fax: 202-898-0053
Email: 

Contract: Yes
Inspection Date: 4/6/2010
Inspection Type: Annual
5 Year Test: 2012
Reg/Serial #: HO1863
Service Company: Kone
Equipment Type: Passenger Hydraulic
Annual Price (per unit): $180
Semi-Annual Prince (per unit): $80

 

 

 

thanks,

yamini