How to create a sys_choice for the HR Profile table from a Scoped Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Everyone,
@Ankur Bawiskar , @Chuck Tomasi @GlideFather
I’m working in a scoped application, and I need to create a sys_choice entry for a field on the HR Profile (sn_hr_core_profile) table. I’m unable to insert or update sys_choice records for this table from my scoped app without changing the Application Access configuration, which I want to avoid as it’s not recommended to modify out-of-box Sys Choice configurations.
Has anyone faced this scenario?Is there a best-practice way to add choices for HR tables from a scoped app without changing the Sys Choice application access, or is there an alternative approach?
Any suggestions or guidance would be appreciated!
Best Regards,
Mariam Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Marium_07 ,
Why aren’t you using the "Human Resources: Core" Scoped Application? If you use this scope, you’ll be able to create it.
Regards,
Sarah Bioni Nascimento
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @sarah_bioni,
I’m trying to dynamically add new choices to an HR Profile custom field during an import if the choice doesn’t already exist. The logic is running from a Transform Map (field mapping script) that’s part of the Enterprise Service Management Integrations Framework scope.
I created a Script Include in the Human Resource Core Application scope to handle this, but I’m getting an “Invalid 'Choice' record” error when attempting to insert the new choice.
Do you know the correct way to add choices to an HR Profile field from a cross-scope Transform Map? Any guidance would be appreciated!
Best Regards,
Mariam Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Marium_07 ,
Choices should be created in the scope of the dictionary (field)
if the field is in the HR Scope you will only be able to add choices in the HR scope
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
that's correct you can only create choice entry on the table present in your selected scope
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader