I am quite new to salesforce
There is a field called "Hard Construction Cost" which is Currency type value.
Then there is another fields called "Hard Construction Cost per sqft" which is Currency type and "Max GBA" which is a number type
The field "Hard Construction Cost" needs to be updated like this : max GBA * "Hard Construction Cost"
but the workflow rule isnt work..
any idea why??
If that field doesn't require user input and is only calculated field then instead of workflow you can use formula field.
Create a formula field with name Hard Construction Cost
your formula will be
Hard_Construction_Cost_per_sqft__c * max_GBA__c
I need to create a formula field based on another picklist Field.Based on the value available in picklist need to populate same value in formula field.Here in picklist field contains 30values.Please suggest how to implement this
Try this
TEXT(Picklist field API Name)
Or Check this
https://help.salesforce.com/articleView?err=1&id=tips_for_using_picklist_formula_fields.htm&type=5
How can i highlight a specif term in a specif field?
For example, imagine the following query:
foo TITLE("bar")
, what i want to achieve is the highlight of foo in all fields and bar only in the field TITLE.
Until now the following has not worked:
q=<TITLE_field_internal_name>:"bar"hl.fl=&&hl.requireFieldMatch=true
Note: In the above example TITLE is re-mapped correctly to a solr field.
Most highlighting parameters supports the per-field parameter syntax:
f.TITLE.hl.<parameter>
Seeing as your syntax isn't valid Solr syntax and there is no way it'll know that TITLE("bar") refers to a field named TITLE, you'll have to extract that (or provide) that metadata yourself.
If you're querying different fields and only want to highlight the terms hit in those fields (i.e. if your query had been title:bar to only search for bar in the field title), you don't have to use per field settings, but can set hl.requireFieldMatch to true instead.
By default, false, all query terms will be highlighted for each field to be highlighted (hl.fl) no matter what fields the parsed query refer to. If set to true, only query terms aligning with the field being highlighted will in turn be highlighted.
Note: if the query references fields different from the field being highlighted and they have different text analysis, the query may not highlight query terms it should have and vice versa. The analysis used is that of the field being highlighted (hl.fl), not the query fields.
Finally, after much trial and error, i managed to have this thing working Here are a few snippets:
fq=(_query_:"{!edismax+qf%3D'container_title_en'+v%3D'hormones'}"+OR+_query_:"{!edismax+qf%3D$fqf+v%3D'cancer'}")
fqf=authors_tnss+etc+etc+...
hl.q=(_query_:"{!edismax+qf%3D'container_title_en'+v%3D'hormones'}"+OR+_query_:"{!edismax+qf%3D$fqf+v%3D'cancer'}")
hl.fl=id,external_id_s,etc,etc,...
hl.requireFieldMatch=true
, notice that if hl.fl fields are separated by , and in my custom fqf field in fq they are separated by +.
I have a local SOLR server with some entries that have a field "debaTest": "" while some entries don't have this field at all.
Is there a way in Solr to filter out the entries that have this field? the value for the field will always be null or empty.
Please note: Something in the lines of q=-debaTest:[* TO *] or
-debaTest:* won't work for my requirement as this returns the entries that don't have these fields at all and I want the entries that have this field but without a value.
How can I change this query to find only records with numeric value of telephoneNumber attribute?
(&(objectClass=user)(telephoneNumber=*)(MemberOf=CN=Users,OU=Groups,DC=domain,DC=local))"
I have to be sure that this field contains only digits.
You can't do that with an LDAP filter.
You may however be able to constrain the attribute, so that non-numerical never get in there in the first place.