Create Application Menu's dynamic module

quangminh_doan
Tera Contributor

Hi experts,

I have read some other posts about dynamic module within the Application Menu, but none of them help me solve my problem.

 

1. I have a list of Skill Evaluation Submission. The Submission's fields are as below:

quangminh_doan_0-1675000296368.png

 

2. I have 3 groups which are: SE User, SE PM, SE CoE

 

I need to create a module shows a list of Submission record, where:

  • Records with state = "Submitted" should be visible to users in SE PM group
  • Records with state = "Reviewed" should be visible to users in SE CoE group

 

I really appreciate your help

1 ACCEPTED SOLUTION

Hi @quangminh_doan ,

 

You can achieve it with script:

In script include create a function with code as below:

If current user belongs to SE PM group then var enqr= (state = "Submitted")

Else if current user belongs to  SE CoE group then enqr = (state="Reviewed"). 

 

Then create a GlideRecord query on submission table.

Use the same encoded query. 

Then push the sys_id in an array and return it.

 

This will allow you to have different set of sysId.

 

 

View solution in original post

7 REPLIES 7

Hi @quangminh_doan ,

 

Your script include should return sys_id in array string.

 

You can call script include without Javascript: like:

 

new myScriptIncludeName().functionName()

 

Hi @Rajat_Choudhary ,

Thanks for your instruction. The script is working.

Hello @quangminh_doan ,

 

Very happy to know that your issue is resolved.

Keep up the good work.

 

Best Regards,

Rajat Choudhary