This repository was archived by the owner on Feb 13, 2024. It is now read-only.
Usage of "to-be-defined" variables from parameters in usecase #449
Replies: 2 comments 3 replies
-
Hi Anatol, this is only possible via actions defined in the Best, |
Beta Was this translation helpful? Give feedback.
3 replies
-
The only way to do this, is via the way that @lechnerc77 explained, by fetching the information in the /home/user/log/metadata_log.json file e.g. via jq and injecting in your code through the executeAfterAccountSetup section. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello colleagues,
Is there a possibility to use variables from the parameters.json file in usecase.json, if these variables' values are only created during the subaccount creation?
Example: "subaccountid" and "orgid" values are not declared in the initial parameters files, because these values are generated during the subaccount creation and are not known beforehand. As an account owner, I want to create labels for newly created subaccount which will include CF Org ID of the subaccount. To achieve this I want to use the following "executeAfterAccountSetup" command:
{ "description": "Set Labels", "command": "btp update accounts/subaccount $subaccountid --labels \"{\"cf-org\":[\"$orgid\"]}\"" }
Is there a way to achieve this?
Thanks,
ANatol
Beta Was this translation helpful? Give feedback.
All reactions