• Syed Insha Jawaid 2
  • SMARTIE
  • 692 Points
  • Member since 2018

  • Chatter
    Feed
  • 22
    Best Answers
  • 0
    Likes Received
  • 6
    Likes Given
  • 1
    Questions
  • 188
    Replies
Hello,

I'd really appreciate some help. Our instance migration is happening this weekend. I've tried using Eclipse with Force.com IDE to find our hard-coded references, and have followed the instructions here https://help.salesforce.com/articleView?id=000230820&language=en_US&type=1
however, every time I search, I get zero results. Where am I going wrong??

I really need some help. I don't understand why this is happening when I've followed the instructions?

Thanks
Hello,

I am sending an email from the apex code, the email is getting attached to th accounts but the attachments are not geting attached to the email.
Attachments section is null
I have made an @invocableMethod , And I grab some values like Queue ID and Record ID form my Custom Object (QueueDistroHelper__c) . 
All I want to do is Get all users who are in  the Queue (I grab the queue ID from custom field on the Custom object) . And then show all that users on  a field called Queue_Members__c on same Custom object . 
I am not able to add the results to custom field 
Here is my code 
 
global class lookUpAccountAnnotation {
public class inputValues{
        @InvocableVariable(label='Queue ID' required=true)
        public string QueueId;
        @InvocableVariable(label='Record Id' required=true)
        public Id recordid;
       
    }
   @InvocableMethod
    public static void deletePackageLicense(List<inputValues> inputs){
    
      for (inputValues i : inputs)
   {
      List<QueueDistroHelper__c> getcurrentobject =  [SELECT Queue_Members__c FROM QueueDistroHelper__c WHERE Id=:i.recordid  LIMIT 1];
      List<User> users =  [SELECT
                    id,name
                FROM
                    user
                WHERE
                    id IN ( SELECT userOrGroupId FROM groupmember WHERE groupId = :i.QueueID )
                    AND
                    isActive = true
                ORDER BY
                    firstName];
      for (User test : users ){
     //Add User.name in Queue_Members__c
      }
      }
   }
}

So all I want to do is add the test.name to  Queue_Members__c
Hello,  we are going to start to restrict some objects sharing, and we found that we cannot create the __share custom metadata for the objects, as per the documentation, salesforce creates them when the sharing of the objet is changed from public.

Our concer is that we have a metadata repository to store all our project metadata, and to use it to deploy at our different orgs (Dev, Int, Pre) prior to deploy to prod, but so far, we are not able to find the metadata type to be used with ANT to download this custom metadata named "...__shared"
Not sure if is because this is not available, or if it has a different metadata type. We just want to generate the __share, extract it with ANT from one Sandbox, and upload to a different one with ANT (if this is not possible, almost to get it from the sandbox and store it at our repository)
Here I have written code for lightning component. I have needed that when error occures then button should not call action 

<aura:component controller="ContactsController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global">
    <aura:attribute name="conInfo" type="contact" default="{'sobjectType':'contact','LastName':'','firstName':''}"/>
    <!-- CREATE NEW Contact -->
    <div aria-labelledby="newconform" style="display:flex;justify-content:center;">
        <!-- BOXED AREA -->
        <fieldset class="slds-box slds-theme--default" style="width:40%;">
        
            
            <form class="slds-form--stacked">          
                <lightning:input  aura:id="conform" label="First Name"
                                 name="VSMfname"
                                 value="{!v.conInfo.firstName}"
                                 messageWhenValueMissing="First Name is Required."
                                 required="true"/> 
                <lightning:input aura:id="conform" label="Last Name"
                                 name="VSMlname"                            
                                 value="{!v.conInfo.lastName}"
                                 messageWhenValueMissing="Last Name is Required."
                                 required="true"/>
                <lightning:input aura:id="conform" label="Email"
                                 name="VSMemail"                            
                                 value="{!v.conInfo.email}"
                                 messageWhenValueMissing="Email is Required."
                                 required="true"/>
                  <lightning:input aura:id="conform" label="Phone"
                                 name="VSMphone"                            
                                 value="{!v.conInfo.phone}"
                                 messageWhenValueMissing="Phone is Required."  
                                 required="true"/>
                   <lightning:input aura:id="conform" label="Street"
                                 name="VSMstreet"                            
                                 value="{!v.conInfo.MailingStreet}"
                                 messageWhenValueMissing="Street is Required."    
                                 required="true"/>
                   <lightning:input aura:id="conform" label="City"
                                 name="VSMcity"                            
                                 value="{!v.conInfo.MailingCity}"
                                 messageWhenValueMissing="City is Required."    
                                 required="true"/>
                 <lightning:input aura:id="conform" label="State"
                                 name="VSMstate"                            
                                 value="{!v.conInfo.MailingState}"
                                 messageWhenValueMissing="State is Required."  
                                 required="true"/>
                        <lightning:input aura:id="conform" label="Country"
                                 name="VSMcountry"                            
                                 value="{!v.conInfo.MailingCountry}"
                                 messageWhenValueMissing="Country is Required."         
                                 required="true"/>
                <lightning:button label="Next" 
                                  class="slds-m-top--medium"
                                  variant="brand"
                                  onclick="{!c.clickCreate}"/>
            </form>
            <!-- / CREATE Contact -->
            
        </fieldset>
        <!-- / BOXED AREA -->
    </div>
    
    
