The selected page Home expects a root object. It cannot be set as home page.

I am trying to display username on the home page. I am using authentication widgets to create login page. I want to access the username entered on the home page. As far as I understand I would need a data view and attach it to the corresponding entity to achieve the same. But I get error as mentioned in Title. How do I achieve this?
1 answers

Hi Manish,

You can accomplish this by using a dataview with a microflow data source. 

Here is a quick example:

I added a dataview to my  homepage that has a datasource of microflow. The microflow returns an account object and inside the dataview I'm displaying the Name attribute (which is username when logging in) and I'm rendering it as text. 


Here is the microflow that I used for the dataview. It returns the account object, so I can display username or any other attribute from the accounts table.

It uses the current user token to cast the Account object. 


Also, you can import that microflow into your project if you copy the link and press ctrl-v in your modeler. 


Hope this helps!