Skip to main content
6-Contributor
Jul 4, 2023 12:05 PM UTC
Solved

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 

 

HelesicPetr
22-Sapphire II
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

4 replies

HelesicPetr
22-Sapphire II
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

Translate
6-Contributor
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.

Translate
HelesicPetr
22-Sapphire II
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

Translate
7-Bedrock
Aug 19, 2026 10:39 AM UTC

after adding “unknow-source” block in post publish rule, it worked for me for the similar issue. Thanks ​@HelesicPetr .

Translate