Skip to main content
Question

How to assign value in the Data Table assign action?

  • 6 December 2022
  • 7 replies
  • 1297 views

If I assign value in the Data Table it display the variable name along with $ instead of variable value.

  1. This is my flow.
    Flow
  2. Assigning ‘Hi’ string value to the samplestring variable.
  3. Then assigning the string variable to data table
  4. the the value is displayed.
  5. But the output contain only the variable name.
  6. Do I need to change anything?
Assign string variable in the dataTable assign action
Output

 

7 replies

Userlevel 7
Badge +13

Hi @Mohan 780 ,

 

May I know your actual requirement here?

Are you trying to add data into the Data Table or do you need to see the contents of this Data table?

Badge +1

I need to add data into data table. If I add string variable in the data table and print the value in message I got the Variable name (Like $SampleString) instead of value ( Hi ). Refer the second screen shot I have attached in above post. Thank you.

Userlevel 6
Badge +16

Hi @Mohan 780 

As per the above description you want to insert the sample String value in the table, try below steps,

Use Data Table: Assign command for Assigning the value of the source table variable to the destination table variable

Userlevel 4
Badge +7

Hi @Mohan 780 ,

I see that @ChanduMohammad has beaten me to the chase(like always), but the key question is, 
“What exactly is it that you are trying to achieve?”
If you are simply exploring, then explore away, however if its something project specific then we are always happy to help you out, so long as you...

Mark my answer as the solution!

Nah I’m just kidding.
So long as you provide adequate details, which includes context, as that would put us in a much better position to help you out.

Kind Regards,
Ashwin A.K

Badge

hello sir
I have an question 
 I want to set value into data Table and does not work could you help me?

 

Badge

Hi @Mohan 780 , Were you able to resolve this issue?

Badge +7

@Ashwin A.K @keerthi_guruprasad @ChanduMohammad  I have this same issue. Here is a simplified example of what I am trying to do.

I have 3 table columns and want to put values into row 1.

My Data Table: Assign step is configured like this:

There you can see it allowed the inserting of variables as table values.

 

When I run this and pick up the row as a record, then display the variables, its giving the variable name rather than the value:

 

So the way this is working is counterintuitive and I cannot find documentation on how this action is actually supposed to work. Looking for your thoughts. Thanks!

Reply