Fix script to insert record according to condition

Priya75
Tera Contributor

Hi All,

 

I want to write a fix script to insert new records using existing values.

I have a table:- u_test 

inside that there are 4 attributes: - 

PatchingStartEndWeek (reference field)
Sat 01:00 -4:0014:00:0018:00:00first week
Fri 02:00 -5:0015:00:0016:00:00first week
Sun 00:00 -03:0015:00:0020:00:00first week

For weeks I have:- [week2, week3, week4] (reference value)

with each week i want to create new records with same patching, start and end .

I want to make new records with same values Just week needs to be changed to third week. So i need to insert 3 records with same start, end and patching Just need to update week field without updating the actual record.

5 REPLIES 5

Community Alums
Not applicable

Hi @Priya75 ,

Can you please explain me more what you need to do exactly, like you code or you need something else? 

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak