0

I know we can't modify the organization (company information) via apex, but is there any other way by which we can do that, like via any API call or anything? Actually in my requirement I would like to modify the default locale info and address of the organization object via code.

3
  • I've re-opened this as I think it's pretty clear what it's asking and it'd be good to have some suggested solutions.
    – Matt Lacey
    Aug 18, 2017 at 3:40
  • Thanks Matt, for reopening this. Well I figured out the solution by myself. Anyway thanks
    – user48321
    Aug 18, 2017 at 7:11
  • that's good news! Can you post an answer below so that others may benefit in the future?
    – Matt Lacey
    Aug 18, 2017 at 7:13

1 Answer 1

-3
User u = [select name,LocaleSidKey from User where ID =: userId];
u.LocaleSidKey = 'IN'; //set abbreivation of country name for which you want to set.

update u;
4
  • Did you try that, because DML operation are not supported on organization object via apex.
    – user48321
    Aug 17, 2017 at 12:34
  • @JagdeepJuneja Adding an explanation to your code would help identify if this is a valid solution and why this should solve the problem. Aug 17, 2017 at 13:08
  • 1
    This question is about the default locale and organization address, not individual user locale. Aug 17, 2017 at 15:20
  • The question is about the organization. Your answer is about the user. Please explain how it answers the SoP question
    – Eric
    Aug 18, 2017 at 4:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .