The results are the same for both command lines. Note below that appcfg has taken the emailAddress=**{{ index .customer.emails 0 }}** from gladly-getting-started/data/pull/customers/request_url.gtpl, and substituted the first email in the emails array, Morton_Shields@gmail.com.
```bash
Using root: .
=============
Run data pull
=============
------------
HTTP request
------------
URL
---
https://gladly-sample-oms.vercel.app/api/customers?emailAddress=Morton_Shields@gmail.com
headers
-------
Accept: application/json, text/xml, application/xml
Apitoken: fake-token
body
----
-------------
HTTP response
-------------
status
------
200 OK
headers
-------
Age: 0
Cache-Control: public, max-age=0, must-revalidate
Content-Type: application/json
Date: Wed, 16 Jul 2025 17:16:32 GMT
Server: Vercel
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Matched-Path: /api/customers
X-Vercel-Cache: MISS
X-Vercel-Id: cle1::iad1::q6nxb-1752686192183-8342ec270bff
body
----
{"id":"TW9ydG9uX1NoaWVsZHNAZ21haWwuY29t","fullName":"Hardy Paucek","phones":["+54842998988"],"emails":["Morton_Shields@gmail.com","Hardy.Paucek25@gmail.com","Hardy89@hotmail.com"],"ltv":"$119.65"}
------------
HTTP request
------------
URL
---
https://gladly-sample-oms.vercel.app/api/orders?customerId=TW9ydG9uX1NoaWVsZHNAZ21haWwuY29t
headers
-------
Accept: application/json, text/xml, application/xml
Apitoken: fake-token
body
----
-------------
HTTP response
-------------
status
------
200 OK
headers
-------
Age: 0
Cache-Control: public, max-age=0, must-revalidate
Content-Type: application/json
Date: Wed, 16 Jul 2025 17:16:32 GMT
Server: Vercel
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Matched-Path: /api/orders
X-Vercel-Cache: MISS
X-Vercel-Id: cle1::iad1::7xbn6-1752686192183-4e19067b9c2b
body
----
[{"id":"c2fecdc9-18c7-46ef-a781-9e39f21e3d22","orderNumber":"LoPHjxVa","status":"shipping","shippingAddress":"3450 Lang Club Apt. 246","billingAddress":"","orderDate":"2022-02-27T11:10:51.576Z","customerId":"TW9ydG9uX1NoaWVsZHNAZ21haWwuY29t","lineItems":[{"id":"76450393-d33a-4853-8d6e-1043528e0b09","quantity":4,"price":"42.00","productId":"6ac3c3c8-0fa1-4d01-ac5b-5ac2eb545ace","status":"shipping"},{"id":"6cd27ff1-113e-4c13-a04d-214cbfe98425","quantity":3,"price":"699.00","productId":"4b346620-870a-4fa0-a7e9-6f240ce8c91f","status":"delivered"},{"id":"5ae6759b-76f2-4b0e-ab2b-a8f334adb858","quantity":3,"price":"306.00","productId":"e09761fd-0f55-47a6-8c83-e00014d76462","status":"shipping"},{"id":"27f8da8d-8431-48b3-85a6-41586165c3b8","quantity":3,"price":"921.00","productId":"18db998a-14fb-41aa-927c-238e3348e02f","status":"delivered"}],"shippingSpeed":"expedited","totalPrice":"1968","shippingAndHandling":"684.00"}]
mydomain.com/gladly-getting-started/v1/data/types/customer-1.0
--------------------------------------------------------------
[
{
"emails": [
"Morton_Shields@gmail.com",
"Hardy.Paucek25@gmail.com",
"Hardy89@hotmail.com"
],
"fullName": "Hardy Paucek",
"id": "TW9ydG9uX1NoaWVsZHNAZ21haWwuY29t",
"ltv": "$119.65",
"phones": [
"+54842998988"
]
}
]
mydomain.com/gladly-getting-started/v1/data/types/order-1.0
-----------------------------------------------------------
[
{
"billingAddress": "",
"customerId": "TW9ydG9uX1NoaWVsZHNAZ21haWwuY29t",
"id": "c2fecdc9-18c7-46ef-a781-9e39f21e3d22",
"lineItems": [
{
"id": "76450393-d33a-4853-8d6e-1043528e0b09",
"price": "42.00",
"productId": "6ac3c3c8-0fa1-4d01-ac5b-5ac2eb545ace",
"quantity": 4,
"status": "shipping"
},
{
"id": "6cd27ff1-113e-4c13-a04d-214cbfe98425",
"price": "699.00",
"productId": "4b346620-870a-4fa0-a7e9-6f240ce8c91f",
"quantity": 3,
"status": "delivered"
},
{
"id": "5ae6759b-76f2-4b0e-ab2b-a8f334adb858",
"price": "306.00",
"productId": "e09761fd-0f55-47a6-8c83-e00014d76462",
"quantity": 3,
"status": "shipping"
},
{
"id": "27f8da8d-8431-48b3-85a6-41586165c3b8",
"price": "921.00",
"productId": "18db998a-14fb-41aa-927c-238e3348e02f",
"quantity": 3,
"status": "delivered"
}
],
"orderDate": "2022-02-27T11:10:51.576Z",
"orderNumber": "LoPHjxVa",
"shippingAddress": "3450 Lang Club Apt. 246",
"shippingAndHandling": "684.00",
"shippingSpeed": "expedited",
"status": "shipping",
"totalPrice": "1968"
}
]
```
Congratulations on running your first successful data pull with `appcfg`! 🎉.
You now have a working foundation for integrating your order management system with Gladly. Once you configure your own app for your own systems, you can enable a wide range of powerful use cases in your Gladly production environment:
- **App Cards:**
Display rich, real-time data from your external system directly in the Gladly Agent UI. For example, show customer order history, loyalty status, or product recommendations as app cards during conversations.
- **Actions (Mutations):**
Allow agents to take action from within Gladly—such as creating, updating, or canceling orders, issuing refunds, or updating customer profiles—by configuring actions in your app.
- **Automated Workflows:**
Trigger data pulls or actions automatically based on customer events, conversation context, or business rules, streamlining agent workflows and improving customer experience.
- **Custom Data Views:**
Surface custom data (like product details, shipment tracking, or account balances) in context, so agents have all the information they need at their fingertips.
- **Secure, Real-Time Integrations:**
Use production credentials, OAuth, and secure headers to connect to live systems, ensuring data is always up-to-date and protected.
## 6. Next Steps
Now that you have a solid foundation, visit [https://help.gladly.com/developer-tutorials/docs](https://help.gladly.com/developer-tutorials/docs) to learn more about what you can build with Gladly App Platform.
## 7. Troubleshooting and Resources
If you encounter issues:
- Refer to the directory tree and files at [https://github.com/gladly/gladly-getting-started](https://github.com/gladly/gladly-getting-started), and compare against your current state to figure out where the problem might be.
- Check the [Gladly App Platform documentation](https://github.com/gladly/app-platform-appcfg-cli/blob/main/docs/appcfg_platform_template-functions.md) for context and template help.
- Use `curl` to verify OMS API responses and authentication.
- Check [https://help.gladly.com/developer-tutorials/docs](https://help.gladly.com/developer-tutorials/docs) for tutorials and documentation.
---