• Somya Srivastava
  • NEWBIE
  • 30 Points
  • Member since 2018


  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 10
    Replies
Can you please help on below criteria.

1) A picklist showing values 2011, 2012 and 2013
2) 2 Date fields (From Date and To Date)
3) When user picks the value in 1st picklist, From and To Date should automatically populate.
Ex: If I select 2011, From Date should be 01/01/2011 and End ddate should be 12/31/2011 automatically populate
If I select 2012, From Date should be 01/01/2012 and End ddate should be 12/31/2012 automatically populate

I have picklist as Year__c

Below formula has been given in From Date filed.

CASE(Year__c, 
2011 , DATE(2011,01,01) , 
2012, DATE(2012,01,01),
DATE(2013,01,01)


Getting error as "Error: Field Year__c may not be used in this type of formula"

Thanks In Advance
Can you please help on below criteria.

1) A picklist showing values 2011, 2012 and 2013
2) 2 Date fields (From Date and To Date)
3) When user picks the value in 1st picklist, From and To Date should automatically populate.
Ex: If I select 2011, From Date should be 01/01/2011 and End ddate should be 12/31/2011 automatically populate
If I select 2012, From Date should be 01/01/2012 and End ddate should be 12/31/2012 automatically populate

I have picklist as Year__c

Below formula has been given in From Date filed.

CASE(Year__c, 
2011 , DATE(2011,01,01) , 
2012, DATE(2012,01,01),
DATE(2013,01,01)


Getting error as "Error: Field Year__c may not be used in this type of formula"

Thanks In Advance
Can you please help on below criteria.

1) A picklist showing values 2011, 2012 and 2013
2) 2 Date fields (From Date and To Date)
3) When user picks the value in 1st picklist, From and To Date should automatically populate.
Ex: If I select 2011, From Date should be 01/01/2011 and End ddate should be 12/31/2011 automatically populate
If I select 2012, From Date should be 01/01/2012 and End ddate should be 12/31/2012 automatically populate

Thanks In Advance
Hi,

Why this error getting?

Ensure that you have moved Cases and Accounts to the correct columns

User-added image

User-added image

Regards,
LinThaw
 
Hello All,

I have a custom javascript Button on OPPORTUNITY called SendEmail. I want to select my email template based on user's region. For example if user is from Germany ,german email template to be selected and if user region is USA ,english template to be selected. I am not sure how to achieve this and
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/33.0/apex.js")}

if('{!Opportunity.Id}' != null){
	if('{!Opportunity.SendEmail__c}' = true){
		//I need to select an email template based on user's region
	}
}

 which field to take into consideration from user object. Can someone please help me to achieve this.

Thanks
I got the following error on the second question in the above mentioned superbadge.
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: EBBHWBTH
I used a fresh new developer org , after getting similar error in new trailhead playground org.
I really wonder why salesforce keep on realeasing new superbadge while the debug on error throwing is so bad, feeling very bad about the superbadge experience error notification of salesforce.
Thanks,
Shiva RV