# Default pipeline parameter value not working as expected

**URL:** <https://discuss.circleci.com/t/default-pipeline-parameter-value-not-working-as-expected/45130>\
**Category:** Build Environment\
**Tags:** circle-yml\
**Created:** [August 18, 2022, 10:15pm UTC](https://discuss.circleci.com/t/default-pipeline-parameter-value-not-working-as-expected/45130 "2022-08-18T22:15:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deyvisPedrosa](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/deyvispedrosa/32/30563_2.png) [@deyvisPedrosa](https://discuss.circleci.com/u/deyvisPedrosa)\
**Post date:** [August 18, 2022, 10:15pm UTC](https://discuss.circleci.com/t/default-pipeline-parameter-value-not-working-as-expected/45130/1 "2022-08-18T22:15:57Z")

</div>

Hey everyone! I want to ask for help with the pipeline configuration I am working on.

I’m working on a pipeline that triggers automation tests. In this project/pipeline, we would like to have two different contexts, one for the production credentials/data and another for staging credentials/data. So, apart from choosing the target environment when triggering the pipeline, we want/need to decide which context to use.

So here is the implementation we thought about:

 ![image](https://global.discourse-cdn.com/circleci/original/3X/9/f/9f357f678c59e5ae14b62dfe78986c5dfff8da1c.png)

![image](https://global.discourse-cdn.com/circleci/original/3X/b/a/ba4dd3b8c71543b62f89a42ec6e1102efb2e718d.png)

This work well when triggering the pipeline in the following way:  
 ![image](https://global.discourse-cdn.com/circleci/original/3X/4/d/4d083ae36d0c9e91421412a35c6e5e53429a720c.png)

But it doesn’t recognize the workflow context when triggering the following way (using default values):  
 ![image](https://global.discourse-cdn.com/circleci/original/3X/5/4/543e6ec290e0749b8b961963e43fc264018b3357.png)

I would appreciate it if anyone could shed some light on it. I appreciate any help/suggestion you can provide.
