• Stancioiu Stefan 1
  • NEWBIE
  • 30 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 8
    Replies

When I try to create a community with a custom template from a Bolt Solution generated by a managed package in my Partner Developer Edition sandbox, I get this error
User-added imageDoes anybody encountered this before ?

Thank you !

When I try to create a community with a custom template from a Bolt Solution generated by a managed package in my Partner Developer Edition sandbox, I get this error

User-added imageDoes anybody encountered this before ?

Thank you !

Hi guys! I'm new on Salesforce, can anybody help me with this ?
 
  1. Create a custom object called Case_Products__c (junction object between Case and Product2 standard objects.
  2.  Implement a lightning component with a text field where the agent will input the order number. Once he presses on Search, the controller will search the order in the system and:Display Order details such as Order Number, Status, Amount (read only fields
  3.  Display a list of the associated Order products. Each product must be selectable (checkbox)
  4.  Create a button to identify all selected items and for each item, create a Case Product record.
  5.  Make sure there is a Select All button, too.
  6.  Lightning Design system must be used and all CSS or JS code must be added to Static Resources.
  1. Create a custom field on Case object - Order__c (Lookup to Order)
  2.  Implement an Inbound email handler to parse the Subject and Body of an incoming email and search for the order number. In order to match a specific format, regex must be used.
  3.  If order number was found, search the Order record based on the number (using dynamic SOQL) and associate it with the case (populate Order__c with the Salesforce ID of the Order).
  4.  When the order number is found, add it to debug log using System.debug(…). Also use Limit class in order to monitor the number of queries and DMLs in a transaction (https://developer.salesforce.com/page/Best_Practice:_Use_of_the_Limits_Apex_Methods_to_avoid_Hitting_Governor_Limits).
  1. Create a visualforce page that will be integrated in the Account layout
  2. Invoke openweathermap API in order to get the weather of the associated city (https://openweathermap.org/current )
  3. Display
  • Temperature
  • Description
  • Icon (https://openweathermap.org/weather-conditions )
  1. Create custom fields on Account object: Billing County(Text), Invalid Address(checkbox), Address Check Failed(checkbox), Address Check Performed(checkbox)
  2. On new account creation or on any changes on Billing County, Billing Town or Billing Postal code:
  • Invoke ‘ValidateUKAddress’ method from UK Location  service to verify if the address is valid http://www.webservicex.net/ws/WSDetails.aspx?WSID=49&CATID=7).
  • Flag the Address Check Performed on the associated account
  • Based on the received response if no valid addresses are found for the provided parameters check the ‘Invalid Address’ flag
  • If any errors on the service request mark the items as  ’Address Check Failed’ and also log the error.
1.  Create a batch class that summarizes all Opportunity Amounts for each Account;
2.  An email should be sent to the primary contact of all Accounts, containing a table with the Closed Won/Open/Closed Lost summarized Opportunity Amounts;
3.  Schedulable class that calls the batch class should be created;
4.  The class should be scheduled from the Developer console. Please provide script to schedule the job daily at 10:00 AM, once a week (Friday at 1:00 PM), once a month(Last Friday of the Month at 6:00 PM).
1. Create a custom field on the Contact object: Is Primary Contact (checkbox)
2. Create a custom field on the Contact object: Primary Contact Phone (Phone);
3. A validation should be added so that if the Account already has a Primary Contact set a new one cannot be added;​
4. When a contact is set as primary, the Primary Contact Phone should be updated to all Contacts related to the same account. This should be an asynchronous process. Make sure that if one Contact update fails, it doesn’t rollback the changes for the others.
1. Create a custom field on the Contact object: Is Primary Contact(checkbox)
2. Create a custom field on the Contact object: Is Primary Contact(checkbox);
3. A validation should be added so that if the Account already has a Primary Contact set a new one cannot be added;​
4. When a contact is set as primary, the Primary Contact Phone should be updated to all Contacts related to the same account. This should be an asynchronous process. Make sure that if one Contact update fails, it doesn’t rollback the changes for the others.
  1. Create a visualforce page that will be integrated in the Account layout
  2. Invoke openweathermap API in order to get the weather of the associated city (https://openweathermap.org/current )
  3. Display
  • Temperature
  • Description
  • Icon (https://openweathermap.org/weather-conditions )
  1. Create a custom field on Case object - Order__c (Lookup to Order)
  2.  Implement an Inbound email handler to parse the Subject and Body of an incoming email and search for the order number. In order to match a specific format, regex must be used.
  3.  If order number was found, search the Order record based on the number (using dynamic SOQL) and associate it with the case (populate Order__c with the Salesforce ID of the Order).
  4.  When the order number is found, add it to debug log using System.debug(…). Also use Limit class in order to monitor the number of queries and DMLs in a transaction (https://developer.salesforce.com/page/Best_Practice:_Use_of_the_Limits_Apex_Methods_to_avoid_Hitting_Governor_Limits).
1.  Create a batch class that summarizes all Opportunity Amounts for each Account;
2.  An email should be sent to the primary contact of all Accounts, containing a table with the Closed Won/Open/Closed Lost summarized Opportunity Amounts;
3.  Schedulable class that calls the batch class should be created;
4.  The class should be scheduled from the Developer console. Please provide script to schedule the job daily at 10:00 AM, once a week (Friday at 1:00 PM), once a month(Last Friday of the Month at 6:00 PM).
1. Create a custom field on the Contact object: Is Primary Contact (checkbox)
2. Create a custom field on the Contact object: Primary Contact Phone (Phone);
3. A validation should be added so that if the Account already has a Primary Contact set a new one cannot be added;​
4. When a contact is set as primary, the Primary Contact Phone should be updated to all Contacts related to the same account. This should be an asynchronous process. Make sure that if one Contact update fails, it doesn’t rollback the changes for the others.
public class AccountOwnerUpdate{
    public Boolean isSelected{get;set;}
    public Account accounts{get;set;}
    public List<Account> selectedAccounts{get;set;}
   // public Boolean sendEmail{get;set;}
    public AccountOwnerUpdate(ApexPages.StandardSetController standardController)
    {   
        if(standardController.getSelected().size() == 0){
            isSelected = false;
            ApexPages.Message msg = new ApexPages.message(ApexPages.Severity.ERROR,'No Account Selected');
            ApexPages.addMessage(msg);
        }else{
            isSelected = true;
            selectedAccounts=  [SELECT id,name,ownerid from Account where id=:standardController.getSelected()];
           accounts = selectedAccounts[0]; 
           // accounts.ownerid = null; 
       }       
    }
    public PageReference updateAccount()
    {   
        for(Account a: selectedAccounts){
            a.ownerid = accounts.ownerid;
        }
        update selectedAccounts;
        return new Pagereference('/001/o');
    }

}
Hi guys,

Is it possible to add a table to an email template?
  • August 07, 2016
  • Like
  • 0
Error: Invalid Data. 
Review all error messages below to correct your data.
Apex trigger Addreletedrecord caused an unexpected exception, contact your administrator: Addreletedrecord: execution of AfterInsert caused by: System.DmlException: Update failed. First exception on row 0; first error: MISSING_ARGUMENT, Id not specified in an update call: []: Trigger.Addreletedrecord: line 8, column 1