Script Include

thullurishalini
Kilo Guru

How to Use Script Includes Across Multiple Applications?

1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi @thullurishalini,

 

This is quite an open, high level question. However, simply put, if the Script Include is 'global' (Application: global which essentially the scope) - the Script Include can be called across multiple applications.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

View solution in original post

4 REPLIES 4

Robbie
Kilo Patron
Kilo Patron

Hi @thullurishalini,

 

This is quite an open, high level question. However, simply put, if the Script Include is 'global' (Application: global which essentially the scope) - the Script Include can be called across multiple applications.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

Nafa_Immoune
Tera Contributor

Bert_c1
Kilo Patron

 

var si = new <app_cope>.<script_include>();
// call script include method
var siVar = si.<method_name>;

//OOB example:

		var demoDataGenerator = new sn_hr_le_ent.hr_demo_data_case_generator();
		if (!demoDataGenerator.checkIfFinalActivitySet(current.hr_case, current.activity_set.title)) {
			demoDataGenerator.processAndCloseActivitySet(current.hr_case);
		}

See nafa's post.

 

VishaalRanS
Tera Guru

Hi @thullurishalini 

 

If you want to call a Script Include from a scoped application, ensure that you have set the appropriate cross-scope access permissions. Navigate to (Application Cross-Scope Access) and adjust the settings to allow your scoped application to access the global Script Include. 

Ensure that permissions are correctly configured for cross-scope access when working with scoped applications.

 

Thanks, and Regards

Vishaal

Please mark this response as correct or helpful if it assisted you with your question.