How to get columns values dynamically from Schema | Community
Skip to main content
Level 2
July 27, 2020
Solved

How to get columns values dynamically from Schema

  • July 27, 2020
  • 2 replies
  • 1235 views

hi  

I am trying to get Column values from Schema to use further in workflow. facing issue on this. 

 

Suppose I have table where I can see lots of products and sub-products associated. So one way is using split I need to get product values first and then using further split(s) i get the sub-products values (w.r.to each product) so huge number of splits, making workflow complex to manage.

Example : Split -> Product = product1, Product = product2 etc, and then further splits for each Sub-Products like (Under Product= product1 -> and Split -> sub-product = sub-product1, sub-product 2 and so on...) , so I am trying to get values of products and subproducts dynamically so that in case if any more products and sub products get addedd in future, my workflow should be able to pull those data without any change in logic.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Milan_Vucetic

Hi @csltguptaa 

this could be done on multiple ways depending what is your aim.

You can easily resolve this in JS node with two for loops (one for products and other for sub-product). Loops will iterate and you can do whatever you want with values.

Below is example to create for loop workflow with one parameter (but you can extend it).

For loop as a workflow 

Regards,

Milan

2 replies

Milan_Vucetic
Milan_VuceticAccepted solution
Level 9
August 9, 2020

Hi @csltguptaa 

this could be done on multiple ways depending what is your aim.

You can easily resolve this in JS node with two for loops (one for products and other for sub-product). Loops will iterate and you can do whatever you want with values.

Below is example to create for loop workflow with one parameter (but you can extend it).

For loop as a workflow 

Regards,

Milan

Sukrity_Wadhwa
Community Manager
Community Manager
August 18, 2020

Hi @csltguptaa,

 

Were you able to solve your problem with the given solution? Please let us know. Thanks!

Sukrity Wadhwa