Name
sn_entitlement.dao_groupAllocationDataM2mSubscriptionDetailDao
Description
No description available
Script
var dao_groupAllocationDataM2mSubscriptionDetailDao = Class.create();
dao_groupAllocationDataM2mSubscriptionDetailDao.prototype = {
initialize: function() {
this._table = 'group_allocation_data_m2m_subscription_detail';
},
/**
* Persists an m2m entry associating a group_allocation_data entry and a subscription_detail entry to the database
*
* @param {object} entry The entry object containing allocation data to persist
* @returns {string} The sysId of the entry inserted
*/
insertEntry: function(groupAllocationDataId, subscriptionDetailId, isAllocated) {
const gr = new GlideRecord(this._table);
gr.setWorkflow(false);
gr.setValue('group_allocation_data', groupAllocationDataId);
gr.setValue('subscription_detail', subscriptionDetailId);
gr.setValue('is_allocated', isAllocated);
return gr.insert();
},
type: 'dao_groupAllocationDataM2mSubscriptionDetailDao'
};
Sys ID
b1f31f22ff592110d185612a453bf1d6