How to populate Company for imported user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2024 10:38 PM
How do I populate the Company field for imported users? Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2024 10:57 PM
Hi,
add field script to company field and return company sys_id - from core_company table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2024 11:15 PM - edited ‎01-10-2024 11:16 PM
Hi @gajananvwit, I already created this but still not populating. Can you share some scripts? Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2024 11:20 PM
Hi,
if you are adding company from excel sheet then you have to use
source.company name = use company name from your source table field
var cmpany = source.company_name;
var gr = new GlideRecord('core_company');
gr.get('name',cmpany);
return gr.getUniqueValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2024 11:26 PM
Hi @gajananvwit, we do not use spreadsheet or data sources. This happens at login where users are autoprovisioned. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2024 11:39 PM