hi @altair , I assume you are adding the graphic to the map using PictureMarkerSymbol you can use attributes and popup template while creating the graphics to display the popup on click. please refer the code below:
var pointGraphic = new Graphic({
geometry: pointGeometry,
symbol: PictureMarkerSymbol,
attributes: {"ID":"0", "Name":"xxx"},
popupTemplate: {
title: "Name",
content: "you can define any object here..."
}
});
Please check the samples & help document at: popup-customcontent
Regards,
Kishore