</aura:component>
I'm braindead today and can't figure out the simplest of things.  

I have a custom object called VRNA__Policy__c.  
This object has a lookup relationship to ACCOUNT that's called VRNA__Issuing_Carrier__c.
I need to get the email address from the ACCOUNT lookup (VRNA__Issuing_Carrier__c) that's on the Policy record. 

This basic query works fine, but doesn't get the email address:
[SELECT VRNA__Issuing_Carrier__c FROM VRNA__Policy__c WHERE VRNA__Account__c =: Id AND RecordTypeID = '012f4000000giyZ']

I've tried:
[SELECT VRNA__Issuing_Carrier__c.email__c FROM VRNA__Policy__c WHERE VRNA__Account__c =: Id AND RecordTypeID = '012f4000000giyZ']

Shouldn't that work?  I'm getting an error that it doesn't understand the relationship.   
Hello,

I created a flow and a button to launch it.
The flow was debuged and works perfectly. But when I try to launch it using a custom button I receive an error:

"We can't launch this flow because of a variable error. Send this error message to your admin. The value 19/12/2019 is being provided for variable TermEndDate but isn't compatible with the variable's data type (Date)...
As you can see the value is Date type. I doubled checked that the field referenced is indeed Date type.

Can anyone please direct me to how to solve this?

Thanks,
Tal
Hi,

I have a question about campaign influence. 

So I know that if a contact is added to an opportunity that any campaign that was associated to the contact before the contact is associated with the opportunity will be added to the opportunity. My question is if that contact is added to another campaign before the opportunity closes will the newly added campaign be added to the opportunity. 

If the answer is no, is there a way to create a trigger that will do it for me?

Thanks,
Edward
Hi all,
Need help in trigger,

Whenever a Contact is updated and only if any of the values for the below fields changed(Oldmap and NewMap values.)

Member Id
Preferred language
Phone

For all the contacts verified against Opportunity Contact roles with IsPrimary = true. Then fetch all the Opportunities and update the values for corresponding 3 fields in Opportunity record.

Costco Member Id
Preferred language
Phone
One day we could access our partner community with no problem, the next we are getting a blank screen when logging in, and the error above when in the builder.  I am at a loss.  I have not done any special coding, and I am not getting the help I need to resolve my issue.  Help!
Hello,

I have below error when i run the ANt retrive command
Buildfile: C:\Users\Gyra\Music\apache-ant-1.9.4\bin\build.xml

FTOQ_test:
[sf:retrieve] Note: use ant -verbose to get more information on the failure

BUILD FAILED
C:\Users\Gyra\Music\apache-ant-1.9.4\bin\build.xml:14: Failed to login: Failed
 to send request to https://test.salesforce.com/services/Soap/u/38.0

Total time: 23 seconds
 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>teestper</members>
        <name>ApexClass</name>
    </types>
    <version>38.0</version>
</Package>

any suggestions ?
Need to understand what this lines of Trigger actually means as I'm new to Triggers.
if(salesAreaMatched)
							{
                                if(Trigger.isInsert)
								{ 
								opportunity.CurrencyISOCode = accountSalesArea.CurrencyISOCode; 
								}
                                opportunity.Account_Sales_Area_TI__c = accountSalesArea.Id;
                                opportunity.INCO_Term__c = accountSalesArea.Incoterms__c;
                                if(!String.isBlank(accountSalesArea.Price_List__c))
                                opportunity.Price_List__c = accountSalesArea.Price_List__c;
                                
                                if(Trigger.isInsert && Trigger.isBefore && opportunity.Payment_Term__c == null)
                                {
                                    opportunity.Payment_Term__c = accountSalesArea.Payment_Terms__c;
                                }
                                else if(Trigger.isUpdate && Trigger.isBefore)
                                {
                                    Opportunity tempOpty = (Opportunity)Trigger.oldMap.get(opportunity.Id);
                                    if(tempOpty.Sales_Area__c != null && tempOpty.Sales_Area__c != opportunity.Sales_Area__c && tempOpty.Payment_Term__c == opportunity.Payment_Term__c)
                                    {
                                        opportunity.Payment_Term__c = accountSalesArea.Payment_Terms__c;
                                    }
                                }
                                //opportunity.Payment_Term__c = accountSalesArea.Payment_Terms__c;
                                opportunity.INCO_Term_Location__c = accountSalesArea.Incoterms_2__c;
                                break;
                            }

 
