How can we etch the scratchpad error into the work notes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 11:34 PM
Hi Team,
Can someone please help me on the below requirement.
In AD failure case i am getting this error message in the scratchpad.
Below screenshot refers to the sub flow of the AD result failure run script.
I have added the run script after the sub flow to fetch the error but it showing me as error.
I want to display the error message in the Request item in the failure case of the AD.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 12:15 AM - edited 03-21-2024 12:29 AM
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