mahdi_gara1 Valued Contributor.
Valued Contributor.

Passing a JSON object as input to OO Central

Hi there, 

i want to send a RESTfull request to HP OO central for resuming an execution flow. I tested the request before using sample data input. 

In my case now, i want to pass a hole Json object in the data input.

there is my code :

"branchId" : null,
"input_binding" :{ "computeEndpoint" : "",
	"name" : "gg",
"imageRef" : "c441edbf-8c24-4464-b4e6-7f96dce73be6",
"flavorRef" : "0"


but i want to add another filed like that :

"networks" : "[{"uuid" : "9f2989d3-c859-4ff5-ae0b-163e4562ea38 "}] "

the flow won't work in Studio unless i pass the code above as input .

[{"uuid" : "9f2989d3-c859-4ff5-ae0b-163e4562ea38 "}]


I really need help please.




Tags (1)
1 Reply
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Passing a JSON object as input to OO Central

Is this similar to the other post: ?

To add another field you could use this operation: Add JSON Property to Object

Below is a snippet of its description:

The 'Add Property to Object' operation can be used to add a property with a simple string value.

jsonObject: {}
newPropertyName: test
newPropertyValue: [1,2,3]
{ "test":[1,2,3]}

Andrei Vasile Truta
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.