How to get the jobid in code?

Hi everyone,
I am trying to build some processes which can be called as a service.
the processes will take some time, so I cannot response right away.
I need to response when the job finished, but I need some unique id to identify the job.
Does anyone knows how to get the jobid in code?
Or is there any suggestion?

thanks!

@rickyw001,

Kindly provide more details, are you referring the Orchestrator JobId as the JobID here?

I start the job by API, and get the response.
I mean the response “Id” is JobId


%E6%9C%AA%E5%91%BD%E5%90%8D