Hi,
I am using the a!startProcess . A number of my parameters are coming from an http!request.body, which I can pass in as a dictionary
However I want to be able to add additional parameters as something like the following.
processParameters: concat( replace(a!fromJson( http!request.body ),len(a!fromJson( http!request.body )),1,""), local!url,"]")
This does not work as I cannot cast a text as a dictionary.
I have tried other things including
processParameters: { processParamterVariableNameInProcessModel: local!parameters }
which I have seen as recommendation in another post, but then I get an invalid process model.
Can you advise how I can add to a dictionary object ?
Thanks
Tim
Discussion posts and replies are publicly visible
Is there any particular reason you can't just add additional parameters to your process model?
You cannot add a dictionary or "Any Type" as a variable type in a process model. However, do you know what kind of data you expect to receive from the http request? Could you create a CDT that matches the fields of the request and use that as the type? You can just use cast() to cast the response from your JSON to the correct CDT.
Hi, Thanks for your responses. Sorry I wasn't very clear. My process parameters currently work fine within the web API
processParameters: a!fromJson( http!request.body )
I could probably change it to pass in the unconverted request body into a CDT in the process model. I am assuming as well that i am not going to be able to get a handle on the response. Ultimately we are trying to audit any calls made by the external application within Appian.