How to add a message in AD user is add or not

nikhitha24
Tera Guru

Hi Team,

 

Can someone please help me on the below query.

Requirement: As per the below screenshot if the result is failure or success i need to add a message in the catalog item workflow as ‘The user already exists in the AD Group’ (or) ‘The user not found in active directory’ (or) ‘The AD Groups to add the user to are not found’.

 

nikhitha24_0-1710746911755.png

 Please help me on this how can we achieve this.

 

Thank you.

 

6 REPLIES 6

Hi @Dnyaneshwaree ,

 

Requirement: I want to show the failure or success message in the Request item work notes currently we do have any solution on this we need to provide the solution for this. currently we are using workflow from this how can we fetch the error message and need to be displayed same message in the RITM.

 

Thank you

Generally we have used BR to set the comments/work-notes/info messages of RITM and task tables. And we can add trigger condition in the BR to call the same and execute the particular logic from the workflow where it is required.
But, if i am able to understand your requirement, you can refer the below solution script using required logic in the particular action script. It might be help you.

answer = ifScript();
 
  function ifScript() {
// Glide request table and use add query on work-note table.
//  work-note = ‘The user already exists in the AD Group’ (or) ‘The user not found in active directory’ (or) ‘The AD Groups to add the user to are not found’. 
//Copy the latest work-note by sorting by desc and update it in the RITM.
     
return 'failure';
 }


Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru