Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Getting the value names from query activity to javascript node

Avatar

Avatar
Validate 1
Level 1
Ramaswami
Level 1

Likes

0 likes

Total Posts

100 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
Ramaswami
Level 1

Likes

0 likes

Total Posts

100 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
Ramaswami
Level 1

05-06-2020

Hi Team, 

 

i have a query activity and i need to get the values of query into javascript variables. 

 

Ramaswami_0-1591351788524.png

 

This is my workflow : 

 

Ramaswami_1-1591351828715.png

i need to get the event date values that is 1st may and 32st may to javascrpt variables like 

 

vars.fromDate = vars.Getfromquery

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

111 likes

Total Posts

309 posts

Correct Reply

97 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile

Avatar
Validate 1
MVP
_Manoj_Kumar
MVP

Likes

111 likes

Total Posts

309 posts

Correct Reply

97 solutions
Top badges earned
Validate 1
Contributor
Ignite 1
Shape 1
Give Back 5
View profile
_Manoj_Kumar
MVP

05-06-2020

Hello @Ramaswami ,

For this use case, Instead of directly hardcoding the date in query activity you can use a javascript activity in the start to initialize the variables.

Like This:

manojk62306941_0-1591354658152.png

 

Then you can call these variables in the query activity like this:

manojk62306941_1-1591354694691.png

 

 

and then finally call the same variable in the second javascript activity to get the values like this:

manojk62306941_2-1591354760924.png

 

 

And this is how the complete workflow will look like:

manojk62306941_3-1591354813684.png

 

 

Let me know if that helps

 

Answers (0)