cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

associate two document subtypes

ptc-4767031
1-Visitor

associate two document subtypes

i have two subtypes of document '"docA" and "docY".In a expression robot in a workflow I have to associate the two document subtypes.How do i do it????

ACCEPTED SOLUTION

Accepted Solutions

Hello

it depends of the type of link you want to use, if you want to checkout/in objects ... etc

but for example:

WTDocumentUsageLink link = WTDocumentUsageLink.newWTDocumentUsageLink(docA,DocY);

PersistenceHelper.manager.store(link);

regards

View solution in original post

4 REPLIES 4

Hello

it depends of the type of link you want to use, if you want to checkout/in objects ... etc

but for example:

WTDocumentUsageLink link = WTDocumentUsageLink.newWTDocumentUsageLink(docA,DocY);

PersistenceHelper.manager.store(link);

regards

Do i need to put internal name of doca nd docy???

I depends of the API used.

but in this case , it is directly the 2 WTDocument objects that you want to link.

there's an other API to get the WTDocument from the internat object identifier

KD
12-Amethyst
12-Amethyst
(To:ptc-4767031)

I am assuming that the object of the type Doc a and Doc y is already created.

After that you have to check out the the parent document and after that you can use the WTDocumentUsageLink.

If you didnt check out the parent document then it may throw an error

Announcements


Top Tags