• AnuragGautam
  • NEWBIE
  • 75 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 17
    Replies
Hello, I created a process that should notify when a certain field receives a record in Opportunities.
But when I try it out (as the admin) I always receive the error message:

The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30158000000CuOw. Contact your administrator for help. 

Maybe it doesn't work because I am the administrator myself?
What can I do?

Thanks in advance:)
ABS(CloseDate - DATEVALUE(CreatedDate)) = 0

worked well in validation rule but when i am trying to check in  process builder it didnt worked....
Hi All,

I have Questions like below screen short.
If i select Agra or Jaipur that section should be hide for another user

can you help me controllerUser-added image
Hi Friends, 
Thanks In advance , Please Help I am Struck over some point of below code,
I need Test coverage for this code please help.
if(leadList.Description!= null)
       {
         acc.Description = leadList.Description;
         if (leadList.Station_Formula__c == null && leadList.Station_from_Web_Form__c !=null )
           acc.Description += ' - ' + 'Station:' + leadList.Station_from_Web_Form__c;

         if (leadList.Station__c != null )
         {   
             System.debug('************** Drone Market' + leadList.Drone_Market__c);
             acc.Description += ' - ' + 'Station:' + leadList.Station_Formula__c;
             if (leadList.Operating_Market__c != null )
             acc.Description +=  ' , ' + 'Operating Market:' + leadList.Operating_Market_Formula__c;
             if (leadList.Drone_Market__c!= null )
             acc.Description +=  ' , ' + 'Drone Market:' + leadList.Drone_Formula__c;
         }
        update acc;
       }  
	   
	    if (leadList.Advertiser_or_Agency__c=='Advertising' && leadList.Agency_Relationship_lkup__c != null )
            System.Debug('**************************** Existing Primary Agency:' + leadList.ConvertedAccountId );
            Agency_Relationship__c agencyBudgetRelationship = new Agency_Relationship__c();
            Opportunity_Agency_Relationship__c oppAgencyRelationShip = new Opportunity_Agency_Relationship__c();
            agencyBudgetRelationship.Account__c = acc.Id;
            agencyBudgetRelationship.Agency_Account__c = leadList.Agency_Relationship_lkup__c ;
            agencyBudgetRelationship.Primary__c = true;
            agencyBudgetRelationship.Type__c='Buying Agency';
            opp.Agency_or_Direct__c = 'Agency';
            oppAgencyRelationShip.Opportunity__c = opp.Id;
            oppAgencyRelationShip.Type__c='Agency of Record';
            oppAgencyRelationShip.Agency_Account__c = leadList.Agency_Relationship_lkup__c ;
            oppAgencyRelationShip.Primary__c = true;
            opp.Type = 'Prospecting';
}
Thanks & Regards
Rohitha
 
how to call apex class from process builder?
Hi everyone !
I want to create a customer community for the contacts for who I already enable for them “the customer user” and I give them “Customer Community” as User Licence and “Customer Community User” as Profile.
What I need is a vf page where each contact can see its own account and opportunities in a vf page in the community.
Something like that: (this one doesn't work!)
<apex:page standardController="Contact" recordSetVar="contacts"  sidebar="false">
    <apex:pageBlock >
          <apex:repeat value="{!contacts}" var="con">
<apex:pageBlockSection title="{!con.Name}"></apex:pageBlockSection>
<apex:relatedList list="Account" subject="{!con.Id}"/>
<apex:relatedList list="Opportunities" subject="{!con.Id}" />
</apex:repeat>      
     </apex:pageBlock>
</apex:page>
I read that we can not display Opportunities when we enable the “Community User” for contacts, what should I change?
If you can help me with this I would be grateful..
Thanks in advance.
 
Hello everyone

I have a small issue with manual sharing.

I have created a custom object with a lookup relationship with Accounts.I have Account teams linked to Account.

My case is the following  : 

an account team member create a record in the custom object (a trigger change the owner of this record so he's not the owner anymore).

I remove the user from the account team member but he still can see the record because the sharing has not been removed. Is there any way to delete manual sharing  automatically in a custom object?

I also noted that when i delete the accoun team member, the account still be shared with him until i click on the sharing button and delete it. How is it possible?
Hi,

  I have writted a controller to check if attached is added or not on a custom object if not added it will show a message else submit for approval. 

  I want to redirect to same page where the user clicked the button from with page refresh I added below code but it is not working please suggest me how to modify the code. 
public class  check_spr_coterm
{
Integer count = 0;
String PageID; 
 public check_spr_coterm()
 {
   SPR__c SP;
   //OpportunityLineItem OLI;
     
   
   SP = [select id,Opportunity__c from SPR__c 
          where Id = : ApexPages.currentPage().getParameters().get('id') limit 1];
   
   PageID = ApexPages.currentPage().getParameters().get('id');
   
   List<AggregateResult> OLI = [select count(id) from OpportunityLineItem 
                                where opportunityid = :SP.Opportunity__c and name like '%COTERM%' ];
    
   List<AggregateResult>  ATH = [select count(id) athcnt from  Attachment 
                                 where parentid = :ApexPages.currentPage().getParameters().get('id')];  
   
   count = (Integer)ATH[0].get('athcnt');  
     
 }
 public void pageAction(){
     if(count ==0){
         ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.info,'You cannot submit as this record dont have attachment'));      
     }
     else
     {
        Approval.ProcessSubmitRequest req = new Approval.ProcessSubmitRequest();
        req.setObjectId(PageID);
        Approval.ProcessResult result = Approval.process(req);
        //ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.info,'Sucessfully submitted for approval'));
        redirectpage();
      }
     
 }
 
 
 public PageReference redirectpage()
 {
   PageReference pageRef = new PageReference(PageID);
   pageRef.setRedirect(true);
   return pageRef;
 }
 
 
}

i have two salesforce Account Alpha & Beta

if i insert Account in Alpha(like account name='abc') then same Account Inserted into Beta Account like (name='abc' ) 
Hint: basic idea is this is done with the salesforce Rest API

please provide Help
 
Hi, 

  I have written a controller which is on a custom object is related to opportunity. My requirement is if there is a any product with name 'COTERM' is added and attachment is missing an alter message should be populated on visual force page saying approval cannot be submit since there is no attached. 

 If product is COTERM and attachment is added it must submit for approval please sugget me how to add this functionality 

Below is the controller checking the product and attached 
public class  check_spr_coterm
{
 public check_spr_coterm()
 {
   SPR__c SP;
   //OpportunityLineItem OLI;
   
   SP = [select Opportunity__c from SPR__c 
          where Id = : ApexPages.currentPage().getParameters().get('id') limit 1];
   
   List<AggregateResult> OLI = [select count(id) from OpportunityLineItem 
                                where opportunityid = :SP.Opportunity__c and name like '%COTERM%' ];
    
   List<AggregateResult>  ATH = [select count(id) from  Attachment 
                                 where parentid = :ApexPages.currentPage().getParameters().get('id')];  
   
   
 }
}


How to add the approval process and call this controll in visualforce page please suggest me.
 

<apex:page controller="check_spr_coterm">
<script>
window.alert('{!$CurrentPage.Parameters.Id}');
window.parent.opener.location.reload(true);
window.parent.close();
</script>
</apex:page>
 



Thanks

Sudhir

Hi,

In our sandbox I created a Community and the Site record was automatically created allowing us to control permissions etc.  After creating the Community in Production (which is Active) the Site doesn't show up.  It must exist I presume because it doesn't allow me to register the force.com domain again.

I need to amend settings held on the Community Site and so am finding this a bit confusing regarding why it is not showing up.

Regards
Lance Cresswell