Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Setting custom form in custom record
Hi,
I have to create custom record,I am using following code to set the custom form.
CustomRecord customrecord1 = new CustomRecord();
RecordRef rt= new RecordRef();
rt.name = "Scan";
rt.internalId = "17";
customrecord1.recType = rt;
RecordRef form2 = new RecordRef();
form2.setInternalId("43");
customrecord1.setCustomForm(form2);
WriteResponse response2 = port.add(customrecord1);
but i am getting error saying that "Error: Invalid custom record type key",
Can anyone help me in setting the custom form.