Creating Multiple Dynamic Documents
This example shows you how to create multiple textual dynamic documents. For more information, see Creating a Dynamic Document.
Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/DynamicDocMgmt/CreateDynamicDocuments
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"DynamicDocuments": [
{
"Category": {
"Value": "PUB_COMPOUNDTEXT"
},
"Name": "Document 1",
"AuthoringApplication": {
"Value": "ARBORTEXT"
},
"FolderLocation": "/WRS Tesing",
"FolderName": null,
"ObjectType": "Publication Source",
"PTC_DD_LANGUAGE":"fr",
"PTC_DD_TRANSLATE":"yes",
"PTCDDEXTENDEDDOCTYPE": "x-raomContentStructure,1|x-raomDocTypeName,ditabase|x-raomFirstTagName,topic",
"CADName": "NewTopic1.xml",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:307879')"
},
{
"Category": {
"Value": "PUB_COMPOUNDTEXT"
},
"Name": "Document 2",
"AuthoringApplication": {
"Value": "ARBORTEXT"
},
"FolderLocation": "/WRS Tesing",
"FolderName": null,
"ObjectType": "Publication Source",
"PTC_DD_LANGUAGE":"de",
"PTC_DD_TRANSLATE":"yes",
"PTCDDEXTENDEDDOCTYPE": "x-raomContentStructure,1|x-raomDocTypeName,ditabase|x-raomFirstTagName,topic",
"CADName": "NewTopic2.xml",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:307879')"

},
{
"Category": {
"Value": "PUB_COMPOUNDTEXT"
},
"Name": "Document 3",
"AuthoringApplication": {
"Value": "ARBORTEXT"
},
"FolderLocation": "/WRS Tesing",
"FolderName": null,
"ObjectType": "Publication Source",
"PTC_DD_LANGUAGE":"ko",
"PTC_DD_TRANSLATE":"yes",
"PTCDDEXTENDEDDOCTYPE": "x-raomContentStructure,1|x-raomDocTypeName,ditabase|x-raomFirstTagName,topic",
"CADName": "NewTopic3.xml",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:307879')"
}
]
}
War dies hilfreich?