UserId = 0

Hello everyone, I hope you're doing well

I'm new in outsystems, I'm trying to create users and each time the id =0 which is causing me so much problems that i can't retrieve anything right about the user I'm logged in with.

If anyone could help me please.

  This is the Database

This is the Creation flow


This is the create or update user from inside

and this is the debugging

Thank you so much in advance.

Solution

Hey!

I could see that on your files you are not assigning the UserId to the requests, that's why you are not seeing the user ids or even the attributes from the User. Once you do this I think you will be able to see all the requests!

Let me know if it helped you!

Regards,

Márcio

Hey!

Can you share an OML?

I see that you are getting UserData, but the id is really 0.

Kind Regards,

Márcio


Yes sure I will
Can you please check your Messages

Regards,

Afnan

mvp_badge
MVP

Hello Afnan,

Hope you're doing well.

Can you share it in the post so we can take a look?

Kind regards.

Hello Rui,

Thank you for your attention.

https://we.tl/t-zlrR1j8eqC

This is the first version which i was disappointed from, so I decided to rework the whole project

https://we.tl/t-0klCptllQS
this is the second one
there is difference in the data base of the both projects

Thank you so much,

Regards.

Hi @Afnan Asad,


Please refer to the attached OML which is fixed.


Once user is created you have to assign created userid before creating employees.


Regards,

Vinod

UserApp.oml

Hi @Vinod Kumar ,

Thank you for your help, but unfortunately its still giving me 0, nothing changed.

Kind Regards,

Afnan

Solution

Hey!

I could see that on your files you are not assigning the UserId to the requests, that's why you are not seeing the user ids or even the attributes from the User. Once you do this I think you will be able to see all the requests!

Let me know if it helped you!

Regards,

Márcio

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.