How to render cesium ion KML assets type?

I have uploaded KML files with Polygon and Points to cesium ion account. I want to render these KML files on globe. When i will try to render KML asset type in my application it didn't work. I will try following code.

1.
var options = {
   camera: viewer.scene.camera,
   canvas: viewer.scene.canvas
};

var kmlFile = viewer.dataSources.add(Cesium.KmlDataSource.load('fileName.kml', options));

viewer.zoomTo(kmlFile);
            
2.
Cesium.IonResource.fromAssetId(assetID).then(function(resource) {
   var options = {
        camera: viewer.scene.camera,
        canvas: viewer.scene.canvas
        };
        viewer.dataSources.add(Cesium.KmlDataSource.load(resource, options));
                        });

Thanks

Are you getting any errors in the browser console?

If not, can you share a Sandcastle link (https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/) to this sample? (You can click “Share” in the top navbar then paste the link here).

I have find the solution and it is working now. Thanks