When we add a Contact using Power Portal the default owner is "SYSTEM". I have a requirement to change the newly added contact's owner i.e. "SYSTEM" to the one with the owner of currently logged-in users, the owner of the logged-in contact is always going to be an office365 user.
For implementing the same I have created an automated flow that triggers when a record is created and then updates the value of the owner. But the problem is I am unable to get the Currently logged-in user's owner detail in the flow. How can get the current login user's owner name in the flow
Furthermore, please do share any alternate solutions if any.
Solved! Go to Solution.
Hi, this video might help: https://www.youtube.com/watch?v=R_l_AXBJjxo
The owner will always be a system user, the idea is to create separate columns for Created By (Contact)
Power Pages Super User | MVP
Hi @pthakur ,
What you can do is create a new field called Modifed By Portal Contact or something similar. It should be a reference to the Contact table. Then when logged in contact creates another contact you can populate that field with Basic Form Metadata via Set on Save option. This will allow you to have a reference to contact that you can later use in the flow/workflow. Keep in mind that this approach cannot be used on the editing form if contact will update its own record - that will create an infinite loop and throw an error.
Hi @OOlashyn , thank you for responding. Using Created By Portal Contact column, I am able to get the logged-in user id but unable to get the Owner for the same user/contact. Can you please share how to do that? Can we do a lookup?
@OOlashyn, I got what you meant in your reply I created Metadata for the entity Form as below but still, the Owner is always "system user". Am I missing something?
Hi, this video might help: https://www.youtube.com/watch?v=R_l_AXBJjxo
The owner will always be a system user, the idea is to create separate columns for Created By (Contact)
Power Pages Super User | MVP