We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to take backup of custom created app from App engineen studio

RudhraKAM
Tera Guru

Hello 

I am new to App engines studio , Created a new app using app engine studio , by creating updateset but as I created a Application , it created new application with that name and all the updates are in default updateset , But without Updateset is there a way we can backup that App ( i tried to publish it but Still it is not published in to repository .

 

What are the options I have .

6 REPLIES 6

pratyusha11
Tera Contributor

// Get ELID from system property
var elidProperty = gs.getProperty('wf.change.tcm.vendor.certification.users');

// Default name fallback
var username = '';

if (elidProperty) {
// Process comma-separated values to remove spaces
var idList = elidProperty.split(',').map(function(id) {
return id.trim();
}).join(',');

var userGR = new GlideRecord('sys_user');

// Construct an explicit Encoded Query string using the IN operator
// This translates to: (u_elid IN idList OR user_name IN idList) AND active=true
var queryString = "u_elidIN" + idList + "^ORuser_nameIN" + idList + "^active=true";

userGR.addEncodedQuery(queryString);
userGR.query();

if (userGR.next()) {
username = userGR.getValue('name'); // Safeguards field reference
}
}

// Build message content
var emailContent = '';
emailContent += '<br/>';

// Execute clean ternary string concatenation
var displayName = username ? username : '';
emailContent += '<p>Hi ' + displayName + ',</p>';

emailContent += '<p>As the manager of a group with access to the Vendor Change mod review and attestation.</p>';
// ... rest of your html code ...

template.print(emailContent);

pratyusha11
Tera Contributor

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {

var elidList = gs.getProperty('wf.change.tcm.vendor.certification.users');
if (elidList) {
// 1. Clean up spaces from the comma-separated list
var ids = elidList.split(',').map(function(id) {
return id.trim();
}).join(',');

var userGR = new GlideRecord('sys_user');

// 2. HIGHLIGHTED CHANGE: Convert to a bulletproof Encoded Query string
var queryString = "u_elidIN" + ids + "^ORuser_nameIN" + ids + "^active=true";
userGR.addEncodedQuery(queryString);

userGR.query();
while (userGR.next()) {
if (userGR.email) {
email.addAddress("to", userGR.email.toString(), userGR.name.toString());
}
}
}

// Add static CC address
email.addAddress("cc", "tcmmail@wellsfargo.com", "TCM Mailbox");

})(current, template, email, email_action, event);