Hello All,
how to retrieve record id from map using custom filed.
List<String> lststringid =  new List<String>();
                for(Servicing_Error__c se : lstservicingerror)
                {
                    if(se.Fastrack_Work_Order__c != null)
                    {
                         lststringid.add(se.Fastrack_Work_Order__c) ;  
                    }   
                }
                Map<id,workOrder> mapWorkOrder = new Map<id,workOrder>([Select id,FAStrackIdentifier__c from WorkOrder where FAStrackIdentifier__c IN:lststringid]); 
                
                System.debug('Keyset'+mapWorkOrder);
                
                for(Servicing_Error__c se2:lstservicingerror)
                {
                    if(Se2.Fastrack_Work_Order__c != null)
                    {
                        System.debug('mapWorkOrder.get(se2.Fastrack_Work_Order__c).id'+mapWorkOrder.get(se2.Fastrack_Work_Order__c).id);
                         se2.Fastrack_Work_Order__c = mapWorkOrder.get(se2.Fastrack_Work_Order__c).id; 
                    }
                }


I am getting below error:
System.StringException: Invalid id: 23982178: External entry point
Hi All,

I am trying to output a date type of yyyy-MM-dd, not as a string. I can create the correctly formatted string and insert that into a set.
currentDate = Date.today().toStartofMonth(); // Outputs 2018-12-01 00:00:00

firstDayOfCurrentMonth = currentDate.addMonths(i).toStartofMonth();

String currentDateString = String.valueOf(firstDayOfCurrentMonth).removeEnd(' 00:00:00'); // Outputs 2018-12-01 as a string

However, the issue is converting that string back into the Date type using either .valueOf or .parse
Date.valueOf(currentDateString);
// Outputs 2018-12-01 00:00:00

Date.valueOf(currentDateString.removeEnd(' 00:00:00'))
// Outputs 2018-12-01 00:00:00

Date.parse(currentDateString)
// Throws error with Invalid Date : 2018-12-01

My question is, how can I convert the correctly formatted string back into the Date type?

Many thanks!!
 
Hi all,
How to add multiple charts for reports? Please help me.
Thanks 
Manju
Hi,
Created a datatable to update the multiple records but this is not supported on the Mobile. 

So I  am iterating a record edit form and want to change the status of selected records to active.
How can i get this done.
Thanks
Hello,
I have custom object Location__c and custom field on Account.SAP_BP_ID__c. The custom Object Location__c has fields AccountID__c and SAP_ID__c. Location__c will be populated via API in back ground. Location__c.AccountID__c has lookup relationship with Account. I need a trigger to update the AccountID__C on Location__c object with Account.ID whenever a new location is created. 
Update Location__c.AccountID__c where Location__c.SAP_BPID__c = Account.SAP_ID__c
and Location__c.AccountID__c has lookup relationship with Account (sorry to repeat)

Thanks
Dinesh
  • December 15, 2018
  • Like
  • 0
I am having a button in classic version which is a javascript button 
On click of that button it is picking the email template and send sending emails to that candidate automatically
I want to achieve this in lightning 
What is the procedure?
I have a trigger on the Account that looks into a Custom Metadata Type and if the User Id is there they are allowed to delete the record otherwise they receive an error message.

The trigger acts as expected in testing my problem is I do not understand how to write the test code.

Account Trigger:
trigger AccountTrigger2 on Account ( before delete) 
{
    Account_Trigger_Handler handler = new Account_Trigger_Handler();    
    if(Trigger.IsDelete)
    {
        handler.OnDelete_Account(Trigger.old);
        
    }//End if
}//End class
Trigger Handler:
public with sharing class Account_Trigger_Handler {

    public void OnDelete_Account(List<Account> acct)
    {
        //get user id for current user
        Id uid = UserInfo.getUserId();
        system.debug('User id : '+uid);
        //create a map to put in all the users who are authorized to delete
        Map<Id,Account_Delete_User__mdt> mapAcctDeleteUser = new Map<Id, Account_Delete_User__mdt>(); 
        //loop through the users who are authorized to delete and put them in the map we created just before this
        for(Account_Delete_User__mdt AcctDeleteUser : [SELECT id, UserId__c FROM Account_Delete_User__mdt])
        {
            mapAcctDeleteUser.put(AcctDeleteUser.Userid__c, AcctDeleteUser);
        }//end for
        
        //loop through the records in the trigger and see if the current user is authorized to delete.
        for(Account a: acct)
        {
            if(mapAcctDeleteUser.keyset().contains(uid)== false)
            {
            a.addError('You are not authorized to remove Accounts from Salesforce. Please email Salesforce.admin@XXXXX.net to have record removed.');
            }//end if
        }//end for           
     }//end method
  }
