The CreatorCon Call for Content is officially open! Get started here.

Multiple Notification Variable

TashfiqueH
Tera Contributor

Hi, 

I am working with an Application. That has different approvals by different users. The very first approval should capture a unique ISET number. There will be multiple ISET numbers, user will select a unique ISET number. 

Once selected and approved the next user will receive a notification with that ISET, followed by the following user with that same ISET number. I would like to know how can I proceed with this? I am able to make notifications for different users. But not sure on how to bring that "ISET" thru the flow. I am just using notification, event and business rules. 

 

Kindly assist. 

1 ACCEPTED SOLUTION

@TashfiqueH 

on your price list table you can have a reference field pointing to Import Set table which you can then use to inform users which ISET was used for this row/record

Then use onBefore or onAfter to set that

Something like this in onBefore

(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {

	// Add your code here
	target.u_importSetField = import_set.sys_id;

})(source, map, log, target);

If you are using onAfter then use target.update() to update the target record

But remember import sets are cleaned up OOB every 7 days

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

@TashfiqueH 

on your price list table you can have a reference field pointing to Import Set table which you can then use to inform users which ISET was used for this row/record

Then use onBefore or onAfter to set that

Something like this in onBefore

(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {

	// Add your code here
	target.u_importSetField = import_set.sys_id;

})(source, map, log, target);

If you are using onAfter then use target.update() to update the target record

But remember import sets are cleaned up OOB every 7 days

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader