VMware Cloud Community
rroodenburg
Contributor
Contributor

Populate input field from other inputs

Hi,

Is it possible to populate a textfield from other fields? It's for a JSON formatted content field for REST-API.

{
"surName": "string",
"firstName": "string",
"prefixes": "string",
"telephone": "string",
"mobileNumber": "string",
"email": "string",
"loginName": "string",
"loginPermission": boolean,
"firstLineCallOperator": boolean,
"secondLineCallOperator": boolean,
"problemManager": boolean,
"problemOperator": boolean,
"changeCoordinator": boolean,
"changeActivitiesOperator": boolean,
"requestForChangeOperator": boolean,
"extensiveChangeOperator": boolean,
"simpleChangeOperator": boolean,
"scenarioManager": boolean,
"planningActivityManager": boolean,
"projectCoordinator": boolean,
"projectActiviesOperator": boolean,
"stockManager": boolean,
"reservationsOperator": boolean,
"serviceOperator": boolean,
"externalHelpDeskParty": boolean,
"contractManager": boolean,
"operationsOperator": boolean,
"operationsManager": boolean,
"knowledgeBaseManager": boolean,
"accountManager": boolean,
"branch": {
"id": "string"
}
}

Thanks for helping me.

Reply
0 Kudos
5 Replies
xian_
Expert
Expert

Which vRO version are you using?
How do you access the GUI? Via vRA, or vRO directly?

Reply
0 Kudos
rroodenburg
Contributor
Contributor

Hi,

 

I’m using version 8.4.2 (VA). We are using the GUI through vRo

 

Thanks!

Reply
0 Kudos
Constantine0
Contributor
Contributor

Hi

If you are using vra 8.4, you can do it from the gui.
I can describe:

1st way : First define the variables and then specify the type of these variables. You should write this data to action. You can then pass parameters from the workflow to the action.

2nd way: define a script directly in the workflow without using action. Copy these codes into the script you created. Then change these entries in this script.

Reply
0 Kudos
xian_
Expert
Expert

Create an action with inputs of all the variables in your JSON, producing the required content.
Then on the workflow Input Form tab, set the variable (of JSON input) source to external and select your action, binding all the action inputs to the WF other input fields:

xian__0-1626090322055.png

 

Reply
0 Kudos
imtrinity94
Enthusiast
Enthusiast

Are you looking for a way to simply correlate a field with other field or you want a way to convert this JSON to fields for your workflow\action?


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
Tags (1)
Reply
0 Kudos