The following is the test class I have so far, but it gets the error: System.AsyncException: Metadata cannot be deployed from within a test

But I do not know how to fix:
@isTest
public class Account_Trigger_HandlerTest {
  
    public static testMethod void OnDelete_AccountTest()
    {
        Profile p2 = [SELECT id FROM Profile WHERE Name ='Standard User'];
        
        User usr2 = new User (LastName ='Boris',
                              FirstName ='Badenov',
                              Email = 'boris.badenov@bullwinkleshow.com',
                              Username = 'boris.badenov@bullwinkleshow.com',
                              Alias = 'boris',
                              Profileid = p2.Id,
                              TimeZoneSidKey ='GMT' ,
                              LanguageLocaleKey = 'en_US',
                              EmailEncodingKey = 'UTF-8',
                              LocaleSidKey = 'en_US');
        insert usr2;
    //---------------------------------------------------------------------
    //https://ashwanisoni.wordpress.com/2017/05/02/create-or-update-custom-metadata-type-via-apex-code-salesforce-summer-17/
        // Set up custom metadata to be created in the subscriber org.
    Metadata.CustomMetadata customMetadata =  new Metadata.CustomMetadata();
    customMetadata.fullName = 'Account_Delete_User';
    customMetadata.label = 'User';

    Metadata.CustomMetadataValue customField = new Metadata.CustomMetadataValue();
    customField.field = 'UserId__c';
    customField.value = usr2.id;

    customMetadata.values.add(customField);

    Metadata.DeployContainer mdContainer = new Metadata.DeployContainer();
    mdContainer.addMetadata(customMetadata);

    // Setup deploy callback, MyDeployCallback implements
    // the Metadata.DeployCallback interface (code for
    // this class not shown in this example)
    CustomMetadataCallback callback = new CustomMetadataCallback();

    // Enqueue custom metadata deployment
    // jobId is the deployment ID
    Id jobId = Metadata.Operations.enqueueDeployment(mdContainer, callback);
    //----------------------------------------------------------------------
        Profile p = [SELECT id FROM Profile WHERE Name ='Standard User'];
        
        User usr1 = new User (LastName ='Fatale',
                              FirstName ='Natasha',
                              Email = 'natasha.fatele@bullwinkleshow.com',
                              Username = 'natasha.fatele@bullwinkleshow.com',
                              Alias = 'natas',
                              Profileid = p.Id,
                              TimeZoneSidKey ='GMT' ,
                              LanguageLocaleKey = 'en_US',
                              EmailEncodingKey = 'UTF-8',
                              LocaleSidKey = 'en_US');
        insert usr1;
        Account acct2 = New Account(Name='Snagglepuss', Type='Prospect', SSN__c = '12385678', CreatedById = usr1.id);
        insert acct2;
        Test.startTest();
            Database.DeleteResult result = Database.delete(acct2,false);
            System.assert(!result.isSuccess());
        Test.stopTest();
        
        
    }
}
The following is the callback function that the test code references:
public class CustomMetadataCallback implements Metadata.DeployCallback {
    public void handleResult(Metadata.DeployResult result,
                             Metadata.DeployCallbackContext context) {
        if (result.status == Metadata.DeployStatus.Succeeded) {
            System.debug('success: '+ result);
        } else {
            // Deployment was not successful
            System.debug('fail: '+ result);
        }                       
    }
//https://ashwanisoni.wordpress.com/2017/05/02/create-or-update-custom-metadata-type-via-apex-code-salesforce-summer-17/  
}
I am just missing the boat on how to fix this.

Really would appreciate any help.

 
Hi 
Is it possible to get back the metadat of a deleted scratch org?
We currently have a custom report in Salesforce that we would like to schedule using a custom SOQL query to retrieve the same dataset that is retrieved using the custom report.
 
The custom report retrieves all the CPE Location records with or without Inventory Asset records.
 
We want to write a custom SOQL that performs the same function of retrieving all CPE Location with or without Inventory Assets. However, the SQOL query below in this email only retrieves ~63,136 records.
Could you assist me on why the SOQL query and the custom report are retrieving different datasets?

I am using the following custom objects for my SOQL query: CPE_Location__c and Inventory_Asset__c. The Inventory_Asset__c object has a custom field CPE_Location__c that is a look up to the CPE_Location__c object. There is no relationship to INventory_Asset__c object from CPE_Location__c object.

Here is the SOQL query that will replace the custom report mentioned above:

