I want to create Deals with a specified layout in the PHP SDK.

I want to create Deals with a specified layout in the PHP SDK.

I am trying to create Deals with the PHP SDK.
I'm trying to create a Deals using the PHP SDK. I'm trying to create a Deals from multiple layouts by specifying the most recently created layout, but it's created as Standard.

I have just recently developed with the SDK, so I would like to know more about it.
  1. $rec->addKeyValue('layout', ["name" => "layout_name", 'id' => $val['layout_id']]);
↑ The first one you are passing is the api name "layout", does this mean that you are specifying the api name defined in the CRM api page?

The api name defined in CRM is Layout and is capitalized.
However, if you pass it in upper case, it will not be created properly.
If you pass it in lower case, it will be created successfully, but it will be Standard, not the specified layout.

I am not very good at English so this may be a little difficult to read, but thank you in advance.
If possible, I would like to ask a lot of questions here in the chat, not by e-mail.