cancel
Showing results for 
Search instead for 
Did you mean: 

Note is not creating into an E-From using Unity script

Neil_REuter
Champ on-the-rise
Champ on-the-rise

Hi

 

I have a script that creates notes base on some rules, my problem is that the notes are note creating in eforms but in images document yes.

this is the  piece of code I'm using

 

private void createNote(string noteText,Hyland.Unity.Application app, Hyland.Unity.WorkflowEventArgs args)

{

//Create a Note with the error message

NoteType noteType = app.Core.NoteTypes.Find("PE Service Error");
NoteModifier noteMod = args.Document.CreateNoteModifier();

//Properties of the Note
NoteProperties noteProps = noteMod.CreateNoteProperties();
noteProps.Text = "Error" + Environment.NewLine + "Error Message: " + noteText;

//noteProps.PageNumber = 1;
//Create the New Note
Note newNote = noteType.CreateNote(noteProps);
noteMod.AddNote(newNote);
noteMod.ApplyChanges();
app.Diagnostics.Write("Note Added");

}

 

 

 

1 REPLY 1

Patrick_Ramser
Star Contributor
Star Contributor

Due to needing more information and this being a potential issue with any number of things,my suggestion to you is reach out to us at API Support via apisupport@onbase.com for assistance. We are happy to assist you in troubleshooting if you are part of an API Certified organization. If you are not API Certified, we can put you in contact with our Custom Solutions Group who would be able to assist you as a billable service.