• sundar s 24
  • NEWBIE
  • 35 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 21
    Replies
I have a field called stage and its picklist field , how to create summary report for the below calculation .these values are from stage picklist value 
 
(ALL 8.0 Closed Won Opportunities /( All 8.0 Opptys + 9.0 Closed Lost Opptys + 9.0 Lost to Competitor Opptys). 
1 Custom report for opportunity and quotes this quote is package
2. Selection formula Approval Status equals Pending Approval   AND Stage equals
       Submitted   for Approval. these fields are from quotes.
3. OWD is private for both opportunity and quote
4. report has 1800 records only few records shows value  and remaining records shows "-" and       except first column all column  from quotes
5. I kept only quotes fields in column still it shows "-" even id it  shows "-" am not sure how it fall this filter condition , the filter field column also shows "-" 
please suggest me the reason. It has role hierarchy, even i logged in as top role
I have a custom report for opportunity and quote and have below selection formula and the Approval status , Stage  fields are from quote, 
columns are from quote and report has 1800 recordss only 60 records shows value remaining records the field value shows "-" even id shows "-" , owd is private for both object any idea for this issue

Selection formula
Approval Status equals Pending Approval   AND Stage equals Submitted for Approval

 
any simple setting to bypass validation rule?
Manager forcast is picklist field
stage is picklist field
if recordtypeid  is 0120g000000YTs1 or 012700000001YJj and manager forcast is omitted and if stage is other than 0.0 Engage then i want manager forcast is upsert.
the below code in workflow is not working

(( RecordTypeId == '0120g000000YTs1' ) || (RecordTypeId == '012700000001YJj' )) && (ISPICKVAL( Manager_Forecast__c , 'Omitted')) && ( Not (ISPICKVAL( StageName , '0.0 Engage')))
if the recordtype id is 0120g000000YTs1AAG or recordtype id is 012700000001YJjAAM and manager forcast is omitted and stage is other than 0.0 is the condition 
how to write workflow 
 
the below shows syntax error
 

 
(( RecordTypeId  == '0120g000000YTs1AAG' )   || (RecordTypeId  == ‘012700000001YJjAAM’  ))&& (ISPICKVAL( Manager_Forecast__c , 'Omitted') &&( Not ISPICKVAL(  StageName  , '0.0 Engage')))
the below code what is the meaning of 
 TriggerFactory.createHandler(Implementation__c.sObjectType);

where to check the code


trigger ImplementationTrigger on Implementation__c (after insert, after update) {
  System.debug('enter implementation trigger');
  TriggerFactory.createHandler(Implementation__c.sObjectType);
}
the bolded line gave error Error is in expression '{!onload}' in component <apex:page> in page clonequote: Class.CloneQuote.cloneFutureDatedAmendmentGroups: line 
any idea ? there is no null value quote id has value

private static RampData cloneFutureDatedAmendmentGroups(String quoteId, String subQuoteId, RampData data, Map<String, String> oldQrpcToNewQrpcMap) {
    System.debug(LoggingLevel.INFO, 'Cloning FDAG...');
    //fdag
    List<FutureDatedAmendmentGroup__c> fdagList = Database.query(getCreatableFieldsSOQL('FutureDatedAmendmentGroup__c', 'Quote__c =\'' + quoteId + '\''));
    List<FutureDatedAmendmentGroup__c> fdagToCreate = new List<FutureDatedAmendmentGroup__c>();
    List<String> oldFdagIdList = new List<String>();
    for (FutureDatedAmendmentGroup__c fdag : fdagList) {
      FutureDatedAmendmentGroup__c newFdag = fdag.clone(false, true, false, false);
      newFdag.Quote__c = subQuoteId;
      newFdag.QuoteRatePlanCharge__c = oldQrpcToNewQrpcMap.get(newFdag.QuoteRatePlanCharge__c);
      fdagToCreate.add(newFdag);
      oldFdagIdList.add(fdag.Id);
    }
how to find which profile can create user and which profile can modify user
am getting error in the below highlighted line in bold it says error is in expression '{onload}' in component <apexpage>

private static RampData cloneFutureDatedAmendmentGroups(String quoteId, String subQuoteId, RampData data, Map<String, String> oldQrpcToNewQrpcMap) {
    System.debug(LoggingLevel.INFO, 'Cloning FDAG...');
    //fdag
    List<FutureDatedAmendmentGroup__c> fdagList = Database.query(getCreatableFieldsSOQL('FutureDatedAmendmentGroup__c', 'Quote__c =\'' + quoteId + '\''));// here error
    List<FutureDatedAmendmentGroup__c> fdagToCreate = new List<FutureDatedAmendmentGroup__c>();
    List<String> oldFdagIdList = new List<String>();
    for (FutureDatedAmendmentGroup__c fdag : fdagList) {
      FutureDatedAmendmentGroup__c newFdag = fdag.clone(false, true, false, false);
      newFdag.Quote__c = subQuoteId;
      newFdag.QuoteRatePlanCharge__c = oldQrpcToNewQrpcMap.get(newFdag.QuoteRatePlanCharge__c);
      fdagToCreate.add(newFdag);
      oldFdagIdList.add(fdag.Id);
    }
    if (!oldFdagIdList.isEmpty()) {
      insert fdagToCreate;
      System.debug(LoggingLevel.INFO, 'Created FDAG: ' + fdagToCreate);
    }
    //map the old id to the new id so the fda knows where to go
    Map<String, String> oldFdagIdToNewFdagId = new Map<String, String>();
    for (integer i = 0; i < oldFdagIdList.size(); i++) {
      // 3/30/17 MD
      // fdagToCreate was fdagList which is the old, so its mapping old to old...
      oldFdagIdToNewFdagId.put(oldFdagIdList[i], String.valueOf(fdagToCreate[i].id));
    }
    data.oldFdagIdToNewFdagId = oldFdagIdToNewFdagId;
    System.Debug(LoggingLevel.INFO, 'data: ' + data);
    return data;
  }
what are the precautions i have to take before delete the field in production
if i change email template name do i need to change whereever it is referred
the highlighted line in blod says null point excemption any idea?

private static void getDates(String quoteId, CVData data) {
    zqu__Quote__c quote = getQuote(quoteId);
    data.quote = quote;
    data.changeEffectiveDate = quote.zqu__StartDate__c;
    data.subscriptionTermStartDate = quote.zqu__SubscriptionTermStartDate__c;
    // end of current term
    data.endOfCurrentTerm = getEndOfCurrentTerm(
        quote.zqu__SubscriptionTermStartDate__c,
        quote.zqu__StartDate__c,
        (Integer) quote.zqu__InitialTerm__c
    );
  public static Date getEndOfCurrentTerm(
      Date termStartDate,
      Date effectiveDate,
      Integer initialTerm) {
    List<Date> terms = new List<Date>();

    Integer numberOfTerms = initialTerm / 12;

    // make the terms list based on the initialTerm
    for (Integer i = 1; i <= numberOfTerms + 1; i++) {
      terms.add(termStartDate);
      termStartDate = termStartDate.addYears(1);  // here it shows error
    }
    System.debug(LoggingLevel.INFO, 'terms: ' + terms);
    System.debug(LoggingLevel.INFO, 'EffectiveDate: ' + effectiveDate);

    // check if the effective date is less than each term start date
    for (Integer i = 0; i < terms.size(); i++) {
      if (effectiveDate <= terms[i]) {
        return terms[i].addDays(-1);
      }
    }
what is the Recipient field api name in workflow email alert
    what this url try to open , i dont have access to open but would like to know what they are calling

https://abc.my.salesforce.com/p/procesto/ProcessInstanceWorkitemWizardStageManager
related list is custom object right
i have an object and the related list is approval history but i ccouldnt find the approval history object 
what am i missing
how to get api name of all fields in an object using developer console
how to report/query the recipients of email alerts
one of the user left organisation and his name is refered in approval process how to retive the details , my process has 17 steps and lot of email alerts.
pls suggest me
thanks
the bold line null point it seems the value is null , what is termstartdate here  pls suggest me

public static Date getEndOfCurrentTerm(
      Date termStartDate,
      Date effectiveDate,
      Integer initialTerm) {
    List<Date> terms = new List<Date>();

    Integer numberOfTerms = initialTerm / 12;

    // make the terms list based on the initialTerm
    for (Integer i = 1; i <= numberOfTerms + 1; i++) {
      terms.add(termStartDate);
      termStartDate = termStartDate.addYears(1); // this give null point error
    }
how to find which profile can create user and which profile can modify user
am getting error in the below highlighted line in bold it says error is in expression '{onload}' in component <apexpage>

private static RampData cloneFutureDatedAmendmentGroups(String quoteId, String subQuoteId, RampData data, Map<String, String> oldQrpcToNewQrpcMap) {
    System.debug(LoggingLevel.INFO, 'Cloning FDAG...');
    //fdag
    List<FutureDatedAmendmentGroup__c> fdagList = Database.query(getCreatableFieldsSOQL('FutureDatedAmendmentGroup__c', 'Quote__c =\'' + quoteId + '\''));// here error
    List<FutureDatedAmendmentGroup__c> fdagToCreate = new List<FutureDatedAmendmentGroup__c>();
    List<String> oldFdagIdList = new List<String>();
    for (FutureDatedAmendmentGroup__c fdag : fdagList) {
      FutureDatedAmendmentGroup__c newFdag = fdag.clone(false, true, false, false);
      newFdag.Quote__c = subQuoteId;
      newFdag.QuoteRatePlanCharge__c = oldQrpcToNewQrpcMap.get(newFdag.QuoteRatePlanCharge__c);
      fdagToCreate.add(newFdag);
      oldFdagIdList.add(fdag.Id);
    }
    if (!oldFdagIdList.isEmpty()) {
      insert fdagToCreate;
      System.debug(LoggingLevel.INFO, 'Created FDAG: ' + fdagToCreate);
    }
    //map the old id to the new id so the fda knows where to go
    Map<String, String> oldFdagIdToNewFdagId = new Map<String, String>();
    for (integer i = 0; i < oldFdagIdList.size(); i++) {
      // 3/30/17 MD
      // fdagToCreate was fdagList which is the old, so its mapping old to old...
      oldFdagIdToNewFdagId.put(oldFdagIdList[i], String.valueOf(fdagToCreate[i].id));
    }
    data.oldFdagIdToNewFdagId = oldFdagIdToNewFdagId;
    System.Debug(LoggingLevel.INFO, 'data: ' + data);
    return data;
  }
what are the precautions i have to take before delete the field in production
if i change email template name do i need to change whereever it is referred
the highlighted line in blod says null point excemption any idea?

private static void getDates(String quoteId, CVData data) {
    zqu__Quote__c quote = getQuote(quoteId);
    data.quote = quote;
    data.changeEffectiveDate = quote.zqu__StartDate__c;
    data.subscriptionTermStartDate = quote.zqu__SubscriptionTermStartDate__c;
    // end of current term
    data.endOfCurrentTerm = getEndOfCurrentTerm(
        quote.zqu__SubscriptionTermStartDate__c,
        quote.zqu__StartDate__c,
        (Integer) quote.zqu__InitialTerm__c
    );
  public static Date getEndOfCurrentTerm(
      Date termStartDate,
      Date effectiveDate,
      Integer initialTerm) {
    List<Date> terms = new List<Date>();

    Integer numberOfTerms = initialTerm / 12;

    // make the terms list based on the initialTerm
    for (Integer i = 1; i <= numberOfTerms + 1; i++) {
      terms.add(termStartDate);
      termStartDate = termStartDate.addYears(1);  // here it shows error
    }
    System.debug(LoggingLevel.INFO, 'terms: ' + terms);
    System.debug(LoggingLevel.INFO, 'EffectiveDate: ' + effectiveDate);

    // check if the effective date is less than each term start date
    for (Integer i = 0; i < terms.size(); i++) {
      if (effectiveDate <= terms[i]) {
        return terms[i].addDays(-1);
      }
    }
what is the Recipient field api name in workflow email alert
related list is custom object right
i have an object and the related list is approval history but i ccouldnt find the approval history object 
what am i missing
how to get api name of all fields in an object using developer console
how to report/query the recipients of email alerts
the bold line null point it seems the value is null , what is termstartdate here  pls suggest me

public static Date getEndOfCurrentTerm(
      Date termStartDate,
      Date effectiveDate,
      Integer initialTerm) {
    List<Date> terms = new List<Date>();

    Integer numberOfTerms = initialTerm / 12;

    // make the terms list based on the initialTerm
    for (Integer i = 1; i <= numberOfTerms + 1; i++) {
      terms.add(termStartDate);
      termStartDate = termStartDate.addYears(1); // this give null point error
    }
may i know why picklist field name in opportunity is not display in field update workflow action
Hey Guys,

Please helpe me. I am stuck, non of the users can see report. They can see the report folder but when they try to access report they get insufficient privilage error. Infact they can't even access unifed folder reports. Which is visible to all users. I am not sure why this is happening. I gave all these permissions but still they cant see: 

1) Manage Reports in Public Folders
2) Manage Dashboards in Public Folders
3) View Reports in Public Folders
4) View Dashboards in Public Folders
5)Create Report Folders
6) Create Dashboard Folders
7) Edit My Reports
8) Edit My Dashboards

Please let me know if I am missing something. Thanks.
 
  • February 01, 2016
  • Like
  • 0