Hi there, I have an integration, the returned result is as above.
How do I extract the information for "MATERIALDOCUMENT"? in the "data" tag of integration in my process model, I add a custom output as "AC!Result.body.BAPI_GOODSMVT_CREATE.Response.MATERIALDOCUMENT", save to a process variable. but nothing is saved in this process variable. anyone can help on this?
Discussion posts and replies are publicly visible
result.body gives you the body as dictionary. You can do an index or just direct mapping.In this example it will give you the dictionary: BAPI_GOODSMVT_CREATE_Response.From there you can index or map to lower values.
I think the issue here is that there is a dot in one of the field names.
it's working, thank you very much.
Hi Stefan, thanks for the help before.
I get another one, I want to extract the "MESSAGE" in the returned response, how to extract. I did
"AC!Result.body.'BAPI_GOODSMVT_CREATE.Response'.RETURN.item.MESSAGE", does not work.
In such situations I try to drill down into the data structure step by step.
Seems like this is in a call integration node. I suggest to create an expression which calls the integration and extracts the data. This is way easier to test and debug. Then call that expression in a script task.
© 2024 Appian. All rights reserved.