ExLibrisGroup / alma-csv-user-load

Load users to Ex Libris Alma from CSV files
2 stars 0 forks source link

Preferred language field doesn't work #66

Closed esthyklein closed 2 years ago

esthyklein commented 2 years ago

Hi, I use your app in Alma and it works great! I just have an issue with the Preferred language field - default is English but I can't change it! I need Hebrew (that is set on our Alma) - and I can't get it. Not when I'm setting it as the default value for this filed, and not when filling this in the CSV manually for users.

Are you aware of it? Can you please help? Thanks! Esthy

mgobat commented 2 years ago

@esthyklein, help me understand the problem a bit better. I've successfully created users with a preferred language of "Hebrew" using the Alma CSV User Load Cloud App by providing "he" in the CSV input file for the "Preferred Language" field. Do you have any more details about the problem? Thanks.

esthyklein commented 2 years ago

@mgobat Thank you! That did the trick. I tried "hebrew" and not "he". So of course when I provide "he" it worked well. Thanks you! (Was there a way I should have known this? couldn't find on documentation)

mgobat commented 2 years ago

@esthyklein, you would have to view the API documentation to know that the preferred language code is required rather than the preferred language description.

  1. Go to his url: https://developers.exlibrisgroup.com/console/?url=/wp-content/uploads/alma/openapi/users.json#/Users/post%2Falmaws%2Fv1%2Fusers
  2. Click on the "Put" under "Users".
  3. Scroll down and click on the "Schema" link. Here you'll see the details of what can be included to add or update a user.