Skip to main content
Solved

Low Code Step: store_data

  • March 13, 2025
  • 2 replies
  • 0 views

Forum|alt.badge.img

Does anyone have an example of using the low code step: store_data? 

I have no problems storing the data, but trying to pass it to the next html step with the data being the URI. 

low_code: id: ID-1 version: 2 steps: - http: uri: /type/10 - json - jmespath: value: "employee[0].URI" - store_data: storage_key

How do I call the stored value? I tried just putting in result_container.metadata["storage_key"] but that is not working. I expect there is some part of syntax I'm getting wrong. 

Doc Used: https://docs.sciencelogic.com/dev-docs/low_code_tools_v102/steps/available_steps.html#steps-store-data

Best answer by MattH

I just re-read your question. You are looking to get a result and then use that in another http step right?
We call that dependent collections. It is documented here. It should still apply to Low-code Tools v102. However, if you still want to use store_data there is an example here.

2 replies

  • Community Manager
  • March 14, 2025

I think the best way to access it in another step is through the standard parameter, metadata. https://docs.sciencelogic.com/dev-docs/low_code_tools_v102/custom/steps.html#standard-parameters This implies that you will be writing a custom step to access the value.


  • Community Manager
  • March 14, 2025

The simplest method to access it in a custom step is to include it in the step parameters when you define the function. This is the same way you request the previous step's results. In the example below, we pull back the metadata value with the key storage_key and return it from the step. It's just meant to show a really simple example of use. All of the other standard parameters work (result, step_args, etc).

@register_processor def get_stored_data(metadata): return metadata['storage_key']