Skip to main content

#You Owe Me a Beer0 utenti parlano di questo argomento

Hello!  Hoping for some good ideas on improved reporting.  Background:  We create a case for a opportunity.  That case could have 4 to 6 product solutions (out of about 35 options) that we work.  Goal: I need a report showing all my cases by product solution.  Another words, product A is used 10 times, product B is used 20 times, product C is used 5 times, product D is used 25 times etc etc.  Then shows the opportunity tied to each of those products.... the same opp can appear in 4 to 6 product solutions. Please see my attached. Any guidance is appreciated!!  Thank you so much!

0/9000

Hi Trailblazers!

 

Any one know how to convert Date to Date and time.

Basically, I am collecting date from screen flow and populating that to Date and time field but due to user time zone and DST, date is not populated properly. Hence, I want to get date from screen flow and update that to date & 12 AM in the date and time field in salesforce.

 

#You Owe Me a Beer

1 risposta
0/9000

Hi Trailblazers! Anyone know how to change a record type based on criteria (perhaps a formula)? For example, I have created an Account record type where all fields are read-only based on Page Layout. I would like an Account to automatically convert to this record type when a custom checkbox field "Inactive" is checked. Thanks in advance for the help!

6 commenti
0/9000

Hi everyone, 

I'm looking for some assistance with finding a date "THIS MONTH" in a formula checkbox field. 

I have a field where the box needs to be checked on a contract object if the auto renewal term = 1 AND the contract end date is less than or equal to "THIS MONTH". My current formula I have is:

 

AND(AutoRenewalTerm__c = 1,

MONTH(EndDate) <= MONTH(TODAY()), true)

 

It's checking the box if the auto renewal term = 1 regardless of the date. What am I missing in the formula to capture the contract end date is less than or equal to this month? 

4 commenti
0/9000

I am getting a compile error (too big) for this formula. Any suggestions?

 

IF( AND( Product_Category_Value__r.Name = "Bathroom & Other Sinks", Trade__c<>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "Cabinets",Manufacturer__c <>"", Trade__c <>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "Carpet",Manufacturer__c <>"", Trade__c <>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "Electrical Load Center",Manufacturer__c <>"", Trade__c <>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "Faucets",Manufacturer__c <>"", Trade__c <>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "HVAC",Manufacturer__c <>"", Brand_Usage_Account__c <>"",Trade__c <>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "Kitchen Appliances",Manufacturer__c <>"", Brand_Usage_Account__c <>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "Laundry Appliances",Manufacturer__c <>"", Brand_Usage_Account__c <>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "Tankless Water Heaters",Manufacturer__c <>"", Trade__c <>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "Toilets",Manufacturer__c <>"", Trade__c <>""),"Complete",

IF( AND( Product_Category_Value__r.Name = "Water Heaters",Manufacturer__c <>"", Trade__c <>""),"Complete",

IF( Manufacturer__c<>"","Complete","Not Complete"))))))))))))

5 commenti
0/9000

Good morning Salesforce Gurus,

I need assistance with creating a formula. Every attempt I make results in a syntax error. This is what I am trying to do.

I want to update the formula for the following field called "B"

 

If A>0 then B = A, else if C >0 and D within 90 days then B = C, else B = null

 

Help!

12 commenti
0/9000

I have a requirement that is probably best made into a process builder. But I've been given the requirement to make it a formula field. I don't know how to do it. 

 

The requirement: Contact object has two fields Preferred phone (pick list) with options for "Home", "Work" "Mobile" & "Other". The other fields are those corresponding values. 

 

The other object is called Referral__c. There is a field for prefered phone number that needs to populate whatever is on the contact. 

 

I need an IF (or something) statement to check whatever is selected on npe01__PreferredPhone__c THEN pull that phone number from the individual field it's housed in and populate it on my field in the referral object. 

 

I hope this makes some sort of sense. I've googled around and haven't really seen anything that I can build off off myself and don't really have that much time to get it done before delivery day.  I've never been great at IF statements let alone nested ones. 

 

Thank you in advance to anyone willing to take a crack at this. 

7 commenti
0/9000

I've been staring at this too long, trying to get rid of all the syntax errors, and now I can't tell what's causing me problems!  Help!  

 

I need to define if an opportunity is new or existing business, based on when last purchases were made.  If an account has never purchased anything they're considered "white space" and will always be new.  If their last PACS purchase was more than 5 years (using 1826 days), then when they create a PACS opportunity it should be considered new.  If their last MS purchase was more than 5 years ago, then when they create a DR or WH opportunity it should be considered new.  Otherwise, if none of these conditions apply, then it's an existing customer.  

 

Here's what I've got:  

 

IF( 

OR(Account.White_Space__c = "Yes"), 

(AND( IsPickval(Opportunity_Type__c = "Synapse PACS"), ( CreatedDate -  Account.Last_PACS_Purchase__c > 1826))),

(AND( IsPickval(Opportunity_Type__c = "DR"), (CreatedDate -   Account.Last_MS_Purchase__c  > 1826))),

(AND( IsPickval(Opportunity_Type__c = "WH"), (CreatedDate -  Account.Last_MS_Purchase__c > 1826))),

"New", "Existing")

 

Here's the error I'm getting:  Error: Field Opportunity_Type__c is a picklist field. Picklist fields are only supported in certain functions.

 

I can't see any restrictions on picklist fields that would prevent me from using them in a formula like this.  What am I missing?  

5 commenti
0/9000

@Steve Molis Given your wizardry with formula fields I'm wondering you have any tricks up your sleeve that will help me "automate" some monthly reports.  We report out on Rest of Year (ROY) which is the 1st day of the current month through 12/31/2018.  I'd like to create a formula for reporting that I can use as a filter that will automatically "advance" the dates to the 1st of a new month.  So right now our reports are hard coded with 3/1/2018 - 12/31/2018 on close date of opportunity, when April hits I will go in and manually advance the starting date to 4/1/2018.  Can a formula do this for me?  Thanks!

6 commenti
0/9000

Hi there, hope someone can help me. We have a contact type called "Agent". We would like to be able to run a report of all contacts with "agent" as contact type and for each contact should be indicated whether there is an open task related to that contact or not. How can I achieve that? Many thanks!

 

@* Sales Cloud - Getting Started *

5 commenti
0/9000