Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please include item type email (26) when filtering custom variables #173

Closed
WWoIT opened this issue Jan 7, 2022 · 0 comments · Fixed by #174
Closed

Please include item type email (26) when filtering custom variables #173

WWoIT opened this issue Jan 7, 2022 · 0 comments · Fixed by #174
Assignees

Comments

@WWoIT
Copy link

WWoIT commented Jan 7, 2022

Summary of the new feature/enhancement

When querying request items containing a custom field of type email, the data is not available through your module, because type 26 is not included in the custom variable type filter.

Proposed technical implementation details (optional)

One of the custom fields in the form I'm using is of type e-mail, and consequently I have had to modify Public\Get-ServiceNowRecord.ps1 when processing custom variables, to include type '26' (email):
Filter = @('request_item', '-eq', $record.sys_id), 'and', @('sc_item_option.item_option_new.type', '-in', '1,2,3,4,5,6,7,8,9,10,16,18,21,22,26')

If you could please include this item type when retrieving custom variables that would save me having to make this change manually, and may help others.

Thanks, and great module!
Wayne.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants