Hello Everyone, I am trying to access the 'Campaig...
# suitescript
a
Hello Everyone, I am trying to access the 'Campaign Subscription' record using suitescript. I tried with N/search module but later I learned that the record is not available for N/search module. N/query module supports this record type but I am still not able to access its values. The code keeps giving me an error. I am attaching a screenshot of the code & the error that shows up. Any help would be appreciated!
b
make sure whever role you are using to run the search has permission to create a campaign subscription dataset
a
I will check on this. thanks
Can you please elaborate a little on this? Where should I add this permission for a role? under list?
b
you need a role that is able to access campaign subscriptions to do the campaign subscription query
if you dont know the name of the permission necessary to do so
then you need access to a role with access to everything, usually administrator
and then find the url of a page the uses campaign subscriptions
in this case, a url to view a campaign subscription should be fine
then,. using the role that is missing the permission, navigate to the url you found earlier
you should get a permission related error, with an error message telling you the permission you need