I'm trying to include a secret in an SDF app... I'...
# sdf
b
I'm trying to include a secret in an SDF app... I've got the API Secret setup such that it is "Available to SuiteApp". However, when trying to do
suitecloud project:deploy
I'm getting:
Copy code
The deployment process has encountered an error.
Deploying to TSTDRV1234567 - ACME INC - Administrator.
2021-07-29 11:57:25 (PST) Installation started
Info -- Account [(PRODUCTION) ACME INC]
Info -- Publisher ID [com.acme]
Info -- SuiteApp [com.acme.proj (1.0.0)]
Info -- Framework Version [1.0]
Validate manifest -- Success
Validate deploy file -- Success
Validate objects -- Failed
Validate files -- Success
Validate folders -- Success
Validate translation imports -- Success
Validate preferences -- Success
Validate flags -- Success
*** ERROR ***

Validation failed.

An error occurred during custom object validation. (custsecret_mine)
Details: Referenced secret: 'custsecret_mine' is not available.
File: ~/Objects/custsecret_mine.xml

2021-07-29 11:57:26 (PST) Installation FAILED (0 minutes 1 second)
Content of
~/Objects/custsecret_mine.xml
:
Copy code
<secret scriptid="custsecret_mine">
</secret>
Any tips? Is there a different id I should be using, other than the one that shows as the ID in NetSuite? Is this not supported?
Well, I tried it against a different account, and don't get that error. Apparently you can't import the secret into the account where the secret is defined