Hi I'm converting a suite bundle into suiteapp . I...
# suite-app
s
Hi I'm converting a suite bundle into suiteapp . In that I used custom record (include 1 record) object XML file in my suiteapp . I then successfully deployed the suiteapp to another account . But only the custom record page came . But the 1 record included during the bundle creation is not reflected in the deployed account ! My questions are : 1. Is it possible to deploy the custom record with the 1 record bundled with it? 2. If yes ? .How can I make the record included during the suitebundling of a custom record to reflect in the suiteapp deployed account ? As I'm doing my first suiteapp , Please provide some solutions. Thanks in advance. Much appreciated. Good day !
m
Are you trying to deploy what is referred to as the record instance? Yes you can. The easiest way when using a suiteapp is to go to the custom record type in netsuite and go to the actions drop down and select download xml and include xml instances and then use that xml file in your project. I use webstorm and it would be nice to get the option when downloading the xml. I get the include record instances when I update the object but the update object doesn't work with the suiteapp unless the object was deployed to the account from the suiteapp which isn't what happens during dev
s
Thanks mate @Matt Bernstein. Will try this .
Hey @Matt Bernstein Could you please tell me how to dynamically add values to a field to the xml instances ?
Right now im hardcoding the values directly in the object file. <instances> <instance scriptid="customrecord_stemly_setting_this"> <name>My first instance of a custom record.</name> <isinactive>F</isinactive> <custrecord_from_date>2018-12-02</custrecord_from_date> <custrecord_end_date>2021-12-02</custrecord_end_date> <custrecord_username>test_user@stemly.ai</custrecord_username> <custrecord_download_api></custrecord_download_api> <custrecord_upload_api></custrecord_upload_api> <custrecord_token_api></custrecord_token_api> </instance> </instances>
m
If you go to the custom record type in netsuite, on the actions dropdown, download xml & include record instances is the easiest way to start with If you're using webstorm, you can also right click on the object and select update object with account object and then it should ask if you want to include record instances, select yes.
s
Got that mate. Thanks again ..I'm asking that : in that XML file , in <Instances> can I add dynamic values like https.[accountId].cutrecord.nl. where accountId is the variable which takes the account Id of the account that the suiteapp is deployed to.
m
I would say most likely not. Are you trying to set a text field value? If you need an account specific value that you're also not deploying, I would recommend running an after install script to update the instances you're wanting updated with that value