You need to sign in to do that
Don't have an account?
Ivan sklyarov 2
how can I set custom value in environment or user storage?
I need to save custom data set or value somewhere in salesforce. that value wil relates just to current user. So I need something like env variables or global user storage.
If yes. is it possible to make through api access?
Will happy if someone can help me with that issue.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_customsettings.htm
Since your settings seems to be bound by user, I would recommend to use Hierarchical Custom Setting as it work on three different levels:
- Organization, the default value for everyone
- Profile, which overrides the Organization value
- User, which overrides both Organization and Profile values
You can find plenty of examples for how to use them.All Answers
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_customsettings.htm
Since your settings seems to be bound by user, I would recommend to use Hierarchical Custom Setting as it work on three different levels:
- Organization, the default value for everyone
- Profile, which overrides the Organization value
- User, which overrides both Organization and Profile values
You can find plenty of examples for how to use them.