I have created an canvas app for registring element. The app is connected to a Sharepoint Online list. In the sharepoint list i use som different ContentTypes.
In the app, it is possible to select content type in a dropdown list. But since it is different fields available in different content types i have created on screen to add elements for each content type.
My need is to set default value for the actual content type on the screen. So in the "Incident" screen i like to have ContentType "Incident", and in the "Change" screen i like to have ContentTYpe "Change" as default in the dropdown list. I also like to hide the "ContentType dropdown" list.
I have tried several expressions from this forum, and can set the default value in the dropdowown menu, but when i save - the item i registred with the Sharepoint default contenttype. (When i select contenttype manually in the content type dropdown menu in the app - everything works ok).
Can anyoune please help me with the correct expression to set default content type when i navigate to the actual screen, and so the correct contenttype is stored in Sharepoint.