• mahesh1.396434879374128E12
  • NEWBIE
  • 20 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 19
    Replies
How to "Add Domain" in 'Domain(SetUp--> Domain Management-->Domain--> Add Domain--> Domain Name).

When i am trying to Add Domain.  I am getting the below error

Error: Salesforce.com can't validate the domain. The CNAME record may still be processing (which can take up to 24 hours), or the domain may not belong to you. Make sure the domain name rewards.mahesh.com uses rewards.mahesh.com.00xx0000000xxxxmau.live.siteforce.com as its CNAME target and try again later.

can anyone suggest me in this issue.

Note : This is not related to site Domain.
I want ro replace the standard salesforce favicon with image which saved in the Static Resource.

Thanks in Advance.
Hi,

Here is my requirement.

When i enter my domain Like "ww.abc.com"  in the Url of a browser. then it should redirect to the force.com site Url like "newdeveloper.force.com" site created in salesforce. but in the url it should show me as "www.abc.com".
the mapping should be done in back-end.

Please help me in this issue.

Thanks in Advance/
When i am tring to bulkify this trigger i am getting this error:

When a new case is created, the externalId value is equal to Product external Id. Th product id value shoul map to the Product__c Custom field in case.


The code:

trigger CreateReqMapProdId on Case (Before Insert)
{  
    list<string> lstExteralId = New list<string>();
    if(trigger.isInsert)
        {  
            for(Case ca : trigger.new)
            {
                lstExteralId.add(ca.ProductExteralId__c);
            }
            Map<Id, Product2> ProdMap = new Map<Id, Product2>([select id,PSCSID__c from Product2]);
                for(Case ca : trigger.new)
                        {  
                            for(Product2 prod : ProdMap.values())
                            {
                            If(ca.ProductExteralId__c != null)
                            {
                               If(ca.ProductExteralId__c == Prod.PSCSID__c)
                                {
                                    ca.Product__c = Prod.Id ;
                                }
                            }
                                                     
                        }
                   
        }
}}


Please help me.
 
I wrote code for it but it throwing Error : first error: DUPLICATE_VALUE, duplicate value found: duplicates value on record with id


Here is the Code :

trigger marketingCms on Campaign (After Insert) {

List<MarketingCMS__c> cust_Mcms =MarketingCMS__c.getAll().Values();
system.debug('*********cust_Mcms **********'+cust_Mcms);                       
set<ID> cam_Set = New set<ID>(); 
RecordType RT=[SELECT Id,Name FROM RecordType WHERE sobjectType='Campaign' AND Name = 'Marketing Campaign'];
List<CampaignMemberStatus> cms2Delete = new List<CampaignMemberStatus>();
List<CampaignMemberStatus> cms2Insert = new List<CampaignMemberStatus>();  
if(trigger.isafter)  {                     
for(Campaign vCam : trigger.new)
{
    if((RT.name=='Marketing Campaign')&&(vCam.type!=null))
    {
    cam_Set.add(vCam.Id);
    CampaignMemberStatus CMSt ;
    for(MarketingCMS__c Mcm : cust_Mcms )
        {
    CMSt = New CampaignMemberStatus();
                CMSt.CampaignId = vCam.id;
                CMSt.HasResponded = Mcm.Responded__c;
                CMSt.IsDefault = Mcm.IsDefault__c ;
                CMSt.Label = Mcm.Label__c;
                CMSt.SortOrder = integer.valueOf(Mcm.SortOrder__c);
                cms2Insert.add(CMSt);
        }
    }
}
for(CampaignMemberStatus cm : [select Id, Label, CampaignId from CampaignMemberStatus where CampaignId IN :cam_Set])
    {
    if(cm.Label == 'Sent' || cm.Label == 'Responded')
         {           
            cms2Delete.add(cm);
         }
    }
    database.Delete(cms2Delete);
         
    database.Insert(cms2Insert);
}
}


Thanks In Advance.Please help me in this issue.

I am having a static resource which consists of a text file. I want to show the text on the Visual Force page.
When the ListPrice(Field in OpportunityLineItem)  value is changed(Suppose $100 is changed to $150). then create a Task to Opportunity Owner.stating that ListPrice is changed Please review the SalesPrice.


Note: ListPrice value in OpportunityLineItem is changed only when we change the value  PriceBookEntry.