How can i create two VRA records at a time .

sushma9
Tera Contributor

Hi Team,

 I have requirement  where i need to create the two VRA records  and the vra record will be created when i clicked on the  Create VRA  UI Action . as of now when i am clicking on the UI Action Only one VRA record is creating and i need to create two VRA records at a time . How can i achieve this .

1 ACCEPTED SOLUTION

Hi @sushma9 ,

 

If u want to create two records then u can apply for loop here n check. Something like this

for (var i=0;i<2;i++){
if(i=1){
gr.short_description = 'test2';
}else{
gr.short_description = 'test1';
}
}

 

Thanks,

Danish

 

View solution in original post

16 REPLIES 16

@Danish Bhairag2 

Thanks for the response and i need to create the two records with different info. Can you please how can i do that

sushma9
Tera Contributor

@Danish Bhairag2 

I neee to update the two records with two different info like record 1 should be as it is and record 2 should be updated with descrtiption - test like that 

Hi @sushma9 ,

 

If u want to create two records then u can apply for loop here n check. Something like this

for (var i=0;i<2;i++){
if(i=1){
gr.short_description = 'test2';
}else{
gr.short_description = 'test1';
}
}

 

Thanks,

Danish

 

@Danish Bhairag2 

Thank you for the solution and here i am facing one issue and the issue is when  two records are created then there is Message which will be trigger in the form and its coming twice . It should not be trigger the message Twice and only one Message has to come

Hi @sushma9 ,

 

Can u share which message is coming?

 

Thanks,

Danish