Hi everyone,
Could you please help me out with some answers :
1- Is it possible to import multiple pictures (e.g. for items) at once in Business Central?
2- Is there a complete list of fields with type, length and format?
Thank you in advance!
Hi everyone,
Could you please help me out with some answers :
1- Is it possible to import multiple pictures (e.g. for items) at once in Business Central?
2- Is there a complete list of fields with type, length and format?
Thank you in advance!
Thank you Ivan!
Thank you Stefano!
Thanks for this update Ivan. Nice to know.
Hi both
This is to inform you that we have feature in pipeline going out with January update of Business Central that resolves this (Bulk Import of Item pictures).
Here's the idea that triggered this feature.
https://experience.dynamics.com/ideas/idea/?ideaid=64d45902-c931-e711-80c0-00155d4616d6
You cam import an Item picture by code in the following way:
if UploadIntoStream('', '', '', FileName, FileInstream) then
begin
Clear(Item.Picture);
Item.Picture.ImportStream(FileInstream,FileName);
Item.Modify(true);
end;
where FileInstream is an InStream object.
UploadIntoStream asks for a file. To massively import pictures, I think you'll have to upload them to a remote source (like azure or similar), reading the images as stream and use that code for saving. You could also use a ZIP archive.
The trick is using InStreams, but I don't have a ready example.
Hi Stefano,
Thank you for getting back.
Would you please be able to suggest a workaround for the 1st question? I know it is possible to do this one by one .
Thank you!
1) Not in a standard way
2) No but you can download a local sandbox (Docker-based) and from here you can access the CSIDE environment too (with accesso to all objects).