In saved search "Formula (Text)" example of: if Fo...
# ask-stanley-ai
s
In saved search "Formula (Text)" example of: if Foo = YES then "AAA" Else "BBB"
c
AI generated answer (using internal Slack threads):
Based on the conversations provided, it seems like you're looking for a way to create a formula in a saved search that will return a specific value based on a condition. In NetSuite, you can use the
CASE WHEN
statement in your formula to achieve this. Here's an example based on your request:
Copy code
CASE WHEN {foo}='YES' THEN 'AAA' ELSE 'BBB' END
In this formula,
{foo}
is the field you're checking. If the value of
{foo}
is 'YES', then the formula will return 'AAA'. If the value of
{foo}
is not 'YES', then the formula will return 'BBB'. ****** 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.859920561
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.850162148
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848975301
Please provide your feedback on this answer.