SELECT CPE_Location__r.CPE_Location_Record__c,CPE_Location__r.Name,CPE_Location__r.Account__r.Name,CPE_Location__r.CPE_Location_Type__c,CPE_Location__r.Virtual_Type__c,
CPE_Location__r.Legacy_Company__c,CPE_Location__r.Splice_Complete_Date__c,CPE_Location__r.On_Net_Date__c,CPE_Location__r.Location_Name__r.Name,CPE_Location__r.Location_Address__c,
CPE_Location__r.Location_City__c,CPE_Location__r.Location_State__c,CPE_Location__r.Location_Zip__c,CPE_Location__r.Latitude__c,CPE_Location__r.Longitude__c,CPE_Location__r.CPE_Location_Coordinates__c,
CPE_Location__r.CPE_Location_URL__c,
Inventory_Asset__c.Asset_Number__c,Inventory_Asset__c.Name,Inventory_Asset__c.Condition__c,
Inventory_Date__c,Scan_Date__c,Inventory_Product_Details__c,Placed_in_Service_Date__c,PO_Number__c,Project__c,RFID_Tag__c,RMA_Number__c,
Serial_Number__c,Vendor__c,Warranty__c,Treatment__c
from Inventory_Asset__c where 
CPE_Location__r.Division__c != 'Uniti Leasing' AND
CPE_Location__r.CPE_Location_Type__c != 'Virtual' AND
ORDER BY CPE_Location__r.CPE_Location_Status__c ASC

Thank you in advance.

Arvind Mahadevan.
So when ever the users manager changes i need to update all the opportunities that are associated with that user how do i accomplish this. I used process builder but it is not updating the records
  • April 22, 2019
  • Like
  • 0
hello everyone,
We have a Lightning Web Component with 3 Comboboxes. I built out the first one using the code from the Lighting Web Component resource page and it works great. I then copied and pasted the code (while changing the value names and labels as to not cause an error)  but the two new Combo Boxes arent working. when selecting a value the ComboBox returns a null value rather than the initial ' ' value and doesnt select the value I wanted to select. 
I need to create Multiple Child Records from Parent Related List but i get the Error: "URL No Longer Exists" but the data saved in the database. Also, it seem that the Parent Id does not populate autonmatically so, i have to add it manually. I want to notice that I add the child page as a related list of the parent. The Parent Obejct is Devery__c, the child is Item_Distributed__c Here is my code:
public class AddOrderItem {

    public String Delivery { get; set; }
Id DeliveryId;
public List<Item_Distributed__c> listOrderItem {get;set;}
public Integer rowNum{get;set;}

public AddOrderItem(ApexPages.StandardController controller){
   Id OrderItemId = ApexPages.currentPage().getParameters().get('OrderItemId');
    DeliveryId=ApexPages.currentPage().getParameters().get('DeliveryId');
    listOrderItem = new List<Item_Distributed__c>();
    listOrderItem.add(new Item_Distributed__c());

}

public pagereference insertOrderItem(){
    insert listOrderItem;
    Pagereference page=new pagereference('/'+DeliveryId);
    Return page;
}

public void insertRow(){
    listOrderItem.add(new Item_Distributed__c());
}

public void delRow(){
    rowNum = 
Integer.valueof(apexpages.currentpage().getparameters().get('index'));
    listOrderItem.remove(rowNum);
}
}

//VF Page

<apex:page StandardController="Delivery__c"  Extensions="AddOrderItem" showHeader="false" sidebar="false" >
<apex:form >
    <apex:variable var="rowNum" value="{!0}" />
    <apex:pageBlock >
        <apex:variable var="rowNum" value="{!0}" />
        <apex:PageBlockTable value="{!listOrderItem}" var="int">
        <apex:facet name="footer">
            <apex:commandLink value="Add" action="{!insertRow}"/>
            </apex:facet>
            <apex:column headerValue="Quantity">
                <apex:inputField value="{!int.Quantity__c}"/>                                      
            </apex:column>
            <apex:column headerValue="Product">
            <apex:inputField value="{!int.Product__c}"/> 
            </apex:column>
         <apex:column headerValue="Product">
            <apex:inputField value="{!int.Delivery__c}"/> 
            </apex:column>  
             <apex:column headerValue="Delete">
            <apex:commandLink style="font-size:15px; font-weight:bold; text-align:center;color:red;" value="X" action="{!delRow}">
                <apex:param value="{!rowNum}" name="index"/>
                </apex:commandLink>
                <apex:variable var="rowNum" value="{!rowNum+1}"/>
            </apex:column>
        </apex:PageBlockTable>
    <apex:pageBlockButtons >
        <apex:commandButton value="Save" action="{!insertOrderItem}"/>
        </apex:pageBlockButtons>
    </apex:pageBlock>

  </apex:form>
