Hey! Does anyone know if it's possible to add fiel...
# suitescript
e
Hey! Does anyone know if it's possible to add fields to a custom record that belongs to another Bundle or SuiteApp via SDF? E.g. imagine that the custom record by default has fields 1, 2, 3 and I want to add fields 4, 5 from my own SDF deployment.
m
Yes you can add new field to records from a bundle in the UI Even if the record is locked
e
Thanks for the response! Yeah, I managed to do that. But can I do that from my SDF project?
n
Why not import the object and add the fields in to the XML and re-deploy and see if the changes stick 😉
e
Hey NElliot 😄 I've tried that as well with some success, specifically by following this: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_1536775078.html#Related-Topics So what I did was to add
bundleid=123
wherever
scriptid
was defined within brackets as mentioned in the guide and then updated my
manifest.xml
to mirror these dependencies accordingly. Unfortunately this specific record has some
translationcollection
object related to it which hinders me from deploying it. As per the following message.
Copy code
An error occurred during manifest validation.
Details: All term references must be to terms in translationcollection objects in the same SuiteCloud project. Terms cannot be referenced in other SuiteCloud projects, bundles, or SuiteApps.
File: ~/manifest.xml
n
What happens if you remove those items from the manifest, presumably it complains that you have not included them?
e
Correct!
I can bypass that by removing the translation from the object though (not ideal). Then I end up with this. So the import/re-deploy dance is not agreeing with me.
Copy code
An error occured during validation of Custom Objects against the account
Details: An object with script ID customrecord_example already exists
It's important for me to only add (append) new fields to the already existing object. I don't want to replace anything that's in place.
n
I suspect because it's locked you cannot deploy then. I never envisioned it would be to be honest.
e
This specific record is actually not locked, the other records in that bundle is.