我最終編寫了Adobe Javascript,通過SOAP Web服務將表單數據發送到保存的SharePoint列表。一旦進入SharePoint列表,我就擁有了運行報告所需的一切。 Adobe JavaScript看起來像下面只有從PDF表單中提取的ID和測試列數據並添加到SOAP XML中。
try {
var oAuthenticator ={ UsePlatformAuth: "true"};
var oRequest = {
soapValue: "<UpdateListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'> <listName>PDFList</listName> <updates> <Batch OnError='continue' ListVersion='1'> <Method ID='1' Cmd='Update'> <Field Name='ID'>1</Field> <Field Name='testColumn'>ValueChanged</Field> </Method> </Batch> </updates> </UpdateListItems>"};
var cAction = "http://schemas.microsoft.com/sharepoint/soap/UpdateListItems";
var ver = SOAPVersion.version_1_2;
var response = SOAP.request({
cURL:'http://SHAREPOINT_SITE_URL/_vti_bin/Lists.asmx',
oRequest:oRequest,
cAction:cAction,
oAuthenticate:oAuthenticator,
bEncoded:false,
cVersion:ver
});
} catch(e) {
app.alert(e.toString());
}