Setting the value of a field to 'No Authentication' on a Digital Interface record via Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I'm working on a catalogue item for the Digital Interface table 'sn_apm_di_digital_interface'. One of the questions I'm implementing is in relation to the Authentication Type field:
If a user selects No, when the request is approved, I want the Authentication Type field to be set to 'No Authentication'. However, what I've noticed is that the field is getting set to empty rather than 'No Authentication':
I've tried the following code in flow designer for setting the Authentication Type field:
/*
**Access Flow/Action data using the fd_data object. Script must return a value.
**Order number is offset by +1 in Error Handling Section.
**Available options display upon pressing "." after fd_data
**example: var shortDesc = fd_data.trigger.current.short_description;
**return shortDesc;
*/
if(fd_data._1__get_catalog_variables.require_authenticated_login == 'no' || fd_data._1__get_catalog_variables.require_authenticated_login == 'No'){
return 'none';
} else {
return fd_data._1__get_catalog_variables.authentication_type;
}
I've also noticed that the backend value for the No Authentication option is also set to 'none':
I was just wondering if anyone has come across a similar issue like this before and knows what I can do so that if the selects No on the authentication question in my catalogue item, then it sets the Authentication Type field on the new Digital Interface record to No Authentication
