HPE Morpheus Enterprise Software
1856368 Members
31076 Online
104112 Solutions
New Discussion

Re: Pass Dynamic parameter in source URL optionlist

 
Ibrahim-GCC
Regular Advisor

Pass Dynamic parameter in source URL optionlist

Hi All,

I want to check is there any way we can pass the “https://example/api/apps/12/state” instead of 12 pass the input field value of other selection.

We need to retrieve the existing inputs data for the terraform app.

3 REPLIES 3
Ollie-Phillips
HPE Pro

Re: Pass Dynamic parameter in source URL optionlist

First thought was request script but your id is in the middle of the URI, so not sure. I will try test.



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
tyboyd
HPE Pro

Re: Pass Dynamic parameter in source URL optionlist

Okay, I think I see what you are trying to do. I’m not sure how to pull that off. Maybe someone else has an idea.



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
tyboyd
HPE Pro

Re: Pass Dynamic parameter in source URL optionlist

Unfortunately, you can not variablize the source URL.

If you would like to see this feature in a future release I would suggest you vote for Option Lists URL and Header fields should support variables

That said I’m not sure I’m seeing the use case in this scenario. Why do you need the return in an option list?

Would it not be better to make a custom option to take in an app ID and use that custom option value in a task to make the API? You could then output the return so it can be viewed or used in another task.



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo