web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Purchase Order Parsing...
Power Apps
Unanswered

Purchase Order Parsing (Header & Line Items) - Canvas App

(0) ShareShare
ReportReport
Posted on by 538

Team,

 

I am struggling to retreive the Purchase order line items from collections. Attempted with various way but unsure where and what need be changed. Please add your suggestions.

Below is the post man output.

Screenshot

-----------------------------------------------------------------------------

AVTS_0-1623824181865.png

------------------------------------------------------------------------------

Output for the same.

{
"poNumber": "4500002163",
"company": "3456",
"changedOn": "2014-06-17",
"createdBy": "mahehehe",
"purchaseOrg": "1172",
"vendor": "0010000189",
"poLines": [
{
"poNumber": "4500002163",
"lineNo": "00010",
"material": "1220300150036B",
"shortText": "Edwer 46.5g Wlre Edce",
"materialGroup": "20200",
"plant": "E010",
"stoLocation": "",
"moveType": "101",
"quantity": "500.000",
"bom": "EA",
"poRcvdQty": "500.000",
"matDocNumber": "5000000761",
"matDocYear": "2014",
"matDocItem": "0001",
"changedOn": "2014-06-17"
}
],
"bapiRreturn": []
}

---------------------------------------------------------------------------------------

 

JSON schema

 

{
    "type""object",
    "properties": {
        "poNumber": {
            "type""string"
        },
        "company": {
            "type""string"
        },
        "changedOn": {
            "type""string"
        },
        "createdBy": {
            "type""string"
        },
        "purchaseOrg": {
            "type""string"
        },
        "vendor": {
            "type""string"
        },
        "poLines": {
            "type""array",
            "items": {
                "type""object",
                "properties": {
                    "poNumber": {
                        "type""string"
                    },
                    "lineNo": {
                        "type""string"
                    },
                    "material": {
                        "type""string"
                    },
                    "shortText": {
                        "type""string"
                    },
                    "materialGroup": {
                        "type""string"
                    },
                    "plant": {
                        "type""string"
                    },
                    "stoLocation": {
                        "type""string"
                    },
                    "moveType": {
                        "type""string"
                    },
                    "quantity": {
                        "type""string"
                    },
                    "bom": {
                        "type""string"
                    },
                    "poRcvdQty": {
                        "type""string"
                    },
                    "matDocNumber": {
                        "type""string"
                    },
                    "matDocYear": {
                        "type""string"
                    },
                    "matDocItem": {
                        "type""string"
                    },
                    "changedOn": {
                        "type""string"
                    }
                },
                "required": [
                    "poNumber",
                    "lineNo",
                    "material",
                    "shortText",
                    "materialGroup",
                    "plant",
                    "stoLocation",
                    "moveType",
                    "quantity",
                    "bom",
                    "poRcvdQty",
                    "matDocNumber",
                    "matDocYear",
                    "matDocItem",
                    "changedOn"
                ]
            }
        },
        "bapiRreturn": {
            "type""array"
        }
    }
}
-----------------------------------------------------------------------------
Below is the power app screen, which has button and inputtext and datatable.
 
Button formula :
 ClearCollect(googlepo1,getpo.Run(TextInput10.Text))
inputtext : po no
datatable : datasource is collection name
 
Issue here is Datatable add field is not showing in PO line items indiviualy instead it shows only polines
 
AVTS_1-1623824484936.png

Very unsure is this releated to JSON schema issue or Datatable items issue so on.

 

Below is the screenshot of polines selection in datatable.

AVTS_2-1623824755013.png

 

 please advise where and what i am missing to get the PO lines properly.

Expected output in Datatable follows,

AVTS_3-1623824897573.png

 

 

 

 

 
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 519

#2
WarrenBelz Profile Picture

WarrenBelz 439 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 433

Last 30 days Overall leaderboard