Try doing two calls, first for the voucher header, then subsequently the one(s) for the line(s). When you post a voucher you have to save the header first, before you add the lines, unless you import a file (template) which runs them one after another in an assistant.
Edit: For APPS10 I’m successful with basic authentication and APIs in INT space. You have to enable INT compatibility mode for the projection used. Monitor the calls to the system using log window while using Aurena, doing manually the same steps.
@chanaka-shanil ANyone who can assist with this ?
DHCRADPA wrote:
Try doing two calls, first for the voucher header, then subsequently the one(s) for the line(s). When you post a voucher you have to save the header first, before you add the lines, unless you import a file (template) which runs them one after another in an assistant.
Edit: For APPS10 I’m successful with basic authentication and APIs in INT space. You have to enable INT compatibility mode for the projection used. Monitor the calls to the system using log window while using Aurena, doing manually the same steps.
Thank you for your response, but what I'm trying to learn is that the action I created is giving a json error. I want to know why I'm getting an error while getting the data, even though everything is as described in the document in the link.
https://docs.ifs.com/techdocs/foundation1/050_development/022_user_interface/030_aurena_dev/140_resources/100_ODP/100_complex_type_in_operations/110_actions/default.htm
If you search for your projection in the API Explorer and then open the Documentation > API Doc, what sample request does it give you? It might be worth comparing with that.
I also have a vague recollection that the support for nested structures were added with one or the other update on IFS Applications 10. With version 10.5, I assume you mean Update 5. I don’t think Aurena got really stable until Update 7 or 8 at least.
Can you please execute following HTTP request to fetch service metadata and attach the part where it explains “ExpenseVoucher” and “ExpenseVoucherLines” structures (Complex types) and “AddExpense” action?
GET your.context.root/BpmServices.svc/$metadata