Hello! I want to add a document to a product, and how do i check if a given field is free and connect the doc with the product
Create a new field on your product template of type MediaPointerFile or MediaPointerImage depending on your needs.
Not sure what you need with your second question, but you can on any field just try and get current value of the field and see if it is set, example: fieldValue = entity.Fields.GetValue<Type(string/int)>(fieldId);
Correct question would be “How can I point a document to a Product”.
Please add version number when placing questions for getting accurate answers
Thank you marten! I did it now, it was very helpful! It is Litium 6 i will write version number next time.