how to sort a financial report to LAST DATE MODIFI...
# ask-stanley-ai
m
how to sort a financial report to LAST DATE MODIFIED?
c
AI generated answer (using internal Slack threads):
To sort a financial report by the last date modified, you would typically need to use a custom formula field. However, in NetSuite, reports do not have the same flexibility as saved searches, and you cannot directly sort by a custom formula field in a report. In the context of a saved search, you could add the formula into the 'Sort By' field in the results subtab of the search. But for a report, this option is not available. For REST API + NetSuite, if you're getting only the date in the date/time fields and you want to sort by lastModifiedDate or createdDate, you can use the
to_char
function to convert the date to a format you find convenient. Then, use a different field where you use
to_date
to convert back the result from
to_char
. You can then use this last one to sort by. ****** 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.821927249
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.805122077
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.796177268
Please provide your feedback on this answer.