I'm trying to add a webmap from an arcgis enterprise portal. I followed the tutorials on esri WebMap API with the following link: WebMap API Reference
I'm getting the following error: Invalid portal item type 'Web Mapping Application', expected 'Web Map'
You can see in the code that I've already specified the type of the portal Item to 'Web Map'
Any Idea about what's happening?
Here's how I'm adding the Webmap:
Hi,
I guess your chosen ID belongs to the Web Mapping Application not to a Web Map
How do you specify the type of the application if may I ask?
If you look in the Content, you see what kind of item it is.