11
Views
2
Comments
Create child record; pick up Parent record Id
Question
Hi all;

I know this question is very basic in terms of skill, but I’m new to the OutSystems computing app (all of my coding experience is in VB).

I have a form for Companies, with an embedded list of Company Contacts. When in the Companies form I would like to generate a new Company Contact and have that record pick up the Id of the company; basically, create a child record with the parent record Id reference.

Thanks in advance for any help or suggestions.

Robert
UserImage.jpg
ramsbonthu
Hi Robert,

I am not clear with your question.

But I think this can help you: If you would like to save the Company details and the Company Contact Details in the same form in two different tables change the save functionality of Companies form with extending it to Save the Contact Details after Company Save.

if not, and are using a seperate form to create Contact Details then pass Company ID as the Input parameter.

Feel free to Ask.

Regards,
Rams.
2017-10-02 14-22-21
Paulo Tavares
Staff
Hi Robert, and welcome to the OutSystems community forums.

Indeed, Ramsbonthu gave you the two most common ways to achieve that.

One other suggestion I'll also make is for you to look into the free online training section. It should teach you the ropes in a short time-frame :)

Let us know how it goes, and if you need further help.

Regards,

Paulo Tavares

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