Get Process Log ID while Running

Hi,

Is there a way to get the process log id generated by the current running business process?
I want to know what is the process log id while the business process is running.

Like 0

Like

3 comments
Best reply

I was able to get the instance ID by doing the code below. The return UID here looks to be the same as the SysProcessLog ID used in the Process Log section.

 

string instanceUId = context.Process.InstanceUId;

Hello!

 

Actually, the system runs multiple processes at once. But if you mean "current" from the perspective of process, in this case, process log id, it is just the id of this instance of the process. It represents in SysProcessElements, SysProcessLog, and other objects where you can filter data. To get this id in process, you will need to implement custom logic.

Kyrylo Atamanenko,

 

Can you provide us an example logic? We are meaning to get the current instance ID inside the process itself.

I was able to get the instance ID by doing the code below. The return UID here looks to be the same as the SysProcessLog ID used in the Process Log section.

 

string instanceUId = context.Process.InstanceUId;
Show all comments