Query Parameters in the Rest Step inside action step in Flow Designer

Ali_Rizvi
Tera Contributor

I have created an outbound rest message to get jobs linked to a pipeline from the GitLab instance.

However, when I build the request from the rest message, I cannot get the query parameter passed to the method correctly.
The get method is https://gitlab,com/projects/1234/pipelines/${pipeline_id}/jobs
I have entered the query parameter as follows:

pipeline_id    876

And nothing seems to work.

Please note that this is the rest step inside of an action in flow designer.

Any help is much appreciated.

1 ACCEPTED SOLUTION

Rajesh Chopade1
Mega Sage

Hi @Ali_Rizvi 

The issue is that you're passing pipeline_id as a query parameter, but based on the structure of the URL (/projects/1234/pipelines/${pipeline_id}/jobs), it should be a path parameter.

 

I hope my answer helps you to resolve your issue if yes please mark my answer as helpful and correct 

Thank you

Rajesh

View solution in original post

2 REPLIES 2

Rajesh Chopade1
Mega Sage

Hi @Ali_Rizvi 

The issue is that you're passing pipeline_id as a query parameter, but based on the structure of the URL (/projects/1234/pipelines/${pipeline_id}/jobs), it should be a path parameter.

 

I hope my answer helps you to resolve your issue if yes please mark my answer as helpful and correct 

Thank you

Rajesh

Ali_Rizvi
Tera Contributor

Thanks @Rajesh Chopade1 I removed the query parameter and instead passed the input as data pill from the previous step and it worked. Thanks for the reply.