text formula to compare the name field to the reco...
# ask-stanley-ai
i
text formula to compare the name field to the records name
c
AI generated answer (using internal Slack threads):
To compare two free form text fields in NetSuite, you can use a formula in your saved search. The formula would look something like this:
Copy code
CASE WHEN {field1} = {field2} THEN 'Yes' ELSE 'No' END
This formula will compare the values of
field1
and
field2
. If the values are the same, it will return 'Yes'. If the values are different, it will return 'No'. If you want to compare the length of two fields, you can use the following formula:
Copy code
LENGTH({field1}) - LENGTH({field2})
This formula will return the difference in length between
field1
and
field2
. If you need to check if a text area contains the name of the current user, you can use a formula like this:
Copy code
CASE WHEN {text_area_internal_id} LIKE '%{user’s_name}%' THEN 1 ELSE 0 END
In this formula, replace
user’s_name
with the appropriate field or value that represents the current user's name. You can use the 'current user' join to access the current user's name. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826071322
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822148681
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813221276
Please provide your feedback on this answer.