I tried to change the database connection that was pointing to my Orange Pi Zero portable Linux server to my AWS MySQL Linux DB. It wanted to create the DB rather than just connecting to it. Is this normal or is there another method beyond the Acumatica ERP Configuration utility?
- Community
- Discussion Forums
- Other Developer Topics
- Acumatica Linux MySQL
Acumatica Linux MySQL
- August 23, 2025
- 41 replies
- 503 views
41 replies
- Author
- Jr Varsity II
- August 30, 2025
I have the ScriptBasic REST Acumatica interface working on Windows Server 2025.
' Acumatica REST - Customer by ID
IMPORT curl.sbi
IMPORT webext.sbi
base_url = "http://[server-url]/mysqldb/entity/auth/"
auth_str = web::base64_encode("admin:password")
jstr = """
{
"name": "admin",
"password": "password",
"company": "Company"
}
"""
' Login
ch = curl::init()
curl::option(ch, "URL", base_url & "Login")
curl::option(ch, "HEADER")
curl::option(ch, "HTTPHEADER", "Content-Type: application/json")
curl::option(ch, "HTTPHEADER", "Authorization: Basic " & auth_str)
curl::option(ch, "POSTFIELDS", jstr)
response_headers = curl::perform(ch)
crumbs = web::MakeCookies(response_headers)
curl::finish(ch)
' Customer
ch = curl::init()
curl::option(ch, "URL", "http://[server-url]/mysqldb/entity/Default/24.200.001/Customer/ABARTENDE?$expand=MainContact,MainContact/Address")
curl::option(ch, "HTTPHEADER", "Content-Type: application/x-www-form-urlencoded")
curl::option(ch, "HTTPHEADER", "Cookie: " & crumbs)
curl::option(ch, "HTTPHEADER", "Authorization: Basic " & auth_str)
json = curl::perform(ch)
curl::finish(ch)
' Logout
ch = curl::init()
curl::option(ch, "URL", base_url & "Logout")
curl::option(ch, "POST")
curl::option(ch, "HTTPHEADER", "Cookie: " & crumbs)
curl::option(ch, "HTTPHEADER", "Authorization: Basic " & auth_str)
curl::option(ch, "HTTPHEADER", "Content-Length: 0")
curl::perform(ch)
curl::finish(ch)
web::json2sba(json)
PRINT json{"CustomerID"}{"value"},"\n\n"
PRINT json{"CustomerName"}{"value"},"\n"
PRINT json{"MainContact"}{"Address"}{"AddressLine1"}{"value"},"\n"
PRINT json{"MainContact"}{"Address"}{"City"}{"value"},", "
PRINT json{"MainContact"}{"Address"}{"State"}{"value"}," "
PRINT json{"MainContact"}{"Address"}{"PostalCode"}{"value"},"\n\n"
PRINT json{"MainContact"}{"Phone1"}{"value"},"\n"
PRINT json{"MainContact"}{"Email"}{"value"},"\n"
END
OUTPUT
C:\Acumatica>sbc fullcust.sb
ABARTENDE
USA Bartending School
201 Lower Notch Rd
Little Falls, NJ 07424
+1 (908) 532-9522
barkeep@usabartend.con
C:\Acumatica>
- Author
- Jr Varsity II
- August 31, 2025
*** WARNING ***
If you are running Acumatica on a version < than R25.1 and plan to upgrade to R25.1, your DB will fail with a character set error after you login. This has been confirmed by another senior Acumatica developer as well. I tried multiple MariaDB versions with no luck.
Your option it to go back to Oracle MySQL 8 or use a Linux DB server running MariaDB 15.
A remote Linux MariaDB server runs faster than MS SQL running on the same server as Acumatica.
- Author
- Jr Varsity II
- August 31, 2025
I wonder what Acumatica changed with a table(s) in R25.1 that broke the Windows version MariaDB? I've never seen a DB before with so many column character sets being used.
The issue is Acumatica uses Oracle MySQL 8 libraries with their MySQL offering. Nowhere in the install guide does Acumatica mention MariaDB as an option to Oracle MySQL.
The MariaDB for Windows is seriously behind its Linux version which works with Acumatica R25.1 and is at release level 15. This is what Clouds-R.Us is using as an Acumatica remote DB.
- Author
- Jr Varsity II
- September 2, 2025
The following is an example of emulating the REST Customer call with a direct SQL statement in ScriptBasic using the Linux MySQl extension module. (running on Clouds-R.Us subdomain)
CODE
' MySQL Test Program
IMPORT mysql.bas
dbh = mysql::RealConnect("demo.clouds-r.us","Acumatica","password","Acumatica_demo")
SQL = """
SELECT
BAccount.AcctCD,
BAccount.LegalName,
ARContact.Phone1,
ARContact.Email,
Address.AddressLine1,
Address.City,
Address.State,
Address.PostalCode
FROM
BAccount
INNER JOIN
Customer ON BAccount.BAccountID = Customer.BAccountID AND BAccount.CompanyID = Customer.CompanyID
INNER JOIN
ARContact ON ARContact.ContactID = BAccount.BAccountID AND ARContact.CompanyID = BAccount.CompanyID
INNER JOIN
Address ON Address.AddressID = BAccount.DefAddressID AND Address.CompanyID = BAccount.CompanyID
WHERE Customer.CompanyID = '2' AND BAccount.DeletedDatabaseRecord = 0
ORDER BY BAccount.AcctCD;
"""
mysql::query(dbh,SQL)
WHILE mysql::FetchArray(dbh, col)
PRINT col[0]," | ",col[1]," | ",col[4]," | ",col[5]," | ",col[6]," | ",col[7]," | ",col[2]," | ",col[3],"\n"
WEND
mysql::Close(dbh)
OUTPUT
ABARTENDE | USA Bartending School | 201 Lower Notch Rd | Little Falls | NJ | 07424 | +1 (843) 232-2323 | marinagolf@mail.con
ABC | ABC Demo | 123 Main Street | Lynden | WA | 98264 | + 49 (99111) 4351146 | mail@cartridge-wold.con
ABCHOLDING | ABC Holdings Inc | 65 Broadway | New York | NY | 10006 | +1 (469) 098-0988 | traderneill@oneill.con
ABCSTUDIOS | ABC Studios Inc | 77 W 66th St # 13 | New York | NY | 10023 | +33 (777) 05 76 87 7 | secretary@email.con
ACTIVESTAF | Active Staffing Service | 460 W 34th St | New York | NY | 10001 | 619-322-2222 | cbarnes@swfood.con
ALPHABETLD | Alphabetland School Center | 2466 Sunrise Hwy | Bellmore | NY | 11710 | +1 (212) 262-4896 | staramerica@mail.con
AMROBANK | AMRO Bank Japan | 3-chōme-4-13 Nihonbashi | Tokyo | | 103-0027 | +1 (919) 555-1212 | widget@widget.con
ANTUNSWEST | Antun's of Westchester | 15 S Central Ave | Elmsford | NY | 10523 | +1 (410) 123-2322 | widget@widgetbuy.con
APOSTELSCH | Church of The Apostles | 406 Willet Dr | Coppell | TX | 75019 | 619-322-2222 | cbarnes@swfood.con
ARTCAGES | Artcages Co. | 574 Chief Justice Cushing Hwy | Cohasset | MA | 02025 | + 49 (99111) 6842685 | sales@qvikp.de
ASAHISUNTR | Asahi Sun Tours | 3-chōme-1 Kanda Jinbōchō | Tokyo | | 101-0051 | +1 (777) 623-5001 | pizza@Cocciatari.con
ASBLBAR | Nautilus Bar SABL | 13 Rue de la Batellerie | Dunkerque | | 59140 | +1 (410) 123-2322 | widget@widgetbuy.con
AVACUST1 | Avalara Customer | 101 E Front St | Plainfield | NJ | 07060 | +33 (777) 05 76 87 7 | secretary@email.con
BEAUTYSCH | New York International Beauty School Ltd | 143-53 South Dr | Queens | NY | 11357 | +1 (777) 252-6488 | artcages@mail.con
BESTYPEIMG | Bestype Image | 4580 Broadway | New York | NY | 10040 | +1 (972) 123-1231 | electronic@eliimport.con
BIBIMBAB | Bibimbab Korean Restaurant | 153 Lower Notch Rd | Little Falls | NJ | 07424 | +1 (777) 254-5312 | marina@mail.con
BOA | BANK OF AMERICA | 2001 12th Ave N | Chicago | IL | 55456 | +1 (212) 262-4896 | staramerica@mail.con
BORDERSHOP | Borders Books, Music & Cafe | 3111 McCommas Blvd | Dallas | TX | 75205 | +1 (415) 123-5678 | widget@widgetcc.con
BOULDERCR | Boulder Couriers Denver | 1899 Wynkoop St | Denver | CO | 80202 | +1 (908) 532-9522 | barkeep@usabartend.con
BRASSKEY | Brass Key Bar | 11749 Livernois Ave | Detroit | MI | 48204-3514 | +1 (777) 302-2756 | precision@mail.con
CARIBBEAN | Caribbean Secretary Online | 26 Rue du Gouverneur Ponton | Fort de France | | 97200 | 215-532-3333 | info@abcventures.con
CONSTPLAZA | Plaza Construction | 950 Main Ave #1410 | Cleveland | OH | 44113 | +1 (777) 754-7690 | info@wfan.con
DUNKIRK | Dunkirk Realty | 3226 Chishom Drive | Miami | GA | 02154 | +1 (777) 476-6971 | rivers@shortstop.con
ECOMGUEST | eCommerce Guest Customer | | | | | + 49 (99111) 1450787 | roton@email.con
ELEIMPORT | Electonic Importers | 1050 West Frankford Road | Carrollton | TX | 75007 | 215-532-3333 | info@abcventures.con
ELEVATION | Elevation Computers | 8557 S Commercial Ave | Chicago | IL | 60617 | +1 (773) 123-1232 | djohnson@acumatica.com
FDIACME | Acme Food Distribution | 4701 N Charles St, | Baltimore | MD | 21210 | +1 (777) 429-3692 | Upwardmobility@mail.con
FDIAGRI | Agrilink Food | 1322 Space Park Dr. | Houston | TX | 77058 | +1 (954) 343-3433 | resale@industrialsupply.con
FDIGREEN | Green Cooks | 858 Payne Ave | St. Paul | MN | 55130 | +1 (777) 893-1801 | consulting@vera-credit.ru
FDIQVIK | Qvik Process GmbH | Kyawstraße 24 | Dresden | | 01259 | +1 (415) 123-5678 | widget@widgetcc.con
FDIWEST | Southwest Food Distribution | 1260 Park Blvd | San Diego | CA | 92101 | +1 (777) 283-9534 | texas@video-city.con
GOLDRIVER | Gold River Taxi Service | 10731 Coloma Rd | Rancho Cordova | CA | 95670 | +1 (777) 826-9338 | Alphabet@mail.con
HDTECHSERV | HD Technical Services Limited | 30 Stockwell Street, | London | | SE10 9JN | +1 (777) 244-6544 | info@active-staffing.con
HGTBRICK | Acme Brick Company | 124 Commercial Place | Schertz | TX | 78154 | +1 (777) 254-5312 | marina@mail.con
HIEKELCSEV | Hiekel Computer Service | Freystr 3 | Dresden | | 01259 | +1 (281) 231-1232 | cheftell@agrilink.con
HUNTINGTON | Huntington National Learning Center | 40 Nathaniel Place | Englewood | NJ | 07631 | +1 (469) 098-0988 | traderneill@oneill.con
INACTIVE | Inactive Inc | 8814 Kensington Pkwy | Chevy Chase | MD | 20815 | +1 (777) 476-6971 | rivers@shortstop.con
INDSACRAME | Sacramento Industrial Supply | 2710 Ramp Way | Sacramento | CA | 95818-1117 | 410-521-0000 | gneubaur@acmefood.con
INDSUPPLY | Industrial Supply Inc | 1725 S Federal Hwy | Boynton Beach | FL | 33435 | +1 (777) 571-5719 | denver@b-couriers.com
ITALIANCO | The Italian Company | 2510 Market Street | San Francisco | CA | 87556 | +1 (410) 123-2322 | widget@widgetbuy.con
JEVTCOMPUT | Jevy Computers | 400 Cornwall Rd | Cherry Hill | NJ | 08034 | +1 (212) 262-4896 | staramerica@mail.con
KAMMSYSTEM | Kamm System France | 113 Rue Paul Bellamy | Nantes | | 93290 | 813-441-1020 | crama@tampafood.con
KANE | Kane Realty Group | 5601 Six Forks Rd | Raleigh | NC | 27609 | +1 (123) 456-7890 | eatmore@bibimbab.com
KRKCONSULT | KRK Consulting Service | 128 E Dudley Ave | Westfield | NJ | 07090 | +1 (777) 654-4200 | westwood-manor@nymail.con
LASERWORKS | LaserWorks | 5 Main St | Norwich | ON | N0J 1P0 | +1 (777) 459-4255 | micro@mail.con
LOGICALINF | Logical Information Solutions | 9790 Clark Dr | Rossford | OH | 43460 | +1 (773) 123-1232 | djohnson@acumatica.com
MAKSYSTEMM | Mak System France | 104 Rue Perdrix | Tremblay | | 93290 | +1 (777) 476-6971 | rivers@shortstop.con
MARINAGOLF | Marina Golf Club | 4731 National Dr | Myrtle Beach | SC | 29579 | 215-532-3333 | info@abcventures.con
MARLINOFFI | Marlin Office Beverage Service | 103 Murray St | Dallas | TX | 75226 | +1 (908) 532-9522 | barkeep@usabartend.con
MEPVENTURE | MEP Capital Ventures | 106 E Jirrard Boulevard | Philadelphia | PA | 19123 | +1 (415) 123-5678 | widget@widgetcc.con
MICROCHIP | Microchip Restaurant | 202 Mack Hollimon Dr | Kerrvile | TX | 78028 | +1 (281) 231-1232 | cheftell@agrilink.con
MIDWOOD | Midwood Ambulance | 1794 Coney Island Ave | Brooklyn | NY | 11230-6502 | +1 (123) 456-7890 | eatmore@bibimbab.com
MODELAGENC | USA- NY Models Agency | 2089 New York Ave | Huntington Station | NY | 11746 | +86 (7777) 6546776 | water-proc@chinamail.con
MUSICAREA | MUSIC AREA | Via Aldo Fabrizi, 9 | ROMA | | 00153 | +1 (919) 555-1212 | widget@widget.con
NAAAPASSOC | Naaap Associates | 3 Gatehall Dr | Parsippany | NJ | 07054 | + 49 (99111) 6842685 | sales@qvikp.de
NEPPERSONN | NEP Personnel Unit | 333 S. Swift Rd | Addison | IL | 60101 | +1 (777) 623-5001 | pizza@Cocciatari.con
NETCAFENY | Netcafe NY | 409 East 14th Street | New York | NY | 10003 | +1 (972) 123-1231 | electronic@eliimport.con
NPCCALL | NPC Call Center | 1317 3RD Ave | New York | NY | 10021-2977 | +1 (777) 254-5312 | marina@mail.con
NRWESTPORT | N R Westport LLC | 426 Danbury Rd | Wilton | CT | 06897 | +1 (410) 123-2322 | widget@widgetbuy.con
NYCARES | New York Cares | N6548 429th St | Menomonie | WI | 54751 | +1 (415) 123-5678 | widget@widgetcc.con
NYLIBRARY | New York Public Library for the Performing Arts | 10 Lincoln Center Plz | New York | NY | 10023-7486 | 215-532-3333 | info@abcventures.con
OFFICEDEP | Office Depot | 3740 Broadway | New York | NY | 10023 | 612-212-1212 | rclearwater@greencooks.con
PHILLYPHOT | Philly Photography | 6118 Ridge Avenue | Philadelphia | PA | 19128 | +1 (777) 302-2756 | precision@mail.con
PRECISION | Precision Photos | 3001 W 37th St | Brooklyn | NY | 11224 | +1 (777) 302-2756 | precision@mail.con
PREMIERE | Premiere Dermatology and Surgery | 4295 Stone Mountain Hwy | Lilburn | GA | 30047 | +1 (777) 513-9166 | mail@wright-corner.con
PRODRETAIL | Products Retail | 11235 SE 6th St. | Bellevue | WA | 98004 | +1 (777) 839-5636 | Westin@texasmail.con
REALESRATE | Real Estate Institute | 7 W 34th St | New York | NY | 10001 | +1 (972) 462-0434 | apostelsch@mail.con
RICHVISION | Rich Vision | 2184 Cheshire Bridge Rd | Atlanta | GA | 30324 | +1 (410) 123-2322 | widget@widgetbuy.con
ROADBUILDR | Road Builder Company | 4480 Refugee Rd | Columbus | OH | 43232 | +1 (777) 868-7171 | Bart@megamail.con
SAFECREDIT | Safe Credit Union | 1066 26th St | Sacramento | CA | 95816 | +1 (777) 829-6988 | consulting@krk.con
SHOREMORT | Shore Mortgage Inc | 1137 S Adams Rd | Birmingham | MI | 48009 | 215-532-3333 | info@abcventures.con
SILVERWATE | Silver Springs Water | 3208 W Desert Inn Rd | Las Vegas | NV | 89102 | +1 (777) 654-4200 | westwood-manor@nymail.con
SNOPORT | Portmeirion Int. | 1B Guildford Rd | Woking | | GU22 7PX | +1 (777) 754-7690 | info@wfan.con
SNOSHORT | Shortstop Sports | 1255 Bay St | Staten Island | NY | 10305-3111 | +86 (7777) 6546776 | water-proc@chinamail.con
SNOTUSCANY | Sports Center of Tuscany | Via Circondaria, 18 | FIRENZE | | 50127 | +1 (281) 231-1232 | cheftell@agrilink.con
STREAMRAY | Streamray Inc | 1606 E 79th St | Chicago | IL | 60649 | +1 (777) 423-6750 | help@elite-answer.con
TOYONEILL | O'Neill's Trading | 2200 Independence Pkwy | Plano | TX | 75075 | +1 (777) 654-4200 | westwood-manor@nymail.con
TOYSTAR | Star America Toys | 3555 69th St | Vero Beach | FL | 32967 | +1 (773) 123-1232 | djohnson@acumatica.com
UNIFORCE | Uniforce Staffing Service | 4400 S Broadway | Los Angeles | CA | 90027 | +86 (7777) 6546776 | water-proc@chinamail.con
UPWARDMOBI | Upwardmobility | 1011 High Ridge Rd | Stamford | CT | 06905 | +1 (954) 343-3433 | resale@industrialsupply.con
VANCOUVER | Vancouver Supplies | 835 E Hastings St | Vancouver | BC | V6A 1R1 | +1 (212) 262-4896 | staramerica@mail.con
VERACITYCR | Veracity Credit Consultants | 92 W 34th St | Bayonne | NJ | 07002 | 215-532-3333 | info@abcventures.con
VIDEOCITY | Texas Video City | 201 S Industrial Blvd | Euless | TX | 76040 | +1 (908) 532-9522 | barkeep@usabartend.con
WATERPROC | CHENGDU RONGYI WATER PROCESSING | 56 Baisi St | ChengDu | | 610000 | +1 (215) 945-0350 | trucks@mail.con
WESTERNTRC | Western Star Trucks | 45 Runway Rd | Levittown | PA | 19057 | +1 (777) 219-0512 | border@usamail.con
WESTINGALL | Westin Galleria Houston | 386 Lincoln Hwy | Fairless Hills | PA | 19030 | +1 (281) 231-1232 | cheftell@agrilink.con
WESTWOOD | Westwood Manor | 2507 Eastchester Ave | Bronx | NY | 10469 | +1 (777) 459-4255 | micro@mail.con
WFAN | WFAN Radio | 34 48TH Ave | New York | NY | 11101 | +1 (773) 123-1232 | djohnson@acumatica.com
WIDGETBUY | Widget Connection | 701 Southwick Dr | Towson | MD | 21286 | +1 (777) 254-5312 | marina@mail.con
WIDGETCC | Widget Credit Card | 2760 24th Street | San Francisco | CA | 94110 | +1 (469) 098-0988 | traderneill@oneill.con
WIDGETOLD | Widget Customer | 401 Park Dr | Boston | MA | 02215 | +1 (281) 231-1232 | cheftell@agrilink.con
WIDGETPCI | Widget PCI Tokenized | 3040 E Cornwallis Rd | Durham | NC | 27709 | +1 (212) 262-4896 | staramerica@mail.con
WIDROTON | ROTON Services | Tuchbleiche 1 | Stuttgart | | 70439 | +1 (777) 252-6488 | artcages@mail.con
WRIGHTCORN | Wright Corner | 1580 Rockaway Pkwy | Brooklyn | NY | 11236 | +1 (777) 380-0089 | info@jevy-comp.con
- Author
- Jr Varsity II
- September 2, 2025
This example took a tenth of second to run.
When you are interfacing to an e-commerce site for example, and your interface receives a request, the response should be instant and not waiting for an Acumatica REST response that could cause the interface to timeout.
I should have put the output on my server to view.
- Author
- Jr Varsity II
- September 2, 2025
I finally got $expand and $select to work. This is a reworked example of only returning the data elements I need. I also dumped the ScriptBasic associative array holding the Customer REST response.
' Acumatica REST - Customer by ID
IMPORT curl.sbi
IMPORT webext.sbi
base_url = "http://laptop/acumaticadb/entity/auth/"
auth_str = web::base64_encode("admin:password")
jstr = """
{
"name": "admin",
"password": "password",
"company": "Demo"
}
"""
' Login
ch = curl::init()
curl::option(ch, "URL", base_url & "Login")
curl::option(ch, "HEADER")
curl::option(ch, "HTTPHEADER", "Content-Type: application/json")
curl::option(ch, "HTTPHEADER", "Authorization: Basic " & auth_str)
curl::option(ch, "POSTFIELDS", jstr)
response_headers = curl::perform(ch)
crumbs = web::MakeCookies(response_headers)
curl::finish(ch)
' Customer
ch = curl::init()
curl::option(ch, "URL", "http://laptop/acumaticadb/entity/Default/24.200.001/Customer/ABARTENDE?$expand=MainContact,MainContact/Address&$select=CustomerID,CustomerName,MainContact/Email,MainContact/Phone1,MainContact/Address/AddressLine1,MainContact/Address/City,MainContact/Address/State,MainContact/Address/PostalCode")
curl::option(ch, "HTTPHEADER", "Content-Type: application/x-www-form-urlencoded")
curl::option(ch, "HTTPHEADER", "Cookie: " & crumbs)
curl::option(ch, "HTTPHEADER", "Authorization: Basic " & auth_str)
json = curl::perform(ch)
curl::finish(ch)
' Logout
ch = curl::init()
curl::option(ch, "URL", base_url & "Logout")
curl::option(ch, "POST")
curl::option(ch, "HTTPHEADER", "Cookie: " & crumbs)
curl::option(ch, "HTTPHEADER", "Authorization: Basic " & auth_str)
curl::option(ch, "HTTPHEADER", "Content-Length: 0")
curl::perform(ch)
curl::finish(ch)
web::json2sba(json)
web::sbadump(json)
PRINT
PRINT json{"CustomerID"}{"value"},"\n\n"
PRINT json{"CustomerName"}{"value"},"\n"
PRINT json{"MainContact"}{"Address"}{"AddressLine1"}{"value"},"\n"
PRINT json{"MainContact"}{"Address"}{"City"}{"value"},", "
PRINT json{"MainContact"}{"Address"}{"State"}{"value"}," "
PRINT json{"MainContact"}{"Address"}{"PostalCode"}{"value"},"\n\n"
PRINT json{"MainContact"}{"Phone1"}{"value"},"\n"
PRINT json{"MainContact"}{"Email"}{"value"},"\n"
END
OUTPUT
id = 6a113b2c-d87f-e411-beca-00b56d0561c2
rowNumber = 1
note
value =
CustomerID
value = ABARTENDE
CustomerName
value = USA Bartending School
MainContact
id = b0ef27cb-bd40-4329-9894-43d5b782bec9
rowNumber = 1
note = undef
Address
id = f319dc60-edf6-4f20-83f6-35bd4b4d3418
rowNumber = 1
note = undef
AddressLine1
value = 201 Lower Notch Rd
City
value = Little Falls
PostalCode
value = 07424
State
value = NJ
custom = undef
Email
value = barkeep@usabartend.con
Phone1
value = +1 (908) 532-9522
custom = undef
_links
self = /acumaticadb/entity/Default/24.200.001/Customer/6a113b2c-d87f-e411-beca-00b56d0561c2
files:put = /acumaticadb/entity/Default/24.200.001/files/PX.Objects.AR.CustomerMaint/BAccount/6a113b2c-d87f-e411-beca-00b56d0561c2/{filename}
ABARTENDE
USA Bartending School
201 Lower Notch Rd
Little Falls, NJ 07424
+1 (908) 532-9522
barkeep@usabartend.con
- Author
- Jr Varsity II
- September 3, 2025
This is the REST example running on Clouds-R.Us to compare with the SQL statement direct method I posted previously.
SQL: real 0m0.063s
REST: real 0m0.528s
I put the source and output in a text file on my server.
https://demo.clouds-r.us/files/all_cust_rest.txt
- Author
- Jr Varsity II
- September 3, 2025
The metrics shows that the SQL operation took 63 milliseconds, while the REST operation took 528 milliseconds, indicating that SQL performed the task about 8.4 times faster.
- Author
- Jr Varsity II
- September 3, 2025
I'm getting different result of number of customers in the Sales demo using REST and SQL direct. Is REST returning deleted customers as well?
- Author
- Jr Varsity II
- September 4, 2025
I just ran my REST script to get a list of customers (121) and it took just under 5 minutes to return its results. The next run was almost instant. How do developers deal with the waking up of Acumatica and the delays.
This is never an issue when reading the DB with SQL directly.
- Author
- Jr Varsity II
- September 5, 2025
I figured out my issue coming up short with the number of Customers.
' MySQL Test Program
IMPORT mysql.bas
dbh = mysql::RealConnect("demo.clouds-r.us","user","password","Acumatica_demo")
SQL = """
SELECT
BAccount.AcctCD,
BAccount.LegalName,
Contact.Phone1,
Contact.Email,
Address.AddressLine1,
Address.City,
Address.State,
Address.PostalCode
FROM
BAccount
INNER JOIN
Customer ON BAccount.BAccountID = Customer.BAccountID AND BAccount.CompanyID = Customer.CompanyID
INNER JOIN
Contact ON BAccount.DefContactID = Contact.ContactID AND Contact.CompanyID = BAccount.CompanyID
INNER JOIN
Address ON Address.AddressID = BAccount.DefAddressID AND Address.CompanyID = BAccount.CompanyID
WHERE
Customer.CompanyID = 2 AND BAccount.DeletedDatabaseRecord = 0
ORDER BY
BAccount.AcctCD;
"""
mysql::query(dbh,SQL)
WHILE mysql::FetchArray(dbh, col)
PRINT col[0]," | ",col[1]," | ",col[4]," | ",col[5]," | ",col[6]," | ",col[7]," | ",col[2]," | ",col[3],"\n"
WEND
PRINT
PRINT "Total Customers: ",mysql::AffectedRows(dbh),"\n"
mysql::Close(dbh)OUTPUT
AACUSTOMER | Alta Ace | 156 10th Ave | New York | NY | 10011 | +1 (212) 555-6724 | ap@altaace.con
ABARTENDE | USA Bartending School | 201 Lower Notch Rd | Little Falls | NJ | 07424 | +1 (908) 532-9522 | barkeep@usabartend.con
ABCHOLDING | ABC Holdings Inc | 65 Broadway | New York | NY | 10006 | +1 (212) 532-9522 | info@abcholdings.con
ABCSTUDIOS | ABC Studios Inc | 77 W 66th St # 13 | New York | NY | 10023 | +1 (777) 446-7537 | info@abcstudios.con
ABCVENTURE | ABC Capital Ventures | 601 W Girard Ave | Philadelphia | PA | 19123 | 215-532-3333 | info@abcventures.con
ACTIVESTAF | Active Staffing Service | 460 W 34th St | New York | NY | 10001 | +1 (777) 244-6544 | info@active-staffing.con
ALPHABETLD | Alphabetland School Center | 2466 Sunrise Hwy | Bellmore | NY | 11710 | +1 (777) 826-9338 | Alphabet@mail.con
AMROBANK | AMRO Bank Japan | 3-chōme-4-13 Nihonbashi | Tokyo | | 103-0027 | +81 (777) 443-4657 | bank@amro.con
ANTUNSWEST | Antun's of Westchester | 15 S Central Ave | Elmsford | NY | 10523 | +1 (777) 592-5260 | Antun@megamail.con
APOSTELSCH | Church of The Apostles | 406 Willet Dr | Coppell | TX | 75019 | +1 (972) 462-0434 | apostelsch@mail.con
ARTCAGES | Artcages Co. | 574 Chief Justice Cushing Hwy | Cohasset | MA | 02025 | +1 (777) 252-6488 | artcages@mail.con
ASAHISUNTR | Asahi Sun Tours | 3-chōme-1 Kanda Jinbōchō | Tokyo | | 101-0051 | +81 (777) 434-4679 | Asahi@japan-mail.con
ASBLBAR | Nautilus Bar SABL | 13 Rue de la Batellerie | Dunkerque | | 59140 | +33 (777) 672-2505 | bar@Nautilus.con
AVACUST1 | Avalara Customer | 101 E Front St | Plainfield | NJ | 07060 | +1 (908) 555-1212 | ava@mail.con
BAKER-DEVE | Baker Development | 1011 Westward Drive | Miami | FL | 33166 | 305-559-9150 | ted.baker@bakerdev.con
BEAUTYSCH | New York International Beauty School Ltd | 143-53 South Dr | Queens | NY | 11357 | +1 (777) 868-7171 | Bart@megamail.con
BESTYPEIMG | Bestype Image | 4580 Broadway | New York | NY | 10040 | +1 (777) 966-6886 | bestype@mail.con
BIBIMBAB | Bibimbab Korean Restaurant | 153 Lower Notch Rd | Little Falls | NJ | 07424 | +1 (123) 456-7890 | eatmore@bibimbab.com
BNRCONTRAC | BNR Contractors | 992 S. Trudley St. | Westfield | NJ | 07090 | 777-829-6912 | consulting@bnr.con
BOA | BANK OF AMERICA | 2001 12th Ave N | Chicago | IL | 55456 | 501-685-7852 | jon@boa.con
BORDERSHOP | Borders Books, Music & Cafe | 3111 McCommas Blvd | Dallas | TX | 75205 | +1 (777) 219-0512 | border@usamail.con
BOULDERCR | Boulder Couriers Denver | 1899 Wynkoop St | Denver | CO | 80202 | +1 (777) 571-5719 | denver@b-couriers.com
BRASSKEY | Brass Key Bar | 11749 Livernois Ave | Detroit | MI | 48204-3514 | +1 (777) 898-0326 | livernois@brass-key.con
CARIBBEAN | Caribbean Secretary Online | 26 Rue du Gouverneur Ponton | Fort de France | | 97200 | +596 695 76 87 71 | secretary@email.con
CARRDEV | Carr Development Inc. | 9932 Duddlie Ave | Westfield | NJ | 07090 | 777-829-6988 | consulting@carr.con
CARTRIDGE | Cartridge World Inc | Unter dem Birkenkopf 2 | Stuttgart | | 70197 | + 49 (99111) 4351146 | mail@cartridge-wold.con
CASHCONNEC | Cash Connection | 8311 Jefferson Ave | Detroit | MI | 48214 | +1 (313) 393-7101 | cash@cc.con
CHOCOLATE | Chocolate By Design | 711 Union Pkwy | Ronkonkoma | NY | 11779-7427 | +1 (777) 737-0034 | Chocolate@mail.con
CJOEQUIP | Jersey Central Office Equip | 266 Pulaski Rd #2 | Greenlawn | NY | 11740 | +1 (777) 283-0414 | jersey-equip@mail.con
COMPURESOU | Compuresource, Ltd | 2525 Hampshire Gate #2b | Oakville | ON | L6H 6C8 | +1 (777) 829-2664 | mail@Compuresource.con
COMPUWORLD | Computer World | 40 Central Park S | New York | NY | 10019 | +1 (777) 307-5243 | contact@compuworld.co
CONSTPLAZA | Plaza Construction | 950 Main Ave #1410 | Cleveland | OH | 44113 | 216-321-2121 | jkeeney@plazaconstruction.con
CRABTREE | Crabtree Kittle House Inn | 11 Kittle Rd | Chappaqua | NY | 10514-1800 | +1 (777) 666-8044 | Kittle@Crabtree.con
CULINARYIN | Institute of Culinary Education | 1711 243rd St | Lomita | CA | 90717 | +1 (777) 961-2433 | dean@culinary-education.con
DACITYCONS | DA City Construction Supervisors | 2012 Hongli Rd | Guangdong Sheng | | | +86 (7777) 7677376 | mail@supervise-team.con
DIGITECHPR | Digitech Printers | 6540 King Valley Rd | West Valley Cith | UT | 84128 | +1 (777) 623-6150 | Printers@Digitech.con
DUNKIRK | Dunkirk Realty | 3226 Chishom Drive | Miami | GA | 02154 | 305-559-9150 | Sharon@dunkirk.con
ECOMGUEST | eCommerce Guest Customer | | | | | | admin@revisiontwo.com
ELEIMPORT | Electonic Importers | 1050 West Frankford Road | Carrollton | TX | 75007 | +1 (972) 123-1231 | electronic@eliimport.con
ELEVATION | Elevation Computers | 8557 S Commercial Ave | Chicago | IL | 60617 | +1 (773) 123-1232 | sales@elevation.con
ELITEANSW | Elite Answering | 377 Watchogue Rd | Staten Island | NY | 10314 | +1 (777) 423-6750 | help@elite-answer.con
EQUGRP | The Equity Group Investors | 956 51st Avenue N | New York | NY | 06653 | 555-121-7779 | JessicaD@equitygrp.con
ETELLIGENT | Etelligent Solutions | 250 Walden Dr | Calgary | AB | T2X 0M7 | +1 (777) 985-3853 | info@etelligent.con
FDIACME | Acme Food Distribution | 4701 N Charles St, | Baltimore | MD | 21210 | 410-521-0000 | gneubaur@acmefood.con
FDIAGRI | Agrilink Food | 1322 Space Park Dr. | Houston | TX | 77058 | +1 (281) 231-1232 | cheftell@agrilink.con
FDICOCCIA | Cocciatari Pizza | 350 New Yourk 110 | Huntington Station | NY | 11746 | +1 (777) 623-5001 | pizza@Cocciatari.con
FDIGREEN | Green Cooks | 858 Payne Ave | St. Paul | MN | 55130 | 612-212-1212 | rclearwater@greencooks.con
FDIMINN | Minneapolis Food Distribution | 4600 Nicollet Ave | Minneapolis | MN | 55419 | 612-212-1211 | jcornwall@minnfood.con
FDIQVIK | Qvik Process GmbH | Kyawstraße 24 | Dresden | | 01259 | + 49 (99111) 6842685 | sales@qvikp.de
FDITAMPA | Tampa Bay Food Distribution | 3516 Grand Cayman Dr | Tampa | FL | 33614 | 813-441-1020 | crama@tampafood.con
FDIWEST | Southwest Food Distribution | 1260 Park Blvd | San Diego | CA | 92101 | 619-322-2222 | cbarnes@swfood.con
FLAGLER | Flagler Family Trust | 1 Flagler Parkway | Chappaqua | NY | 10514-1800 | 777-666-8044 | admin@flaglerft.con
GOLDRIVER | Gold River Taxi Service | 10731 Coloma Rd | Rancho Cordova | CA | 95670 | +1 (777) 635-7421 | taxi@goldriver.con
HDTECHSERV | HD Technical Services Limited | 30 Stockwell Street, | London | | SE10 9JN | +44 (2211) 8620299 | tech@hd-services.con
HGTBRICK | Acme Brick Company | 124 Commercial Place | Schertz | TX | 78154 | +1 (218) 343-3434 | bricks@acmebrick.con
HIEKELCSEV | Hiekel Computer Service | Freystr 3 | Dresden | | 01259 | + 49 (99111) 6842685 | service@heikel.con
HUNTINGTON | Huntington National Learning Center | 40 Nathaniel Place | Englewood | NJ | 07631 | +1 (777) 377-7231 | info@huntinton.con
INACTIVE | Inactive Inc | 8814 Kensington Pkwy | Chevy Chase | MD | 20815 | 301-321-4839 | sleep@inactiveinc.con
INDSACRAME | Sacramento Industrial Supply | 2710 Ramp Way | Sacramento | CA | 95818-1117 | +1 (777) 254-5312 | marina@mail.con
INDSUPPLY | Industrial Supply Inc | 1725 S Federal Hwy | Boynton Beach | FL | 33435 | +1 (954) 343-3433 | resale@industrialsupply.con
ITALIANCO | The Italian Company | 2510 Market Street | San Francisco | CA | 87556 | 415-965-5546 | Dustin.Lindquist@italianco.con
JEVTCOMPUT | Jevy Computers | 400 Cornwall Rd | Cherry Hill | NJ | 08034 | +1 (777) 380-0089 | info@jevy-comp.con
KAMMSYSTEM | Kamm System France | 113 Rue Paul Bellamy | Nantes | | 93290 | +33 (203) 863-3454 | kamms@mail.con
KANE | Kane Realty Group | 5601 Six Forks Rd | Raleigh | NC | 27609 | 919-555-1454 | bparrish@kanerg.com
KRKCONSULT | KRK Consulting Service | 128 E Dudley Ave | Westfield | NJ | 07090 | +1 (777) 829-6988 | consulting@krk.con
LASERWORKS | LaserWorks | 5 Main St | Norwich | ON | N0J 1P0 | +1 (777) 421-1574 | laserwork@canadamail.con
LOGICALINF | Logical Information Solutions | 9790 Clark Dr | Rossford | OH | 43460 | +1 (777) 837-2455 | lis@usa-mail.con
MAKSYSTEMM | Mak System France | 104 Rue Perdrix | Tremblay | | 93290 | +33 (777) 863-3454 | mail@mak.system.con
MARINAGOLF | Marina Golf Club | 4731 National Dr | Myrtle Beach | SC | 29579 | +1 (843) 232-2323 | marinagolf@mail.con
MARLINOFFI | Marlin Office Beverage Service | 103 Murray St | Dallas | TX | 75226 | +1 (212) 673-3166 | Marlin@googmail.con
MEPVENTURE | MEP Capital Ventures | 106 E Jirrard Boulevard | Philadelphia | PA | 19123 | 215-532-3333 | info@mepcv.con
MICROCHIP | Microchip Restaurant | 202 Mack Hollimon Dr | Kerrvile | TX | 78028 | +1 (777) 459-4255 | micro@mail.con
MIDWOOD | Midwood Ambulance | 1794 Coney Island Ave | Brooklyn | NY | 11230-6502 | +1 (777) 645-1340 | balaa@midwood.com
MODELAGENC | USA- NY Models Agency | 2089 New York Ave | Huntington Station | NY | 11746 | +1 (777) 271-4551 | ny@usamodels.con
MUSICAREA | MUSIC AREA | Via Aldo Fabrizi, 9 | ROMA | | 00153 | +39 (777) 0456756 | info@music-area.con
NAAAPASSOC | Naaap Associates | 3 Gatehall Dr | Parsippany | NJ | 07054 | +1 (777) 345-5547 | mail@Naaap.con
NEPPERSONN | NEP Personnel Unit | 333 S. Swift Rd | Addison | IL | 60101 | +1 (777) 446-3073 | nep@mail.con
NETCAFENY | Netcafe NY | 409 East 14th Street | New York | NY | 10003 | +1 (777) 673-7392 | ny@netvafe.con
NPCCALL | NPC Call Center | 1317 3RD Ave | New York | NY | 10021-2977 | +1 (777) 879-4144 | call@npc-call.con
NRWESTPORT | N R Westport LLC | 426 Danbury Rd | Wilton | CT | 06897 | +1 (777) 345-1352 | westport@usamail.con
NSSDATA | Data Recovery Services | 5 Station Approach | Penarth | | CF64 3EE | +44 (2211) 2470074 | service@data-recovery.con
NSSGLOGCON | Glog Consulting | 12302 Backus Dr | Bowie | MD | 20720 | +1 (410) 534-3433 | glg@mail.con
NYCARES | New York Cares | N6548 429th St | Menomonie | WI | 54751 | +1 (777) 243-5004 | help@ny-cares.con
NYLIBRARY | New York Public Library for the Performing Arts | 10 Lincoln Center Plz | New York | NY | 10023-7486 | +1 (777) 832-1630 | nylib@mail.con
OFFICEDEP | Office Depot | 3740 Broadway | New York | NY | 10023 | +1 (777) 451-0650 | info@office-depot.con
PHILLYPHOT | Philly Photography | 6118 Ridge Avenue | Philadelphia | PA | 19128 | +1 (777) 487-1230 | philly-photo@good-mail.con
PRECISION | Precision Photos | 3001 W 37th St | Brooklyn | NY | 11224 | +1 (777) 302-2756 | precision@mail.con
PREMIERE | Premiere Dermatology and Surgery | 4295 Stone Mountain Hwy | Lilburn | GA | 30047 | +1 (777) 344-2450 | premiere@mail.con
PRODRETAIL | Products Retail | 11235 SE 6th St. | Bellevue | WA | 98004 | 206-555-1212 | admin@revisiontwo.com
REALESRATE | Real Estate Institute | 7 W 34th St | New York | NY | 10001 | +1 (777) 967-7508 | estate-institute@mail.con
REVRECCO | Revenue Recognition Co | 515 17th St | Denver | CO | 80202 | 303-232-2322 | billing@excesscost.con
RICHVISION | Rich Vision | 2184 Cheshire Bridge Rd | Atlanta | GA | 30324 | +1 (777) 325-3400 | consulting@richvision.con
ROADBUILDR | Road Builder Company | 4480 Refugee Rd | Columbus | OH | 43232 | +1 (614) 269-0150 | roadbuilder@mail.con
SAFECREDIT | Safe Credit Union | 1066 26th St | Sacramento | CA | 95816 | +1 (777) 934-7533 | info@safe-credit.con
SERVEAST | Services East | 7927 Jones Branch Drive | McLean | VA | 22102 | 703-555-1212 | admin@revisiontwo.com
SERVWEST | Services West | 7927 Jones Branch Drive | McLean | VA | 22102 | 703-555-1212 | admin@revisiontwo.com
SHOREMORT | Shore Mortgage Inc | 1137 S Adams Rd | Birmingham | MI | 48009 | +1 (777) 453-3340 | mortage@usamail.con
SILVERWATE | Silver Springs Water | 3208 W Desert Inn Rd | Las Vegas | NV | 89102 | +1 (702) 897-4854 | silver-water@mail.con
SNOPORT | Portmeirion Int. | 1B Guildford Rd | Woking | | GU22 7PX | +44 (2211) 0272115 | snosup@portmeirion.con
SNOSHORT | Shortstop Sports | 1255 Bay St | Staten Island | NY | 10305-3111 | +1 (777) 476-6971 | rivers@shortstop.con
SNOTUSCANY | Sports Center of Tuscany | Via Circondaria, 18 | FIRENZE | | 50127 | +39 (777) 0515035 | Tuscany@italymail.com
STREAMRAY | Streamray Inc | 1606 E 79th St | Chicago | IL | 60649 | +1 (777) 307-5243 | mail@Streamray.con
TOYONEILL | O'Neill's Trading | 2200 Independence Pkwy | Plano | TX | 75075 | +1 (469) 098-0988 | traderneill@oneill.con
TOYSTAR | Star America Toys | 3555 69th St | Vero Beach | FL | 32967 | +1 (212) 262-4896 | staramerica@mail.con
UNIFORCE | Uniforce Staffing Service | 4400 S Broadway | Los Angeles | CA | 90027 | +1 (777) 933-2772 | uniforce@nymail.con
UPWARDMOBI | Upwardmobility | 1011 High Ridge Rd | Stamford | CT | 06905 | +1 (777) 429-3692 | Upwardmobility@mail.con
VANCOUVER | Vancouver Supplies | 835 E Hastings St | Vancouver | BC | V6A 1R1 | +1 (604) 347-7865 | bctax@vancouversup.ca
VERACITYCR | Veracity Credit Consultants | 92 W 34th St | Bayonne | NJ | 07002 | +1 (777) 893-1801 | consulting@vera-credit.ru
VIDEOCITY | Texas Video City | 201 S Industrial Blvd | Euless | TX | 76040 | +1 (777) 283-9534 | texas@video-city.con
WATERPROC | CHENGDU RONGYI WATER PROCESSING | 56 Baisi St | ChengDu | | 610000 | +86 (7777) 6546776 | water-proc@chinamail.con
WESTERNTRC | Western Star Trucks | 45 Runway Rd | Levittown | PA | 19057 | +1 (215) 945-0350 | trucks@mail.con
WESTINGALL | Westin Galleria Houston | 386 Lincoln Hwy | Fairless Hills | PA | 19030 | +1 (777) 839-5636 | Westin@texasmail.con
WESTWOOD | Westwood Manor | 2507 Eastchester Ave | Bronx | NY | 10469 | +1 (777) 654-4200 | westwood-manor@nymail.con
WFAN | WFAN Radio | 34 48TH Ave | New York | NY | 11101 | +1 (777) 754-7690 | info@wfan.con
WIDGETBUY | Widget Connection | 701 Southwick Dr | Towson | MD | 21286 | +1 (410) 123-2322 | widget@widgetbuy.con
WIDGETCC | Widget Credit Card | 2760 24th Street | San Francisco | CA | 94110 | +1 (415) 123-5678 | widget@widgetcc.con
WIDGETOLD | Widget Customer | 401 Park Dr | Boston | MA | 02215 | +1 (617) 123-5678 | sales@widget.con
WIDGETPCI | Widget PCI Tokenized | 3040 E Cornwallis Rd | Durham | NC | 27709 | +1 (919) 555-4049 | widget@widgetpci.con
WIDPARENT | Widget Consolidated Holdings | 809 N West St. | Raleigh | NC | 27603 | +1 (919) 555-1212 | widget@widget.con
WIDROTON | ROTON Services | Tuchbleiche 1 | Stuttgart | | 70439 | + 49 (99111) 1450787 | roton@email.con
WRIGHTCORN | Wright Corner | 1580 Rockaway Pkwy | Brooklyn | NY | 11236 | +1 (777) 513-9166 | mail@wright-corner.con
Total Customers: 121
real 0m0.014s
user 0m0.005s
sys 0m0.005s
- Author
- Jr Varsity II
- September 5, 2025
Correction even though it works like posted.
INNER JOIN
Contact ON Contact.ContactID = BAccount.DefContactID AND Contact.CompanyID = BAccount.CompanyID- Author
- Jr Varsity II
- September 6, 2025
The Generic Inquiry has become a 'sandbox' for me creating direct SQL statements. It would be nice if GI would show the SQL statement created for the preview display.
- Author
- Jr Varsity II
- September 6, 2025
It seems GI creates SQL syntax for MS SQL even though I'm using MySQL.
Customer Summary shows columns belonging to the Customer table when they belong to BAccount. When you click on. Column names the case for the first character turns to lower case.
I'm finding GI worthless for creating SQL statements.
- Author
- Jr Varsity II
- September 6, 2025
Acumatica has more magic going on under the covers than any relationship I've ever had.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Scanning file for viruses.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
OKThis file cannot be downloaded
Sorry, our virus scanner detected that this file isn't safe to download.
OK