How can we etch the scratchpad error into the work notes

nikhitha24
Tera Guru

Hi Team,

 

Can someone please help me on the below requirement.

 

In AD failure case i am getting this error message in the scratchpad.

nikhitha24_0-1711002570025.png

Below screenshot refers to the sub flow of the AD result failure run script.

 

nikhitha24_1-1711002642749.png

 

I have added the run script after the sub flow to fetch the error but it showing me as error.

nikhitha24_2-1711002774456.png

 

I want to display the error message in the Request item in the failure case of the AD.

 

Thank you.

 

 

 

 

 

1 REPLY 1

swathisarang98
Giga Sage
Giga Sage

Hi @nikhitha24 ,

 

you can write a onload client script on ritm and write something as below ,

 

 

 

var scratchIIR = workflow.scratchpad.addtogrouperror;
g_form.setValue('work_notes', scratchIIR);

 

 

  Or You can write a display business rule on ritm and fetch the values

 

var workflow = new Workflow();
var context = workflow.getContexts(current);
var addtogrouperror;
if (context.next()) {
addtogrouperror= context.scratchpad.addtogrouperror;
current.comments.setJournalEntry(addtogrouperror);
}

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,

Swathi Sarang