• Saoni Paitandi
  • NEWBIE
  • 20 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 8
    Replies
Hi,

Please give some ideas around it:
Autopopulating CC while sending email response by workflow,Process builder

Thanks,
Silpi
For Tech Support cases we have a few automated replies set up for the customer. These replies are coming from different places, i.e. Workflow/email alert , process builder, Entitlement Process/Milestones.
 
We want that these replies should also go to the list of email addresses in the CC field of the original email message that created the email to case or pick these CC email addresses from an existing text field which is currently storing these CC email addresses.
 
Please help us in identifying if there is a way to do this. My understanding is that It can be done by code for most cases. But the alerts coming from entitlement processes/milestones cannot leverage code.
 
 
I have a requirement like In a VF page Radiobutton:Yes & no is there ,on selecting Yes it should display contact related fields in same page.please help me!!
 
Suppose there are 2 Users U1 and U2  having same profile and there is a field in Account let's say f1 .F1 should be visibible to U1 but not U2.How can I acheive it.Please guide me!!
Hi All !!I have Written the following code to update Account custom field if Contact Status field is Finish,But I wanted to do if all the assosiated contact status finish then only it should be end.
Code is:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
trigger UpdateAccountStatus on Contact (after insert,after update) {
List<ID> actListID=new List<Id>();
for(Contact con:Trigger.new)
{
if(con.Status__c=='Finish'&& con.AccountID!=Null){
actListID.add(con.AccountID);
}
}
List<Account> acc=[Select Id,Name,Status__c from Account where Id=:actListID];
for(Account a:acc)
a.Status__c = 'End';

update acc;
}
Please help me in this: I have created a counter field in account and have written the code like this
trigger AccountUpdationCounter on Account (after update) {

for(Account acts:trigger.new){
if(Trigger.isUpdate){
acts.Counter__c=0;
acts.Counter__c=acts.Counter__c+1;
}
update acts;
}
}
Getting below error after updating from UI:Error:Apex trigger AccountUpdationCounter caused an unexpected exception, contact your administrator: AccountUpdationCounter: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.AccountUpdationCounter: line 4, column 1
I got the requirement for integration(Salesforce Org Integration with Third party app).What all things I need to lookafter for the Integration.
Hi,

Please give some ideas around it:
Autopopulating CC while sending email response by workflow,Process builder

Thanks,
Silpi
Hi All !!I have Written the following code to update Account custom field if Contact Status field is Finish,But I wanted to do if all the assosiated contact status finish then only it should be end.
Code is:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
trigger UpdateAccountStatus on Contact (after insert,after update) {
List<ID> actListID=new List<Id>();
for(Contact con:Trigger.new)
{
if(con.Status__c=='Finish'&& con.AccountID!=Null){
actListID.add(con.AccountID);
}
}
List<Account> acc=[Select Id,Name,Status__c from Account where Id=:actListID];
for(Account a:acc)
a.Status__c = 'End';

update acc;
}
Hello guys, I have the following Visualforce page, name is screen1VSF with a controller.

<apex:page controller="screen1">
   <apex:form >
       <apex:pageBlock >
           <apex:pageBlockSection >
               <apex:inputField value="{!account.name}"/>
               <apex:commandButton value="Save" action="{!save}"/>
           </apex:pageBlockSection>
       </apex:pageBlock>
   </apex:form>
</apex:page>

public class screen1 
{
    public Account myAccount;
    public Account callAccMethod; 
    
    public Account getAccount()
    {
        if(myAccount == null)
        {
            myAccount = new account();
        }
        return myAccount;
    }

    public PageReference save()
    {
       callAccMethod = getAccount();
       if(callAccMethod != null)
       {
           insert myAccount;
       }
       
       PageReference pageRef = new PageReference('/apex/screen2');
       pageRef.getParameters().put('id', myAccount.Id);
       return pageRef;
     }
}

I read some documentation from here: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_error_handling.htm but I'm still confused how this testing with VF works. Any ideas how can I test my visualforce page and explain how you did it, i want to learn.
Please help me in this: I have created a counter field in account and have written the code like this
trigger AccountUpdationCounter on Account (after update) {

for(Account acts:trigger.new){
if(Trigger.isUpdate){
acts.Counter__c=0;
acts.Counter__c=acts.Counter__c+1;
}
update acts;
}
}
Getting below error after updating from UI:Error:Apex trigger AccountUpdationCounter caused an unexpected exception, contact your administrator: AccountUpdationCounter: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.AccountUpdationCounter: line 4, column 1