Question

How can i log in auditlog ?

Hello everybody,

I'm currently developing a c# class called by a script task from a process.

It works fine but i want to log any messages. I don't want to log in classic log file but in data table like AuditLog in order to see them from administration... 

How can i do that?

Thanks in advance

Davyd

Like 0

Like

2 comments

Hi Davyd. You can create a new object based on "base object". Then add a new text250 field and specify the field as a primary display value (advanced settings in the object). Publish the object. Then create a new lookup in a "Lookups" section based on the new object. Check that you can add and delete data into the lookup.

Then use ESQ to write log messages into the object. 

https://academy.bpmonline.com/documents/technic-sdk/7-11/crud-operation…

You'll see the messages in the lookup. 

Thanks! I'm going to do that!

 

Show all comments