</apex:page>

User-added image
Hi Everyone,

Please help me on fixing this error in my test class.

@istest
    public static void processMap(){
     String s = '{"insurances":[{"insurancepolicyholdercountrycode":"USA","insuranceplanname":"ARROHEALTH","insurancetype":"Other","insurancepolicyholderlastname":"WHITE","insurancephone":"(855) 651-1890","insuredentitytypeid":1,"relationshiptoinsuredid":1,"insuranceid":"22928","casepolicytypename":"Contracts","insurancepolicyholder":"SKYLAR WHITE","relationshiptoinsured":"Self","eligibilitystatus":"Unverified","insurancepolicyholderfirstname":"SKYLAR","insurancepackageid":455702,"insurancepolicyholdersex":"F","insurancepolicyholdercountryiso3166":"US","ircname":"Corporate Billing"}],"count":7}';
      Account a = new Account(Name = 'Test'+  Date.Today());
        insert a;
        
        Map<Account,String> m_aS = new Map<account,String>();
        m_as.put(a,s);
        
        Eligibility.processresponseMap(m_as);
        
    }

Class: 
@TestVisible
    private static Map<Account, List<Insurance_eligibility__c>> processresponseMap(Map<Account, String> m_accountResponse){
        
       Map<Account, List<Insurance_eligibility__c>> m_accountsToInsurances = new Map<Account, List<Insurance_eligibility__c>>();
        
        for(Account a: m_accountResponse.keyset()){
           if(m_accountResponse.get(a) != null){
               string response =  m_accountResponse.get(a);
               EligibilityWrapper ew = new EligibilityWrapper().parse(response);
               //Parse the wrapper/response for this account and generate the eligibility records
               if(ew != null){
                   List<Insurance_eligibility__c>  l_tempIe = Eligibility.createEligibilityRecords(a, ew);
                   Account aUpdated = updateEligibilityOnAccount(a, l_tempIe);
                   m_accountsToInsurances.put(aUpdated,l_tempIe);
               }
            }
        }
        return m_accountsToInsurances;
    }

Appreciate your quick response.
Thank you!
Hi I need write the wrapper class for displaying the list of file documents in Vf page for case object. on click of selecting the checkbok  of the particular file record on the VF page, email has to send along with the file document(file frome file object) attached with the emaile. note:I am not refereing notes and attachment 
Two same checkbox fields used in Account and in  Account related VF page but in vf page the checkbox field is disabled. It is enabled in Account page. But the requirement is in Vf page page it should be enabled. 

i've removed the disabled = true, but if i check box the value and tried to save the record it is not saving the value. I think i'm missing some where else, couldyou please help me in this requirement.
Hi Team,

I have 2 created custom field start date and end date ..
if opportunity stage is created . start date need to be createddate+5 and end date need to be created date +30
If  opportunity stage is created . start date need to be createddate+10 an end date need to be created date +40
If opportunity stage is created . start date need to be createddate+15 and end date need to be created date +50
Opportunity stages contains
Created
Contacted 
Sent for approval.

Need to design these using floflofs
We would like to see which records have an attachment attached from the list view.  To do this, we created a checkbox field HasAttachment, default unchecked, and the following trigger.  If the Expense custom object record has an attachment, then the HasAttachment field should update to TRUE.  We tested this trigger through 'Upload File' under the Notes and Attachments related list, however, the HasAttachment field remains unchecked.
 
trigger AttachmentonExpense on Attachment (after insert) 
{
Set setParentId = new Set();
List Expenselst = new List();

for(Attachment att: Trigger.new)
{
setParentId.add(att.ParentId);
}

Expenselst = [select Id , HasAttachment__c from Expense__c where Id IN :setParentId];

For(Expense__c e : Expenselst)
{
e.HasAttachment__c = True;
}

update Expenselst;
}

 
I am getting the above error for my code below. Can someone please explain what the issue might be ?



<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId">
    <aura:attribute name="buttonlabel1" type="String" default="Search Button"/>
    <aura:attribute name="buttonlabel2" type="String" default="New Button"/>
    <aura:attribute name="isNewAvailable" type="Boolean" default="false"/>
    
    <aura:attribute name="carTypes" type="String[]" default="['Hatchback','Sedan','Sports','SUV']"/>
    
    <lightning:layout horizontalAlign="center">
        <lightning:layoutItem padding="around-medium">
            <lightning:select name="selectItem" aura:id = "carType" label="Select Car Type" variant="label-hidden" class="label-hidden" value="1">
                 <option value ="1" text = "All Types"/>
                <aura:iteration items="{!v.carTypes}" var="carType">                    
                    <option value ="{!v.carType}" text="{!v.carType}"/>
                </aura:iteration>           
            </lightning:select>           
        </lightning:layoutItem>      
        
        <lightning:layoutItem padding="around-medium">
            <lightning:button label="{!v.buttonlabel1}" variant="brand"/>       
            <!-- display new button on availibility-->
            <aura:if isTrue="{!v.isNewAvailable}">
                <lightning:button label = "{!v.buttonlabel2}" variant="neutral"/>
                <aura:set attribute = "else">
                    New Button cannot be added here
                </aura:set>
            </aura:if>
            
            
        </lightning:layoutItem>        
    </lightning:layout>
