Rename Item No.
sharjs4u
Member Posts: 3
Hi Dynamics Nav People,
can some body please help me on how to to rename item no through report or code unit. Becuase i have more than 5000 items for rename and i am tired of doing it manually. If anybody can please provide me with the objects, that will be a great help for me.
Thanks
.
Waiting for your reply.
Regards,
Sharjs
can some body please help me on how to to rename item no through report or code unit. Becuase i have more than 5000 items for rename and i am tired of doing it manually. If anybody can please provide me with the objects, that will be a great help for me.
Thanks
Waiting for your reply.
Regards,
Sharjs
0
Comments
-
Did you check the function rename? ;-)Do you make it right, it works too!0
-
hi, i don't know exactly, but why do you want?

It is very dangerous, please rethinking again. if you change directly the Item No (primary key) it could be occurs problem at several other places.
Or this is only at the beginning of the Implementation phase?
but if it is yes, the old method is that you have to copy the record to a different record variable of Item with the New Item No, delete the old one and Insert the new one.
But if you are using 4 or 5, there is a FINDSET to use, in this case not necessary the delete and insert method...
But :!: please think what is happening after this changes.0 -
Asallai wrote:hi, i don't know exactly, but why do you want?

It is very dangerous, please rethinking again. if you change directly the Item No (primary key) it could be occurs problem at several other places.
Or this is only at the beginning of the Implementation phase?
but if it is yes, the old method is that you have to copy the record to a different record variable of Item with the New Item No, delete the old one and Insert the new one.
But if you are using 4 or 5, there is a FINDSET to use, in this case not necessary the delete and insert method...
But :!: please think what is happening after this changes.
This is the approach that will get you in trouble, as the related tables will not be updated. Using the RENAME function will also update related tables. So even if you have transactions against these items the data will be updated properly. This of course assumes that when any modifications were done, proper table relations were defined.There are no bugs - only undocumented features.0 -
This is the approach that will get you in trouble, as the related tables will not be updated. Using the RENAME function will also update related tables. So even if you have transactions against these items the data will be updated properly. This of course assumes that when any modifications were done, proper table relations were defined.
You are right, thank you. :-#0 -
Thanks every one. The only problem is i am not good in coding and i dont know how to write them. So If some body can please help me on writting the code or send me the object that will be a great help. Right now i am doing renaming of item one by one, and its taking lot of time.
Thanks once agian.
Regards,
Sharjs0 -
Contact your partner in case you work for client else your senior for support. Working with little or no knowledge is dangerous.CA Sandeep Singla
http://ssdynamics.co.in0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions