The selected page Profile expects an object of type Adminstration.Account which is not available here.

0
I am trying to make a profile page for my app that allows the current user to change their profile picture and edit their user bio. I decided to make a little user icon with a show page action in the navigation tab for the user to click on access this page. I am receiving this error stating that account is not available in the navigation window. Although I think that the data view calls the object into the page so I am very confused. Some help would be greatly appreciated! I put some screenshots below: 
asked
2 answers
2

Hi Christopher,

 

System.User != Administration.Account

If you want to work with Administration.Account you need to retrieve the object of type Administration.Account first.

Option 1: You can call a microflow with open page logic retrieveing the Administration.Account object first.

Option 2: You can add a dataview to the layout next to the navigation and make it look similar.

In the microflow you place a retrieve activity with

  • Entity = Administration.Account
  • Range = First
  • XPath = [id = $currentUser]

 

Hope that helped

answered
0

Hello Christopher

You can achieve the same in your menu navigation layout also instead of creating separate menu.

1.Retrive the account from microflow and return account as object.

2.On click of the Profile account Pic call another microflow which will open popup page to change your profile pic and other details .image.png

 

image.png

 

 

 

answered