web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Saving user last selection - SysLastValue

(0) ShareShare
ReportReport
Posted on by 3,546

Hi folks

I have built a tree lookup: another thread of mine. Now I want to save the user selection. I am more than capable of doing this by creating a custom table to do the job. But I have a vague suspicion that I should use SysLastValue. I am aware of the user-last-value functionality. But I am not exactly sure how it works. And I have not used it before. Hence I do not know why it isn't working for this form of mine in the first place.

The tree is built from some tables, but there are no datasources on the form. I know that the last value functionality works if I use a contract / SysOperation. But I do not feel like that is relevant for this implementation of mine.

Should I 1) build my own table 2) use the SysLastValue table or 3) change my tree lookup in some way that the standard user-last-value functionality works?

Thanks for your attention.

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,684 Most Valuable Professional on at

    You can use SysLastValue, but you won't get it out-of-the-box. The system simply doesn't know what it should save for your tree control.

    I'm not completely sure what's the right solution for saving and loading such values in D365FO, especially now when we're moving from a single set of last values to saved views. Maybe element.configurationHelper().saveConfigurationValue() and getConfigurationValue() is the right way...

  • Pete Alberts Profile Picture
    3,546 on at

    Thanks Martin

    I use the user's tree node selections on numerous forms, so in the end I decided that the best solution would be to just save the values in a custom table. Which enabled me to actually join on the user's selected bank accounts.

    I am sure I will come across a similar requirement in future, in which case I will try the configurationHelper() approach.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 668 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 630 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 581

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans