Leadtools.Ccow Namespace > ContextManager Object : GetMostRecentContextCoupon Method |
function Leadtools.Ccow.ContextManager.getMostRecentContextCoupon()
Type | Description |
---|---|
int | The most recent context coupon represents the previously committed transaction. |
function joinCommonContextTest(ccowService, appName, clientUrl) { // Create a new ContextManager var contextManager = new lt.Ccow.ContextManager(ccowService); // Join Common Context var coupon = contextManager.joinCommonContext(appName, clientUrl, false, true); // Get Most recent coupon var mostRecentContextCoupon = contextManager.getMostRecentContextCoupon(); console.log("mostRecentContextCoupon:" + mostRecentContextCoupon); return coupon; }