cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of node if onlytwo fields from source exists

Former Member
0 Kudos

Hi , I have a requirement to create a node for as many existences of 2 fileds in the source . example for every occurance of filed D and C in the source , i need to creat a node X. How can i achive this . Some direction please.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

its very simple use exists function to check whethere two fileds available or not,then use and function,if both exists then it and function return true then use create if fucntion to create element.

or

use simple udf ,pass two string arguments and check the condition or write simple logic.

Regards,

Raj

Former Member
0 Kudos

Hi I tried this but it only clreates one target node. If there are 3 existance of the source pairs then also it creates only 1 target node.

Former Member
0 Kudos

Hi , When i changed the context for the source fields it worked thank you .

Answers (1)

Answers (1)

former_member181962
Active Contributor
0 Kudos

Hi Sudheer,

Use the exists function and Boolean and function

field1 exists
                      \               and - if           target
field2 exists    /              Constant    /

Regards,

Ravi Kanth Talagana