Skip to main content
Jul 4, 2023 12:05 PM UTC
Question

API to do automatic publishing after checked in for DRW

Hi All,

In WC11 I am using - WorkInProgressHelper.service.checkin(obj, ""); API to checked in the drawing and after checked in automatically CAD Worker was getting published.

But In WC12 when I am using the same object is getting checked in but job is not getting triggered .

Could you please suggest me which API should I used to trigger Publish through code.

Thanks.



@HelesicPetr 

 

3 replies

Jul 4, 2023 12:37 PM UTC

Hi @BA_10670508 

There can be different configuration. Your wch 12 system do not contains configuration that allows publish automatically after check in..

I would check this first. If the publish job is done for normal checkin models. 

PetrH

Jul 4, 2023 12:44 PM UTC

Hi @HelesicPetr ,
Yes when we are doing normal checkin through UI then publish job is working fine. But through code it is not working.

Thanks.

Jul 4, 2023 12:47 PM UTC

@BA_10670508 

Do you use publish rules?

If so there are several types of events. on checkin, on schedule, on unknown-source

If the rules do not contains unknow-source that is explanation why it does not work. 

The check-in from custom code is the unknown-source

 

Check it

 

PetrH