- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 12:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 07:02 AM
Thanks i got till here. This worked but i also need to create an credential alias for this to use it from flow rest action. How can i create a credential alias?
Thanks
Ratna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 01:45 AM
Hello @ratnaj
You can try this script to meet your requirements:
// Create a new record in basic_auth_credentials
var basicAuthCred = new GlideRecord('basic_auth_credentials');
basicAuthCred.initialize();
basicAuthCred.name = 'MyBasicAuthCredential'; // Credential name
basicAuthCred.username = 'your_username'; // Basic Auth username
basicAuthCred.password = 'your_password'; // Basic Auth password
basicAuthCred.comment = 'This is a Basic Auth credential for API integration'; // Optional description
// Insert the record
basicAuthCred.insert();
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 02:15 AM - edited 12-18-2024 02:19 AM
Hi @ratnaj please check below code and fill details as per your need i kept field empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 07:02 AM
Thanks i got till here. This worked but i also need to create an credential alias for this to use it from flow rest action. How can i create a credential alias?
Thanks
Ratna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 08:53 PM
For that you can post new question and if my previous answer helps you please mark helpful and accept solution