Hello,
Try this and let me know if it works:
- Create Random parameter with name “RND”
- Add this in vuser_init() action
vuser_init()
{
char buf[512];
sprintf(buf,"%s%s%s","E:\\test\\",lr_eval_string("{RND}"),"_DPB-05_v2.xlsx"); // change the file path to save file
lr_save_string(buf,"FileName");
return 0;
}
- Download Action.c from attachment
Try to run this script in controller. Script is working fine at my end.
Thanks,
Deepak