# addObject in GenieACS

**URL:** <https://forum.genieacs.com/t/addobject-in-genieacs/5815>\
**Category:** Uncategorized\
**Created:** [August 6, 2024, 7:25am UTC](https://forum.genieacs.com/t/addobject-in-genieacs/5815 "2024-08-06T07:25:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luckyloser](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@luckyloser](https://forum.genieacs.com/u/luckyloser)\
**Post date:** [August 6, 2024, 7:25am UTC](https://forum.genieacs.com/t/addobject-in-genieacs/5815/1 "2024-08-06T07:25:09Z")

</div>

Hello, need advice. How can i add this new custom parametrs to GenieACS

```auto
> var response = cpe.AddObject('InternetGatewayDevice.UserInterface.X_DLINK_RU_CustomRemoteAccess.', '')
> var parameters = new Array ();
> 
> parameters[0] = {name:'InternetGatewayDevice.UserInterface.X_DLINK_RU_CustomRemoteAccess.1.IPAddress', value: '192.168.152.22', type: 'xsd:string'};
> parameters[1] = {name:'InternetGatewayDevice.UserInterface.X_DLINK_RU_CustomRemoteAccess.1.Protocol', value: 'HTTPS', type: 'xsd:string'};
> parameters[2] = {name:'InternetGatewayDevice.UserInterface.X_DLINK_RU_CustomRemoteAccess.1.PublicPort', value: '8443', type: 'xsd:unsignedInt'};
> parameters[3] = {name:'InternetGatewayDevice.UserInterface.X_DLINK_RU_CustomRemoteAccess.1.Enable', value: '1', type: 'xsd:boolean'};
> 
> cpe.SetParameterValues (parameters, 'commandKey5.4.1');

```

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [August 6, 2024, 4:44pm UTC](https://forum.genieacs.com/t/addobject-in-genieacs/5815/2 "2024-08-06T16:44:32Z")

</div>

See this post for how to accomplish what you are trying to do.

> [@Genieacs API - addObject doesn't return instance ID](https://forum.genieacs.com/t/genieacs-api-addobject-doesnt-return-instance-id/361/2):
>
> So… I’ve battled this exact use case before and I can tell you to quote Steve Jobs, your “holding (doing) it wrong” slight_smile First off, because of the underlying async nature of how communication with the CPE occurs, its going to be near impossible to get the instance ID. Genie does a good job of trying to make the async communication with the CPE appear synchronous, but at a fundamental level the addObject could actually occur at any point in time (now, or hours from now). So here is ho…
