Skip to main content
alessandrom1708
January 19, 2024
Solved

Adding a record type in a related record type

  • January 19, 2024
  • 8 replies
  • 0 views

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

Best answer by amaans4178

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

8 replies

jayaprakashr0001
Participating Frequently
January 19, 2024

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
January 19, 2024

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
January 19, 2024

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
January 19, 2024

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
January 19, 2024

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

stefanhelzle0001
Brainy
January 19, 2024

That should give you a hint