0

I need to write a job that can be run to update all Users to default country/region to USA.

Here is the path enter image description here

System administration > Common > Users> All users.

Jonathan Bravetti
  • 2,228
  • 2
  • 15
  • 29
Naresh
  • 63
  • 1
  • 8

1 Answers1

1

Try this code:

static void StackOverflow(Args _args)
{
    SysUserInfo         sysUserInfo;

    // Method 1
    ttsBegin;
    while select forUpdate sysUserInfo
    {
        SysUserInfo.DefaultCountryRegion = "USA";
        SysUserInfo.update();
    }
    ttsCommit;

    // Method 2
    update_recordSet sysUserInfo
        setting DefaultCountryRegion = "USA";

    info("End process");
}
Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71
Jonathan Bravetti
  • 2,228
  • 2
  • 15
  • 29