29
Views
1
Comments
Solved
Existing Entity create function
Question

When making an client action to create an entity. i see see option of an existing action

This CreateGroup does ask for a Srouce and I have no clue what to put in there. Does anyone have any documentation on this?

2023-02-03 09-48-00
Chris van den Heuvel
Solution

You're not creating an entity, you're creating a record inside an entity. What it's asking for is the record that needs to be created. You can do this by for example having the source be a variable with it's data type set to that entities record type. In your case that would mean having a variable with the data type 'Group Record Type'. You can assign the all attributes of the record in an assign node before the 'CreateGroup' action. You can also hover over 'Source', which will make a plus icon appear, click on that and you'll be able to assign every attribute there. I'd highly recommend following the tutorials however. This one in particular seems to overlap with what you're asking:
https://learn.outsystems.com/training/journeys/logic-641/demo-how-to-create-and-use-actions/o11/332

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