Discusiones
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
We’re excited to announce that the 2025 Community Recap is now available! This special recap highlights the amazing contributions and achievements of our members over the year and celebrates the collective success of our community.
Check your personalized recap to see the impact you made in 2025 and how your efforts helped shape our community’s growth and success.
View Your 2025 Community Recap
Thank you to everyone for your passion, collaboration, and support. Here’s to building an even stronger community together in the year ahead!
Obtener el Tipo de Entidad Seleccionado en Empresa en el Contacto a usar en nlapiLoadRecord
Se aplica a
Producto: NetSuite 2023.2
Escenario
Este artículo contiene un script de ejemplo que obtendrá el tipo de registro del valor seleccionado en el campo Empresa de un registro de contacto para que se pueda utilizar para nlapiLoadRecord.
Al navegar a Listas > Relaciones > Contactos > Nuevo, el campo Empresa está visible.
El campo EMPRESA es un campo estándar que contiene la lista de registros de entidad. Ejemplo. Cliente, Proyecto/Trabajo, Proveedor.
Si la entidad se define como parámetro TYPE para nlapiLoadRecord, se devuelve un error que indica: "SSS_INVALID_RECORD_TYPE"
Solución
Con el uso del script siguiente, se recupera el tipo de registro COMPANY seleccionado y se puede utilizar para la API nlapiLoadRecord.
¡Hola, Bienvenido/a!
Para ver los detalles completos, inicia sesión.
¿No tienes una cuenta? ¡Haz clic aquí para comenzar!