Skip to main content
alessandrom1708
Inspiring
Jan 19, 2024 9:58 AM UTC
Solved

Adding a record type in a related record type

Hi,

I have a record type whose structutre is:

Start:

local!RecordA (
- field 1,
- field n,
- Relationship: Record b1 (
--- field 1,
--- field 2
)

Record a --> b 1:m relationship.

After some manipulation, I want record a to become:

End

local!recordA (
- field 1,
- field n,
- Relationship: { 
        record b1 (field 1, field2), 
        record b2 (field 1: null, field2: null)}

How can i go from start to End? Could you help me?

I hope the aim is clear.

Thanks a lot

amaans4178
Brainy
Jan 19, 2024 10:37 AM UTC

you have to append the value in the relationship of the record
try this ->

8 replies

jayaprakashr0001
Participating Frequently
Jan 19, 2024 10:15 AM UTC

Hi Alessandro ,

You can have record b1 and b2 as the relationship for record A as one to Many relationship.

It will helpful if you share the common relation between the 3 records.

alessandrom1708
Inspiring
Jan 19, 2024 10:19 AM UTC

I know I can, but how can i add a new item Record b2 to record a? I'm looking for functions and syntax to do it.

What do you mean by sharing common relations among 3 records?

harshitb6843
Brainy
Jan 19, 2024 10:20 AM UTC

I am not clear with your requirements. Let's start with where are you using this record (which object) and what are you willing to do there?

alessandrom1708
Inspiring
Jan 19, 2024 10:26 AM UTC

Im' on an interface, i'm populating fields from record A and i want to add items on recordA that have a cardinality of M.

Let's say, my record A is an order, record b contains products related to the order.

What i want to do is to polulate record A (and i'm ok with it), populate record b1 (and still it's ok), then i want to add a new line to add a new product and populate it. What i cannot do so far, is to add a new record (b2)  to insert a new product.

amaans4178
Brainy
Jan 19, 2024 10:37 AM UTC

you have to append the value in the relationship of the record
try this ->

stefanhelzle0001
Brainy
Jan 19, 2024 10:35 AM UTC

That should give you a hint