"Create Access is denied!" Error when creating Automation through SSJS/AMPscript
Trailblazer Community

"Create Access is denied!" Error when creating Automation through SSJS/AMPscript

Marketing Cloud Automations , Marketing Cloud API , Marketing Cloud Pages/Sites

Last updated 2019-11-19 ·Reference W-4812511 ·Reported By 0 users

No Fix

Summary
When attempting to utilize SSJS/AMPscript to create an automation, the error "Create Access is denied!" is returned.

Repro
Run SSJS or AMPScript that calls the API to perform a CreateRequest on the Automation object.

Workaround
Utilize WSProxy functionality. Below is example SSJS:

<script runat=server>

Platform.Load("Core", "1");

var prox = new Script.Util.WSProxy();

prox.setClientId({ "ID": INSERT_CLIENTID, "UserID": INSERT_USERID});

var newAuto = {
Name: "SSJS_TEST_AUTOMATION4",
CustomerKey: "SSJS_TEST_AUTOMATION4",
AutomationType: "scheduled"
}

var res = prox.createItem("Automation", newAuto);
</script>

Reported By (0)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.