</aura:component>

 
Hi ,

we are writting Batchapex and schedule apex programs in developer console and we are executing this batch apex and scheduleapex programs using Debug(open Execute Anonymous window).
But in real time project where we can Execute this programs please tell me answer if you know.

Thanks
Surender
 
Hello,

I'd really appreciate some help. Our instance migration is happening this weekend. I've tried using Eclipse with Force.com IDE to find our hard-coded references, and have followed the instructions here https://help.salesforce.com/articleView?id=000230820&language=en_US&type=1
however, every time I search, I get zero results. Where am I going wrong??

I really need some help. I don't understand why this is happening when I've followed the instructions?

Thanks
Question, does record view form in communities only work if the user is logged into Salesforce? I can't seem to get my output fields to display for a guest user. I have a guest profile set up with read access on this object and the fields yet on the community he's unable to see the output fields. There is a sharing rule for the guest profile to have access to these objects. 
Hi All,
my requirement is to count the % of quality score when a new account is inserted or updated Account.
i created a map According to record type .And inside it a map for fields and thier scoring.but its not calculating the value of Quality score.
Can you help me out with this trigger?
public without sharing class AccountTriggerHelper {
    public static List<Account> newAccount = new List<Account>();
    public static List<Account> oldAccount = new List<Account>();
    public static Map<Id, Account> newMapAccount = new Map<Id, Account>();
    public static Map<Id, Account> oldMapAccount = new Map<Id, Account>();
    
    public static boolean runTrigger = TRUE;
    
    public static Map<String, Map<String, Integer>> mapRecordTypeToScores = new Map<String, Map<String, Integer>> {
        
        'Cachet' => new Map<String, Integer> {
                        'ACH_Provider__c' => 5,
                        'Payroll_Software__c' => 3, 
                        'HR_Software__c' => 3,
                        'Payroll_Tax_Processor__c' => 3,
                        'Current_Bank__c' =>  3,
                        'Payroll_Business_Consultant__c' => 2,
                        'Time_Attendance__c' => 2,
                        'CPA_Accounting_Firm__c' => 2
                     },
       'Time_Rack' =>  new Map<String, Integer> {
                        'Time_Attendance__c' => 5,
                        'CPA_Accounting_Firm__c' => 3,
                        'Payroll_Software__c' => 3,
                        'Current_Bank__c' =>  3,    
                        'HR_Software__c' => 3,
                        'Payroll_Business_Consultant__c' => 2,
                        'ACH_Provider__c' => 2,
                        'Payroll_Tax_Processor__c' => 2
                      },          
       'PTM' => new Map<String, Integer> {
                        'Payroll_Tax_Processor__c' => 5,
                        'ACH_Provider__c' => 3,
                        'Payroll_Software__c' => 3,
                        'Current_Bank__c' =>  3,
                        'Payroll_Business_Consultant__c' => 2,
                        'Time_Attendance__c' => 2,
                        'HR_Software__c' => 2,
                        'CPA_Accounting_Firm__c' => 2
                    },
       'SBS' => new Map<String, Integer> {
                        'Payroll_Software__c' => 5,
                        'ACH_Provider__c' => 3,
                        'Payroll_Tax_Processor__c' => 3,
                        'Current_Bank__c' =>  3,
                        'Time_Attendance__c' => 3,
                        'Payroll_Business_Consultant__c' => 2,
                        'HR_Software__c' => 2,
                        'CPA_Accounting_Firm__c' => 2
                    }               
    };
         
    //To update Quality Score Field on Account 
    public static void updateQualityScore(){
        //Map<ID,Schema.RecordTypeInfo> rt_Map = Account.sObjectType.getDescribe().getRecordTypeInfosById();
        // List<Account> accListToUpdate = new List<Account>();
         for(Account acc : newAccount){
            //Integer fieldValue = 0;
             Integer totalScoreAchieved = 0;
            Integer totalScorePossible = 0;
            
            String recordTypeDeveloperName = acc.RecordType.developerName;
            if( recordTypeDeveloperName != null ) {
                
                Map<String, Integer> mapFieldAPINameToScore = mapRecordTypeToScores.get( recordTypeDeveloperName );
                
                totalScoreAchieved = 0;
                
                if( mapFieldAPINameToScore != null ) {
                 
                    for( String fieldAPIName : mapFieldAPINameToScore.keySet() ) {
                        Object fieldValue = acc.get( fieldAPIName );
                        Integer scoreForTheField = mapFieldAPINameToScore.get( fieldAPIName );
                        totalScorePossible += scoreForTheField;
                        if( fieldValue != null && String.valueOf( fieldValue ) != 'Other' ) {
                            totalScoreAchieved += scoreForTheField;
                         }
                    }
                }

                if( totalScorePossible > 0 ) {
                    acc.Quality_Score__c = ( totalScoreAchieved * 100 ) / totalScorePossible;   
                }
                //accListToUpdate.add( acc );
            }
        }
       // update accListToUpdate;
    }
what i am missing in it?
Any suggestions?
We need a trigger on the asset object on update to check all assets.

 If on ALL Assets belonging to product family = "360 Suite" had their  Status = "Canceled" , then on Account, update the 360 Account stage (API Name = Account_Status__c )  to "Cancel".

please if anyone can help with this one I would be so grateful

Apparently converting a Lead is a very prolific action, it creates an Opportunity, an Account, a Contact, and a Task within the Account.

Ideally I'd like to:
- have it ONLY create the Opportunity/Task
- assign an existing account by ID and NOT create a new Account at all
- not create a new Contact at all

Is Process Builder my only hope here? And if so how would that be done? Thanks

Certified Salesforce Admin & Developer with hands-on experience in Apex classes, triggers, visual force pages & lighting concepts. Looking for contract/ full-time job. Ready to join immediately and relocate anywhere in the United States. Authorized to work for any employer in the USA. 
Please reach out to me at mahidhar.akarapu@gmail.com.
 
We're looking for a Salesforce developer to oversee the development and administration of our Salesforce instance.
Ideally, you're an independent Salesforce contractor who can contribute about 20h/week on a long term basis, enjoy working remotely and collaborate well with distributed team.
  • Salesforce Admin and Dev certified
  • Minimum 3 years of Salesforce application development
  • Experience with integration of systems and 3rd party apps within Salesforce
  • Experience with Marketo a plus
  • Knowledge of SFDC governor limits and guidelines
  • Experience working in an Agile or SCRUM environment
  • Ability to communicate technical recommendations to non-technical stakeholders 
  • Able to work remotely within PST business hours.
The role will involve:
  • Developing customized solutions with the Salesforce platform to support critical business functions
  • Managing daily support and maintenance of internal Salesforce instance, and conduct longer-term improvement operations to ensure compatibility with evolving mission requirements
  • Communicating with project managers, clients and other developers to design cohesive project strategies and ensure effective collaboration throughout all phases of development, testing and deployment
  • Maintaining a flexible and proactive work environment, to facilitate a quick response to changing project requirements and customer objectives
  • Interacting with clients, managers and end users as necessary to analyse project objectives and capability requirements, including specifications for user interfaces, customized applications and interactions with internal Salesforce instances

The successful candidate will have experience in the following key areas:
  • APEX Experience
  • Visualforce and Salesforce.com platform experience]
  • SQL experience
  • Experience developing customer -facing user interfaces
  • C# or Node.js development experience on cloud platforms
  • Understanding of JSON and XML Schema Documents
  • Unit and integration testing

