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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Translate the entire conversation x

How to get Primary and secondry content from WTDocument

adev
1-Visitor

How to get Primary and secondry content from WTDocument

Hello I am using data base script to get the primary and secondary content of the WTDocument I am able to get primary but secondary I am getting issue does any one know how I can get the secondary object as well

4 REPLIES 4
Cliff
23-Emerald IV
(To:adev)

ContentService should have APIs to achieve , did you check Javadoc?

adev
1-Visitor
(To:adev)

Hello Feng,

Actually I am looking for database script to get the primary and secondary objects

MatthewKnight
12-Amethyst
(To:adev)

Can you paste your sql

Hello Matthew,

I have come up with this which is giving me the result but I am not getting the Download url like we have in API ContentHelper.getDownloadURL, Can we download the file using the script ????

SELECT dm.name, ad.filename, ad.role

FROM wtdocument d, wtdocumentmaster dm, holdertocontent hc, applicationdata ad

WHERE hc.ida3a5 = d.ida2a2

AND d.ida3masterreference = dm.ida2a2

AND hc.ida3b5 = ad.ida2a2

AND dm.wtdocumentnumber='0000000021'

and d.LATESTITERATIONINFO = 1;

Announcements

Top Tags