• Swapnil Patne
  • NEWBIE
  • 20 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 23
    Replies
Hi,
Need some help identifying what am I doing wrong here?

With below code, I am trying to display account field  inside the two block sections side by side but for some reasons fields don't show up. surely I am missing something here but can't figure it out. 

Please can someone help?

Code:
<apex:page standardController="Account" sidebar="false">
  <apex:form >
    <apex:pageBlock title="{!account.name}" >
       
           <apex:pageBlockButtons >
              <apex:commandButton value="Edit" action="{!edit}"/>
              <apex:commandButton value="Save" action="{!save}"/>
           </apex:pageBlockButtons>
      
        <apex:pageBlockSection title="Details">
           <apex:pageBlockTable value="{!Account}" var="a" columns="4" >
           <apex:column headerValue="Quantitative" />
           
            <apex:outputField value="{! Account.ownerid }" />
            <apex:outputField value="{! Account.Phone }"/>
            <apex:outputField value="{! Account.Name }"/>
            <apex:outputField value="{! Account.Industry }"/>
            <apex:outputField value="{! Account.Account_flag__c }"/>
            <apex:outputField value="{! Account.Tier_Bucket__c}"/>
            <apex:outputField value="{! Account.NPS__c }"/>
            <apex:outputField value="{! Account.M_A_activity__c}"/>
           </apex:pageBlockTable>
           
           <apex:pageBlockTable value="{!Account}" var="b">
               <apex:column headerValue="Qualitative"/>
            <apex:outputField value="{! Account.TL_score__c }"/>
            <apex:outputField value="{! Account.Missed_calls__c }"/>
            <apex:outputField value="{! Account.Adverse_financial_warnings__c }"/>
            <apex:outputField value="{! Account.Change_of_CEO__c }"/>
            <apex:outputField value="{! Account.Change_of_exec_sponsor__c }"/>
            <apex:inlineEditSupport event="ondblClick" />
            </apex:pageBlockTable>

        </apex:pageBlockSection>
     </apex:pageBlock>        
 </apex:form> 

Many thanks,
Swapnil
I am trying to create a simple visualforce email template that shows information from opportunity and opportunity field history, but struggling with the history fields.. Please can someone help me with the code?

The email will say..

Please note the revenue on this opportunity was updated. Changed Amount from xxx (old value) to xxx (new value).

Account name:  {!Account.Name}

Opportunity type: {!Opportunity.Type}

Opportunity owner: {!Opportunity.OwnerFullName}

Opportunity Name: {!Opportunity.Name}

Closed Date: {!Opportunity.CloseDate}

Total Amount: {!Opportunity.Total_Amount__c}

To see the old value, please click here- {!Opportunity.Link}

Many thanks,
Swapnil
Hi,

I've create a custom lookup field on Opportunity called "Contact__c"  which is used to tag the main contact on that opportunity, however the opportunity doesn't show up under contact because that contact is not a primary under contact roles.

So, how can we make the contact slected in lookup field as a primary contact under opportunity Contact Roles and assign  a default role? 

I understand it requires an apex trigger, so wondering if any one can help me with this?

Much appreciated.

Thanks,
Swapnil
Hi,

I hope someone can help me with this-

Auto populate a custom lookup field "Account_Name__C " on opportunity product lineitem with an "Account Name" from the opportunity object or possibliy from Account Object itself, needs to happen when a user selects the opportunity product and saves the record.

Please can someone advise?

Thanks,
Swapnil
Hi,

Need help on writing a trigger to copy details of contact fields from a specific contact to Account fields.

Logic:

If contact Member Suspended = No and SCM Member Type = CWL then,

Copy below field details from that contact to Account fields:

Contact Fields                      Account Fields         Data Type
Member Suspended   >>>      Active                        Picklist
Member Since           >>>      Member Since            Date Field
Date Last Renewed    >>>      Date Last Renewed    Date Field
Expiry Date               >>>      Expiry Date                Date Field
License Term            >>>       License Term             Picklist

Please could someone help me?

Thanks,
Swapnil
Hi folks , 

Can any one help me on this requirement .

how can i Copy  address fields from corresponding account record to contact while saving.


Thanks in Advance .

Hi,

 

Please can someone show me how to create a trigger that will initiates an action to add or remove a contact into a specific campagin based on picklist field value on contact object. 

 

Picklist Field Name: Add/Remove from Monthly Mailing list

Values: Add, Remove

 

Campaign Name: SCM World Monthly Mailing List

 

Logic:

If picklist value selected = "Add" , then add contact to campagin "SCM World Monthly Mailing List"

If picklist value selected = "Remove" , then remove contact from campaign "SCM World Monthly Mailing List"  

 

Please ask questions if it needs further clarification. 

 

Thanks,

Swapnil

 

Hi,

 

I have a custom field on the opportunity object named 'contact__c'. This is a simple lookup field.

If populated I want a trigger that creates an Opportunity contact role for that same contact.

 

Any ideas?

 

I can update the contact__c field based on the primary contact role but I need this work the other way round.

 

Any ideas?

 

Thanks