Skip to main content
Glenn Nyhan (Samaritan House) 님이 Lookup Helper에 질문했습니다

Hello, I'm new to Lookup Helper and starting to use their tutorials to learn how to use the application. I just started the Easily Monitor Inventory in Salesforce With an Inventory Level Object tutorial which has you create a formula field called Amount in a custom object called Part. The formula is IF(Amount__c > 20, "High", IF(Amount__c > 10, "Medium", "Low") )  but when I check the syntax I get the following error message - Error: Incorrect parameter type for operator '>'. Expected Text, received Number. Seems strange they would publish this tutorial with a wrong formula. Can anyone tell me what's wrong with this formula? Thanks in advance for any help.

답변 1개
  1. 2023년 1월 16일 오후 2:48

    Hello Glenn,

     

    It sounds like you have the Amount field set to a text value data type when it should be number in order to do the comparison with a > operator.

     

    You can use the value function in the formula if you would like to convert a text value to a number value without having to change the data type of the field like:

    Value(Amount)

     

    https://help.salesforce.com/s/articleView?id=sf.customize_functions_value.htm&type=5

0/9000