This is the repository for Team Theta's Hackathon project that was held on January 28th & 29th at the 2023 Summit at the Wynn Hotel in Las Vegas, Nevada.
Github Action leveraging Acumatica's REST API for publishing customizations that were released for 2022 R2.
https://{{baseUrl}}/entity/auth/login
{
"name": "{{name}}",
"password": "{{password}}",
"company": "{{company}}",
"branch": "{{branch}}"
}
https://{{baseUrl}}/CustomizationApi/Import
{
"projectLevel": 1,
"isReplaceIfExists": true,
"projectName": "ThetaHackathon",
"projectDescription": "Customization Project for Team Theta",
"projectContentBase64": "UEsDBBQAAAAIAHaHOFaekXSEuWEAAB6BAAALAAAA ..."
}
Set the isOnlyValidation flag to true to check if the customization is valid
https://{{baseUrl}}/CustomizationApi/publishBegin
{
"isMergeWithExistingPackages": false,
"isOnlyValidation": true,
"isOnlyDbUpdates": false,
"isReplayPreviouslyExecutedScripts": false,
"projectNames": [ "ThetaHackathon" ],
"tenantMode": "Current"
}
Set the isOnlyValidation flag to false to publish the customization to production
https://{{baseUrl}}/CustomizationApi/publishBegin
{
"isMergeWithExistingPackages": false,
"isOnlyValidation": false,
"isOnlyDbUpdates": false,
"isReplayPreviouslyExecutedScripts": false,
"projectNames": [ "ThetaHackathon" ],
"tenantMode": "Current"
}
To check the status of a validation or publication, use publishEnd endpoint. You may need to check periodically every 30 seconds to see if the isComplete flag is true.
https://hackathon.acumatica.com/Theta/CustomizationApi/publishEnd