Store prompt responses as an environment variable

Would be nice to be able to store the data entered into a prompt variable of a request to be accessible by a later chained request.

for example: (working with an DNS database API) I am using one prompt to look up DNS name to get a _reference for that host record. I then want to change the DNS name in a subsequent call. In that same ‘chained’ call I want to store the original name from the prompt as an alias of the original name..

All I can think of now is to prompt for the original name again in the chained second request.

I am not sure what the ‘placeholder’ field in the prompt() function. Is this meant to fulfil the role I described in this scenario?

thanks for the great work!

Please authenticate to join the conversation.

Upvoters
Status

Needs Triage

Board

Feedback

Tags

Feature

Date

Over 1 year ago

Author

hardeaux

Subscribe to post

Get notified by email when there are changes.