Hey,
I'm trying to send my document to external document storing aplication. At this moment i can send document and it's stored so now i have to add some "indexes" such as client number, client name ect. (all of them are my process variables) I don't know how to achive this, could you please have a look on that case?
Thank you in advance,
Dawid
...
Discussion posts and replies are publicly visible
I have no information regarding your external document management application. Let's call it DMA for right now.
However, I expect it's possible that DMA returns its own unique identifier for the new document you just added. You should be able to capture that from the response of the first call.Is there a second Update Indexes API call for DMA that takes that unique identifier? If so, you should be able to pass in those indexes along with the new unique identifier in a second API call to DMA from Appian.
This application is called DocuWare. At this moment i have 2 itegration objects in my process. First is loging in and second is send document. I need to send this indexes with document im not sure I can edit them later. It look similar to my #1 attachment.
Upload object is at the #2 attachment
These indexes arent unique i think. You can have many documents for the same client, branch or from the same date
The thing to keep in mind is that Appian is entirely dependent on how the system works that you want to integrate with. There are a number of possibilities: add query parameters, add information in the request body, add parameters to the URL, etc. However, DocuWare is likely expecting to receive these indexes in a certain way. I'd suggest doing some research on DocuWare to see what format they need to store indexes, then craft your integration to meet those requirements.
I found this in Documantation but i have no idea why it doesnt work for me
{ "Fields": [ { "FieldName": "DWWBSOURCE", "Item": "xyz", "ItemElementName": "String" } ]}Changed into{ "Fields": { "FieldName": "ACCOUNTNUMBER", "Item": ri!metadata.AccountNumber, "ItemElementName": "String" }I chose Multipart Form Data and enter this as JSON + document which has document content type
I don't think that's the correct syntax for using Multipart Form Data. Usually you have to either add the properties directly to the grid or use the a!httpFormPart() function to define the data to send. See here for more information.
I'd suggest starting by using the option for "Specify values for each part" and plug in the properties you defined above. If that doesn't work, try the expression that returns a list of a!httpFormPart()
Can't find "Specify values for each part" in 19.2. Was it implemented in 19.4?
Is there any alternative? Maybe custom type?
I found some informations: I have to send this indexes as PUT method in xml, but there is a problem now
<?xml version="1.0" encoding="utf-8"?><DocumentIndexFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://dev.docuware.com/schema/someservices"><Field FieldName="ACCOUNTNOUM"><String>A1</String></Field></DocumentIndexFields>
How can i put this into xml? I tried to create CDT with FieldName and String felds and then made something like this in request body
'type!{urn:com:appian:types}DW_DocumentIndexFields'( FieldName: "ACCOUNTNUMBER", String: "A1")
and gives me an 500 error
OK i have done it!!! Thank you very much Guys!
Only one thing left is to make my URL flexible. I got some xml in my requestresposne in process and there is documentID from Docuware. Any thoughts how can i get this doc from xml to maybe another pv?
Thank you once again!
This is a part of my Resault of type HttpResponse:
[statusLine=HTTP/1.1 200 OK, statusCode=200, headers=[object Object], contentType=application/xml; charset=utf-8, body=<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="/DocuWare/Platform/Content/standard.xslt"?><DocumentIndexFields xmlns:s="">dev.docuware.com/.../services" xmlns="">dev.docuware.com/.../platform"><Field FieldName="DWDOCID" FieldLabel="Doc ID" ReadOnly="true"><Int>4422060</Int></Field><Field FieldName="DWDOCSIZE" FieldLabel="Document Size" ReadOnly="true"><Int>6450</Int></Field><Field
And i need value of FieldName="DWDOCID"