input variable password is not password2 type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 01:44 AM
Hi Every one,
Im working automation for password rest in AD.
for this im using active directory reset AD user paassword activity from orchestration.
i have created the work flow, created password input variable of type password 2 .
But while testing im getting error saying :
input variable password is not password2 type
Any inputs on this ?
How to fix it?
- Labels:
-
Orchestration (ITOM)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 02:51 AM
before sending that value to workflow activity did you decrypt it?
decrypt and then assign the value to that workflow input
workflow input type will be as String
If you are using catalog variable then
var password = current.variables.A.getDecryptedValue();
if it's normal form with password2 field type then
var password = current.<password2_field_name>.getDecryptedValue();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 10:22 AM
im trying to use
getDecryptedValue()
but getting below error.
Access to api 'getDecryptedValue(what_is_the_password)' from scope 'sn_ad' has been refused due to the api's cross-scope access policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 09:27 PM
that method is not supported in scoped app
Alternative
1) create script include in global scope and accessible from all scope
2) pass the current record sysId and use that decrypt method in script include function and return that value
3) call this global scope script include from your workflow run script
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 03:00 AM
I haved tried this steps, but getting cross scope error.
also the password is getting policy error, same password is able to reset from activity designer.
here the both catalog variables string type variable.
do we have to use decryption for string type variable ?