If you have experience with Salesforce development standard capabilities SFDC then this will be highly desirable.
Looking for qualified Salesforce Developer: https://bit.ly/2OWJ2jt 

Great culture, fast-paced environment with a chance to make a real impact!  Higher education experience is a plus.  
Hi Everyone :)

I am working with multiple companies that are looking for Salesforce Developers in Berlin and Munich.
 
One company is an award-winning E-Commerce company who are looking for mid-level and senior developers to help build a unique solution for their global management software. They provide opportunities to enhance knowledge on how to create UI components, programs and APIs using the latest platform features including lightning.
 
The company provides complete relocation support including accommodation, documentation, and visa sponsorship (if required).
 
The right candidate can earn up to €80,000 here, based on languages, seniority and experience.
If you are open to hearing more, let me know and we can connect

adam.slade@darwinrecruitment.com
https://www.linkedin.com/in/adammichaelslade/ 
Salesfroce Developer position in Atlanta with an excellent organization.

Short term Contract:  https://jobs.crelate.com/portal/perspectivetalent/job/jylxidbscej-335516

Permenent Role with little to no travel : https://jobs.crelate.com/portal/perspectivetalent/job/aoqeogoxqc1-441892
Excellent work / life balance - 35 hour work week
Free medical and dental
8% contribution to 401K
Family oriented work environment