I am creating custom power bi embedded visuals and saving it using report.save(). Can I add custom properties like id or anything else on the visual and save it. So next time if I getVisuals(), I will get that custom properties too.
Code
page.createVisual('areaChart').then((visual) => {
visual.setProperty('id','1') or visual.AddDataField('id','1')
})
report.save()
Is this possible to do?
No, we cannot set custom properties in powerbi visuals. The list of allowed properties is definite, you can find the list in the wiki.