Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
MruHeader
In API version 7.0 and later, the create(), update(), and upsert() calls do not update the list of most recently used (MRU) items in the Recent Items section of the sidebar in the Salesforce user interface unless this header is used. Be advised that using this header to update the Recent Items list may negatively impact performance.
API Calls
create(), merge(), query(), retrieve(), update(), upsert()
Fields
Sample Code—Java
This sample turns on the MRU list update option by setting the MruHeader to true. Next, it creates an account.
1public void mruHeaderSample() {
2 connection.setMruHeader(true);
3 Account account = new Account();
4 account.setName("This will be in the MRU");
5 try {
6 SaveResult[] sr = connection.create(new SObject[]{account});
7 System.out.println("ID of account added to MRU: " +
8 sr[0].getId());
9 } catch (ConnectionException ce) {
10 ce.printStackTrace();
11 }
12}