I am working on Ax 2012 R2.
When I configure an Item in sales Line it is generating the new config Id as below.
Now I have a requirement to generate that Config Id by X++.
can anybody suggest how can I achieve this. I have Item Id and other parameters but dont have an Idea from where to start the coding to generate that configuartion Id.
Hariyadav said:I have Item Id and other parameters but dont have an Idea from where to start the coding
What does that mean? Please elaborate
I mean I need to generate the config Id through the Job(X++) ,to generate that I have Item Id (I know ItemId )and other attributes(Variants).
But dont have an Idea how to do it by code.
Why do you have to do it with code when the configure line option in AX already does that?
I have a requirement that I need create BOM and BOM lines By X++, through Excel Data which is providing by client while creating the BOM lines I need to generate new config id and I need to assign it to the BOM line
Do you mean creating a product variant? If so, what is the configuration technology on the product?
Yes Kranthi. I need to create product variant.
Kranthi said:what is the configuration technology on the product?
It is predefined configuration technology..
You can use this method to create a variant, \Classes\EcoResProductVariantManager\createProductVariant
For reference see, \Classes\RetailKitConfigurator\insertNewVariant
I have checked the above but could not understand.
Can you please help how exactly to generate new configuration Id and assign it BOM line?
Which part of it you didn't understood?
Have you looked at this method?
Insert data into,
and call EcoResProductVariantManager::createProductVariant
I am not able to see that class itself under AOT