Questions tagged [max]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
414 views

Max Level Number of Accounts in an Account Hierarchy

I couldn't find this in the documentation, but what is max Level number of accounts in an Account Hierarchy. Thanks.
Andrew L.'s user avatar
  • 837
1 vote
1 answer
443 views

What is maximum value of -w (wait) parameter of sf org scratch create command?

What is maximum value of -w (wait) parameter of sf org scratch create command? We need the max value for wait attribute in org scratch creation command to avoid the error which we receive often Org ...
Patlatus's user avatar
  • 16.7k
-1 votes
1 answer
568 views

SOQL Query : Get a list with records, only if the record MAX(CreatedDate) is not succesful

We have a custom object with interface logs and I would like to get a list of only the last record for a certain entitiy (e.g. contacperson), only is this last record is nog succesful. If the last ...
Liza Ariese's user avatar
0 votes
1 answer
284 views

Percent Formula Field using MAX function (for single field)

I am trying to create a custom formula field (Percent) off of another custom formula field (Number) that self references the Number field to find the highest (MAX) value and to convert the Number ...
Chloe's user avatar
  • 11
1 vote
0 answers
628 views

lightning input type = date, max attribute behaviour not similar in production and lower enviornment

I used max attribute of lightning input type date to disable the future dates in date picker. It was working in lower environments, but not working in production. In Lower Environments: It shows the ...
Pankaj Andhale's user avatar
0 votes
0 answers
136 views

How do I format a query to pull out all records where the date = max date of the records?

I have an object that stores performance data for another object (eg Account). The performance data is loaded at various times (ie can be monthly, quarterly, annually) so there will be multiple ...
Irene's user avatar
  • 1,829
7 votes
1 answer
8k views

How to get MAX value using SOQL when there are more than 50,000 rows

I would like to run this query: SELECT MAX(Auto_Number__c) MaxNumber FROM Opportunity But I am getting this error: System.LimitException: Too many query rows: 50001 Because there are more than a ...
Robs's user avatar
  • 9,336